[2025-02-05 00:00:04] Production.INFO: next invoice date [2025-02-05 00:00:04] Production.INFO: 2025-03-05 [2025-02-05 00:00:04] Production.INFO: getdaysdiff [2025-02-05 00:00:04] Production.INFO: +28 [2025-02-05 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (182,11,1,28,28,'RMScheduler',2025-02-05 00:00:04,0,0,,,0) [2025-02-05 00:00:04] Production.INFO: next invoice date [2025-02-05 00:00:04] Production.INFO: 2025-03-05 [2025-02-05 00:00:04] Production.INFO: getdaysdiff [2025-02-05 00:00:04] Production.INFO: +28 [2025-02-05 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (182,13,2,28,28,'RMScheduler',2025-02-05 00:00:04,0,0,,,0) [2025-02-05 00:00:04] Production.INFO: next invoice date [2025-02-05 00:00:04] Production.INFO: 2025-03-05 [2025-02-05 00:00:04] Production.INFO: getdaysdiff [2025-02-05 00:00:04] Production.INFO: +28 [2025-02-05 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (188,16,1,28,28,'RMScheduler',2025-02-05 00:00:04,0,0,,,0) [2025-02-05 00:00:05] Production.INFO: next invoice date [2025-02-05 00:00:05] Production.INFO: 2025-03-05 [2025-02-05 00:00:05] Production.INFO: getdaysdiff [2025-02-05 00:00:05] Production.INFO: +28 [2025-02-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (188,13,2,28,28,'RMScheduler',2025-02-05 00:00:04,0,0,,,0) [2025-02-05 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:00:06 [end_date_ymd] => 2025-02-05 00:00:06 [RateCDR] => 1 ) [2025-02-05 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:00:06' and `end` < '2025-02-05 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:00:19] Production.INFO: count ==878 [2025-02-05 00:00:20] Production.ERROR: pbx CDR StartTime 2025-02-04 21:00:06 - End Time 2025-02-05 00:00:06 [2025-02-05 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403885', 'tblTempUsageDetail_20' ) start [2025-02-05 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403885', 'tblTempUsageDetail_20' ) end [2025-02-05 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403885', 'tblTempVendorCDR_20' ) start [2025-02-05 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403885', 'tblTempVendorCDR_20' ) end [2025-02-05 00:00:20] Production.INFO: ProcessCDR(1,14403885,1,1,2) [2025-02-05 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403885', 'tblTempUsageDetail_20' ) start [2025-02-05 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403885', 'tblTempUsageDetail_20' ) end [2025-02-05 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:00:32] Production.INFO: ==16098== Releasing lock... [2025-02-05 00:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:00:32] Production.INFO: 35.75 MB #Memory Used# [2025-02-05 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:01:05 [end_date_ymd] => 2025-02-05 00:01:05 [RateCDR] => 1 ) [2025-02-05 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:01:05' and `end` < '2025-02-05 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:01:23] Production.INFO: count ==879 [2025-02-05 00:01:23] Production.ERROR: pbx CDR StartTime 2025-02-04 21:01:05 - End Time 2025-02-05 00:01:05 [2025-02-05 00:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403890', 'tblTempUsageDetail_20' ) start [2025-02-05 00:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403890', 'tblTempUsageDetail_20' ) end [2025-02-05 00:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403890', 'tblTempVendorCDR_20' ) start [2025-02-05 00:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403890', 'tblTempVendorCDR_20' ) end [2025-02-05 00:01:23] Production.INFO: ProcessCDR(1,14403890,1,1,2) [2025-02-05 00:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403890', 'tblTempUsageDetail_20' ) start [2025-02-05 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403890', 'tblTempUsageDetail_20' ) end [2025-02-05 00:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:01:27] Production.INFO: ==16186== Releasing lock... [2025-02-05 00:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:01:27] Production.INFO: 34 MB #Memory Used# [2025-02-05 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:02:06 [end_date_ymd] => 2025-02-05 00:02:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 21:02:06' and `end` < '2025-02-05 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-02-05 00:02:27] Production.INFO: count ==379 [2025-02-05 00:02:27] Production.ERROR: pbx CDR StartTime 2025-02-04 21:02:06 - End Time 2025-02-05 00:02:06 [2025-02-05 00:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403895', 'tblTempUsageDetail_20' ) start [2025-02-05 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403895', 'tblTempUsageDetail_20' ) end [2025-02-05 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403895', 'tblTempVendorCDR_20' ) start [2025-02-05 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403895', 'tblTempVendorCDR_20' ) end [2025-02-05 00:02:27] Production.INFO: ProcessCDR(1,14403895,1,1,2) [2025-02-05 00:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403895', 'tblTempUsageDetail_20' ) start [2025-02-05 00:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403895', 'tblTempUsageDetail_20' ) end [2025-02-05 00:02:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:02:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:02:30] Production.INFO: ==16256== Releasing lock... [2025-02-05 00:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:02:30] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:03:05 [end_date_ymd] => 2025-02-05 00:03:05 [RateCDR] => 1 ) [2025-02-05 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:03:05' and `end` < '2025-02-05 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:03:28] Production.INFO: count ==379 [2025-02-05 00:03:28] Production.ERROR: pbx CDR StartTime 2025-02-04 21:03:05 - End Time 2025-02-05 00:03:05 [2025-02-05 00:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403900', 'tblTempUsageDetail_20' ) start [2025-02-05 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403900', 'tblTempUsageDetail_20' ) end [2025-02-05 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403900', 'tblTempVendorCDR_20' ) start [2025-02-05 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403900', 'tblTempVendorCDR_20' ) end [2025-02-05 00:03:28] Production.INFO: ProcessCDR(1,14403900,1,1,2) [2025-02-05 00:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403900', 'tblTempUsageDetail_20' ) start [2025-02-05 00:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403900', 'tblTempUsageDetail_20' ) end [2025-02-05 00:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:03:31] Production.INFO: ==16325== Releasing lock... [2025-02-05 00:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:03:31] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:04:06 [end_date_ymd] => 2025-02-05 00:04:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 21:04:06' and `end` < '2025-02-05 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-02-05 00:04:27] Production.INFO: count ==375 [2025-02-05 00:04:27] Production.ERROR: pbx CDR StartTime 2025-02-04 21:04:06 - End Time 2025-02-05 00:04:06 [2025-02-05 00:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403905', 'tblTempUsageDetail_20' ) start [2025-02-05 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403905', 'tblTempUsageDetail_20' ) end [2025-02-05 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403905', 'tblTempVendorCDR_20' ) start [2025-02-05 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403905', 'tblTempVendorCDR_20' ) end [2025-02-05 00:04:27] Production.INFO: ProcessCDR(1,14403905,1,1,2) [2025-02-05 00:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403905', 'tblTempUsageDetail_20' ) start [2025-02-05 00:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403905', 'tblTempUsageDetail_20' ) end [2025-02-05 00:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:04:30] Production.INFO: ==16400== Releasing lock... [2025-02-05 00:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:04:30] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:05:05 [end_date_ymd] => 2025-02-05 00:05:05 [RateCDR] => 1 ) [2025-02-05 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:05:05' and `end` < '2025-02-05 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:05:24] Production.INFO: count ==374 [2025-02-05 00:05:24] Production.ERROR: pbx CDR StartTime 2025-02-04 21:05:05 - End Time 2025-02-05 00:05:05 [2025-02-05 00:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403910', 'tblTempUsageDetail_20' ) start [2025-02-05 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403910', 'tblTempUsageDetail_20' ) end [2025-02-05 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403910', 'tblTempVendorCDR_20' ) start [2025-02-05 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403910', 'tblTempVendorCDR_20' ) end [2025-02-05 00:05:24] Production.INFO: ProcessCDR(1,14403910,1,1,2) [2025-02-05 00:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403910', 'tblTempUsageDetail_20' ) start [2025-02-05 00:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403910', 'tblTempUsageDetail_20' ) end [2025-02-05 00:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:05:27] Production.INFO: ==16473== Releasing lock... [2025-02-05 00:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:05:27] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:06:05 [end_date_ymd] => 2025-02-05 00:06:05 [RateCDR] => 1 ) [2025-02-05 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:06:05' and `end` < '2025-02-05 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:06:18] Production.INFO: count ==373 [2025-02-05 00:06:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:06:05 - End Time 2025-02-05 00:06:05 [2025-02-05 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403915', 'tblTempUsageDetail_20' ) start [2025-02-05 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403915', 'tblTempUsageDetail_20' ) end [2025-02-05 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403915', 'tblTempVendorCDR_20' ) start [2025-02-05 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403915', 'tblTempVendorCDR_20' ) end [2025-02-05 00:06:18] Production.INFO: ProcessCDR(1,14403915,1,1,2) [2025-02-05 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403915', 'tblTempUsageDetail_20' ) start [2025-02-05 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403915', 'tblTempUsageDetail_20' ) end [2025-02-05 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:06:21] Production.INFO: ==16542== Releasing lock... [2025-02-05 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:06:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:07:05 [end_date_ymd] => 2025-02-05 00:07:05 [RateCDR] => 1 ) [2025-02-05 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:07:05' and `end` < '2025-02-05 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:07:18] Production.INFO: count ==372 [2025-02-05 00:07:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:07:05 - End Time 2025-02-05 00:07:05 [2025-02-05 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403920', 'tblTempUsageDetail_20' ) start [2025-02-05 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403920', 'tblTempUsageDetail_20' ) end [2025-02-05 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403920', 'tblTempVendorCDR_20' ) start [2025-02-05 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403920', 'tblTempVendorCDR_20' ) end [2025-02-05 00:07:18] Production.INFO: ProcessCDR(1,14403920,1,1,2) [2025-02-05 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403920', 'tblTempUsageDetail_20' ) start [2025-02-05 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403920', 'tblTempUsageDetail_20' ) end [2025-02-05 00:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:07:22] Production.INFO: ==16613== Releasing lock... [2025-02-05 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:07:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:08:05 [end_date_ymd] => 2025-02-05 00:08:05 [RateCDR] => 1 ) [2025-02-05 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:08:05' and `end` < '2025-02-05 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:08:24] Production.INFO: count ==373 [2025-02-05 00:08:24] Production.ERROR: pbx CDR StartTime 2025-02-04 21:08:05 - End Time 2025-02-05 00:08:05 [2025-02-05 00:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403925', 'tblTempUsageDetail_20' ) start [2025-02-05 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403925', 'tblTempUsageDetail_20' ) end [2025-02-05 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403925', 'tblTempVendorCDR_20' ) start [2025-02-05 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403925', 'tblTempVendorCDR_20' ) end [2025-02-05 00:08:24] Production.INFO: ProcessCDR(1,14403925,1,1,2) [2025-02-05 00:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403925', 'tblTempUsageDetail_20' ) start [2025-02-05 00:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403925', 'tblTempUsageDetail_20' ) end [2025-02-05 00:08:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:08:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:08:29] Production.INFO: ==16686== Releasing lock... [2025-02-05 00:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:08:29] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:09:05 [end_date_ymd] => 2025-02-05 00:09:05 [RateCDR] => 1 ) [2025-02-05 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:09:05' and `end` < '2025-02-05 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:09:18] Production.INFO: count ==374 [2025-02-05 00:09:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:09:05 - End Time 2025-02-05 00:09:05 [2025-02-05 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403930', 'tblTempUsageDetail_20' ) start [2025-02-05 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403930', 'tblTempUsageDetail_20' ) end [2025-02-05 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403930', 'tblTempVendorCDR_20' ) start [2025-02-05 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403930', 'tblTempVendorCDR_20' ) end [2025-02-05 00:09:18] Production.INFO: ProcessCDR(1,14403930,1,1,2) [2025-02-05 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403930', 'tblTempUsageDetail_20' ) start [2025-02-05 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403930', 'tblTempUsageDetail_20' ) end [2025-02-05 00:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:09:23] Production.INFO: ==16761== Releasing lock... [2025-02-05 00:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:09:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:10:06 [end_date_ymd] => 2025-02-05 00:10:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 21:10:06' and `end` < '2025-02-05 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-02-05 00:10:42] Production.INFO: count ==382 [2025-02-05 00:10:42] Production.ERROR: pbx CDR StartTime 2025-02-04 21:10:06 - End Time 2025-02-05 00:10:06 [2025-02-05 00:10:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:10:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403936', 'tblTempUsageDetail_20' ) start [2025-02-05 00:10:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403936', 'tblTempUsageDetail_20' ) end [2025-02-05 00:10:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403936', 'tblTempVendorCDR_20' ) start [2025-02-05 00:10:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403936', 'tblTempVendorCDR_20' ) end [2025-02-05 00:10:42] Production.INFO: ProcessCDR(1,14403936,1,1,2) [2025-02-05 00:10:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:10:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:10:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:10:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:10:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403936', 'tblTempUsageDetail_20' ) start [2025-02-05 00:10:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403936', 'tblTempUsageDetail_20' ) end [2025-02-05 00:10:45] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:10:45] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:10:46] Production.INFO: ==16834== Releasing lock... [2025-02-05 00:10:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:10:46] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:11:05 [end_date_ymd] => 2025-02-05 00:11:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 21:11:05' and `end` < '2025-02-05 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-02-05 00:11:21] Production.INFO: count ==382 [2025-02-05 00:11:21] Production.ERROR: pbx CDR StartTime 2025-02-04 21:11:05 - End Time 2025-02-05 00:11:05 [2025-02-05 00:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403941', 'tblTempUsageDetail_20' ) start [2025-02-05 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403941', 'tblTempUsageDetail_20' ) end [2025-02-05 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403941', 'tblTempVendorCDR_20' ) start [2025-02-05 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403941', 'tblTempVendorCDR_20' ) end [2025-02-05 00:11:21] Production.INFO: ProcessCDR(1,14403941,1,1,2) [2025-02-05 00:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403941', 'tblTempUsageDetail_20' ) start [2025-02-05 00:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403941', 'tblTempUsageDetail_20' ) end [2025-02-05 00:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:11:24] Production.INFO: ==16911== Releasing lock... [2025-02-05 00:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:11:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:12:05 [end_date_ymd] => 2025-02-05 00:12:05 [RateCDR] => 1 ) [2025-02-05 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:12:05' and `end` < '2025-02-05 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:12:19] Production.INFO: count ==382 [2025-02-05 00:12:20] Production.ERROR: pbx CDR StartTime 2025-02-04 21:12:05 - End Time 2025-02-05 00:12:05 [2025-02-05 00:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403946', 'tblTempUsageDetail_20' ) start [2025-02-05 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403946', 'tblTempUsageDetail_20' ) end [2025-02-05 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403946', 'tblTempVendorCDR_20' ) start [2025-02-05 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403946', 'tblTempVendorCDR_20' ) end [2025-02-05 00:12:20] Production.INFO: ProcessCDR(1,14403946,1,1,2) [2025-02-05 00:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403946', 'tblTempUsageDetail_20' ) start [2025-02-05 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403946', 'tblTempUsageDetail_20' ) end [2025-02-05 00:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:12:23] Production.INFO: ==16985== Releasing lock... [2025-02-05 00:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:12:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:13:05 [end_date_ymd] => 2025-02-05 00:13:05 [RateCDR] => 1 ) [2025-02-05 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:13:05' and `end` < '2025-02-05 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:13:18] Production.INFO: count ==382 [2025-02-05 00:13:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:13:05 - End Time 2025-02-05 00:13:05 [2025-02-05 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403951', 'tblTempUsageDetail_20' ) start [2025-02-05 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403951', 'tblTempUsageDetail_20' ) end [2025-02-05 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403951', 'tblTempVendorCDR_20' ) start [2025-02-05 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403951', 'tblTempVendorCDR_20' ) end [2025-02-05 00:13:18] Production.INFO: ProcessCDR(1,14403951,1,1,2) [2025-02-05 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403951', 'tblTempUsageDetail_20' ) start [2025-02-05 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403951', 'tblTempUsageDetail_20' ) end [2025-02-05 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:13:21] Production.INFO: ==17056== Releasing lock... [2025-02-05 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:13:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:14:05 [end_date_ymd] => 2025-02-05 00:14:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 21:14:05' and `end` < '2025-02-05 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-02-05 00:14:18] Production.INFO: count ==379 [2025-02-05 00:14:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:14:05 - End Time 2025-02-05 00:14:05 [2025-02-05 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403956', 'tblTempUsageDetail_20' ) start [2025-02-05 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403956', 'tblTempUsageDetail_20' ) end [2025-02-05 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403956', 'tblTempVendorCDR_20' ) start [2025-02-05 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403956', 'tblTempVendorCDR_20' ) end [2025-02-05 00:14:18] Production.INFO: ProcessCDR(1,14403956,1,1,2) [2025-02-05 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403956', 'tblTempUsageDetail_20' ) start [2025-02-05 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403956', 'tblTempUsageDetail_20' ) end [2025-02-05 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:14:21] Production.INFO: ==17184== Releasing lock... [2025-02-05 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:14:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:15:06 [end_date_ymd] => 2025-02-05 00:15:06 [RateCDR] => 1 ) [2025-02-05 00:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:15:06' and `end` < '2025-02-05 00:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:15:19] Production.INFO: count ==378 [2025-02-05 00:15:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:15:06 - End Time 2025-02-05 00:15:06 [2025-02-05 00:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403961', 'tblTempUsageDetail_20' ) start [2025-02-05 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403961', 'tblTempUsageDetail_20' ) end [2025-02-05 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403961', 'tblTempVendorCDR_20' ) start [2025-02-05 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403961', 'tblTempVendorCDR_20' ) end [2025-02-05 00:15:19] Production.INFO: ProcessCDR(1,14403961,1,1,2) [2025-02-05 00:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403961', 'tblTempUsageDetail_20' ) start [2025-02-05 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403961', 'tblTempUsageDetail_20' ) end [2025-02-05 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:15:22] Production.INFO: ==17280== Releasing lock... [2025-02-05 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:15:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:16:05 [end_date_ymd] => 2025-02-05 00:16:05 [RateCDR] => 1 ) [2025-02-05 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:16:05' and `end` < '2025-02-05 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:16:19] Production.INFO: count ==375 [2025-02-05 00:16:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:16:05 - End Time 2025-02-05 00:16:05 [2025-02-05 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403966', 'tblTempUsageDetail_20' ) start [2025-02-05 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403966', 'tblTempUsageDetail_20' ) end [2025-02-05 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403966', 'tblTempVendorCDR_20' ) start [2025-02-05 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403966', 'tblTempVendorCDR_20' ) end [2025-02-05 00:16:19] Production.INFO: ProcessCDR(1,14403966,1,1,2) [2025-02-05 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403966', 'tblTempUsageDetail_20' ) start [2025-02-05 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403966', 'tblTempUsageDetail_20' ) end [2025-02-05 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:16:22] Production.INFO: ==17372== Releasing lock... [2025-02-05 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:16:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:17:05 [end_date_ymd] => 2025-02-05 00:17:05 [RateCDR] => 1 ) [2025-02-05 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:17:05' and `end` < '2025-02-05 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:17:20] Production.INFO: count ==377 [2025-02-05 00:17:20] Production.ERROR: pbx CDR StartTime 2025-02-04 21:17:05 - End Time 2025-02-05 00:17:05 [2025-02-05 00:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403971', 'tblTempUsageDetail_20' ) start [2025-02-05 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403971', 'tblTempUsageDetail_20' ) end [2025-02-05 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403971', 'tblTempVendorCDR_20' ) start [2025-02-05 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403971', 'tblTempVendorCDR_20' ) end [2025-02-05 00:17:20] Production.INFO: ProcessCDR(1,14403971,1,1,2) [2025-02-05 00:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403971', 'tblTempUsageDetail_20' ) start [2025-02-05 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403971', 'tblTempUsageDetail_20' ) end [2025-02-05 00:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:17:23] Production.INFO: ==17458== Releasing lock... [2025-02-05 00:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:17:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:18:05 [end_date_ymd] => 2025-02-05 00:18:05 [RateCDR] => 1 ) [2025-02-05 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:18:05' and `end` < '2025-02-05 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:18:18] Production.INFO: count ==376 [2025-02-05 00:18:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:18:05 - End Time 2025-02-05 00:18:05 [2025-02-05 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403976', 'tblTempUsageDetail_20' ) start [2025-02-05 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403976', 'tblTempUsageDetail_20' ) end [2025-02-05 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403976', 'tblTempVendorCDR_20' ) start [2025-02-05 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403976', 'tblTempVendorCDR_20' ) end [2025-02-05 00:18:18] Production.INFO: ProcessCDR(1,14403976,1,1,2) [2025-02-05 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403976', 'tblTempUsageDetail_20' ) start [2025-02-05 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403976', 'tblTempUsageDetail_20' ) end [2025-02-05 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:18:21] Production.INFO: ==17558== Releasing lock... [2025-02-05 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:19:05 [end_date_ymd] => 2025-02-05 00:19:05 [RateCDR] => 1 ) [2025-02-05 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:19:05' and `end` < '2025-02-05 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:19:19] Production.INFO: count ==373 [2025-02-05 00:19:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:19:05 - End Time 2025-02-05 00:19:05 [2025-02-05 00:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403981', 'tblTempUsageDetail_20' ) start [2025-02-05 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403981', 'tblTempUsageDetail_20' ) end [2025-02-05 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403981', 'tblTempVendorCDR_20' ) start [2025-02-05 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403981', 'tblTempVendorCDR_20' ) end [2025-02-05 00:19:19] Production.INFO: ProcessCDR(1,14403981,1,1,2) [2025-02-05 00:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403981', 'tblTempUsageDetail_20' ) start [2025-02-05 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403981', 'tblTempUsageDetail_20' ) end [2025-02-05 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:19:22] Production.INFO: ==17638== Releasing lock... [2025-02-05 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:19:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:20:06 [end_date_ymd] => 2025-02-05 00:20:06 [RateCDR] => 1 ) [2025-02-05 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:20:06' and `end` < '2025-02-05 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:20:19] Production.INFO: count ==380 [2025-02-05 00:20:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:20:06 - End Time 2025-02-05 00:20:06 [2025-02-05 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403987', 'tblTempUsageDetail_20' ) start [2025-02-05 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403987', 'tblTempUsageDetail_20' ) end [2025-02-05 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403987', 'tblTempVendorCDR_20' ) start [2025-02-05 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403987', 'tblTempVendorCDR_20' ) end [2025-02-05 00:20:19] Production.INFO: ProcessCDR(1,14403987,1,1,2) [2025-02-05 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403987', 'tblTempUsageDetail_20' ) start [2025-02-05 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403987', 'tblTempUsageDetail_20' ) end [2025-02-05 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:20:22] Production.INFO: ==17711== Releasing lock... [2025-02-05 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:21:05 [end_date_ymd] => 2025-02-05 00:21:05 [RateCDR] => 1 ) [2025-02-05 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:21:05' and `end` < '2025-02-05 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:21:19] Production.INFO: count ==389 [2025-02-05 00:21:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:21:05 - End Time 2025-02-05 00:21:05 [2025-02-05 00:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403992', 'tblTempUsageDetail_20' ) start [2025-02-05 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403992', 'tblTempUsageDetail_20' ) end [2025-02-05 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403992', 'tblTempVendorCDR_20' ) start [2025-02-05 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403992', 'tblTempVendorCDR_20' ) end [2025-02-05 00:21:19] Production.INFO: ProcessCDR(1,14403992,1,1,2) [2025-02-05 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403992', 'tblTempUsageDetail_20' ) start [2025-02-05 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403992', 'tblTempUsageDetail_20' ) end [2025-02-05 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:21:22] Production.INFO: ==17784== Releasing lock... [2025-02-05 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:21:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:22:05 [end_date_ymd] => 2025-02-05 00:22:05 [RateCDR] => 1 ) [2025-02-05 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:22:05' and `end` < '2025-02-05 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:22:18] Production.INFO: count ==389 [2025-02-05 00:22:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:22:05 - End Time 2025-02-05 00:22:05 [2025-02-05 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403997', 'tblTempUsageDetail_20' ) start [2025-02-05 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403997', 'tblTempUsageDetail_20' ) end [2025-02-05 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403997', 'tblTempVendorCDR_20' ) start [2025-02-05 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403997', 'tblTempVendorCDR_20' ) end [2025-02-05 00:22:18] Production.INFO: ProcessCDR(1,14403997,1,1,2) [2025-02-05 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403997', 'tblTempUsageDetail_20' ) start [2025-02-05 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403997', 'tblTempUsageDetail_20' ) end [2025-02-05 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:22:21] Production.INFO: ==17853== Releasing lock... [2025-02-05 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:23:05 [end_date_ymd] => 2025-02-05 00:23:05 [RateCDR] => 1 ) [2025-02-05 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:23:05' and `end` < '2025-02-05 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:23:19] Production.INFO: count ==388 [2025-02-05 00:23:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:23:05 - End Time 2025-02-05 00:23:05 [2025-02-05 00:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404002', 'tblTempUsageDetail_20' ) start [2025-02-05 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404002', 'tblTempUsageDetail_20' ) end [2025-02-05 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404002', 'tblTempVendorCDR_20' ) start [2025-02-05 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404002', 'tblTempVendorCDR_20' ) end [2025-02-05 00:23:19] Production.INFO: ProcessCDR(1,14404002,1,1,2) [2025-02-05 00:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404002', 'tblTempUsageDetail_20' ) start [2025-02-05 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404002', 'tblTempUsageDetail_20' ) end [2025-02-05 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:23:22] Production.INFO: ==17929== Releasing lock... [2025-02-05 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:23:22] Production.INFO: 31 MB #Memory Used# [2025-02-05 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:24:05 [end_date_ymd] => 2025-02-05 00:24:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 21:24:05' and `end` < '2025-02-05 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-02-05 00:24:22] Production.INFO: count ==390 [2025-02-05 00:24:22] Production.ERROR: pbx CDR StartTime 2025-02-04 21:24:05 - End Time 2025-02-05 00:24:05 [2025-02-05 00:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404007', 'tblTempUsageDetail_20' ) start [2025-02-05 00:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404007', 'tblTempUsageDetail_20' ) end [2025-02-05 00:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404007', 'tblTempVendorCDR_20' ) start [2025-02-05 00:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404007', 'tblTempVendorCDR_20' ) end [2025-02-05 00:24:22] Production.INFO: ProcessCDR(1,14404007,1,1,2) [2025-02-05 00:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404007', 'tblTempUsageDetail_20' ) start [2025-02-05 00:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404007', 'tblTempUsageDetail_20' ) end [2025-02-05 00:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:24:26] Production.INFO: ==18005== Releasing lock... [2025-02-05 00:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:24:26] Production.INFO: 32 MB #Memory Used# [2025-02-05 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:25:05 [end_date_ymd] => 2025-02-05 00:25:05 [RateCDR] => 1 ) [2025-02-05 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:25:05' and `end` < '2025-02-05 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:25:18] Production.INFO: count ==388 [2025-02-05 00:25:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:25:05 - End Time 2025-02-05 00:25:05 [2025-02-05 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404012', 'tblTempUsageDetail_20' ) start [2025-02-05 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404012', 'tblTempUsageDetail_20' ) end [2025-02-05 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404012', 'tblTempVendorCDR_20' ) start [2025-02-05 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404012', 'tblTempVendorCDR_20' ) end [2025-02-05 00:25:18] Production.INFO: ProcessCDR(1,14404012,1,1,2) [2025-02-05 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404012', 'tblTempUsageDetail_20' ) start [2025-02-05 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404012', 'tblTempUsageDetail_20' ) end [2025-02-05 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:25:21] Production.INFO: ==18077== Releasing lock... [2025-02-05 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:26:05 [end_date_ymd] => 2025-02-05 00:26:05 [RateCDR] => 1 ) [2025-02-05 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:26:05' and `end` < '2025-02-05 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:26:20] Production.INFO: count ==387 [2025-02-05 00:26:20] Production.ERROR: pbx CDR StartTime 2025-02-04 21:26:05 - End Time 2025-02-05 00:26:05 [2025-02-05 00:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404017', 'tblTempUsageDetail_20' ) start [2025-02-05 00:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404017', 'tblTempUsageDetail_20' ) end [2025-02-05 00:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404017', 'tblTempVendorCDR_20' ) start [2025-02-05 00:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404017', 'tblTempVendorCDR_20' ) end [2025-02-05 00:26:20] Production.INFO: ProcessCDR(1,14404017,1,1,2) [2025-02-05 00:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404017', 'tblTempUsageDetail_20' ) start [2025-02-05 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404017', 'tblTempUsageDetail_20' ) end [2025-02-05 00:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:26:23] Production.INFO: ==18149== Releasing lock... [2025-02-05 00:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:26:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:27:05 [end_date_ymd] => 2025-02-05 00:27:05 [RateCDR] => 1 ) [2025-02-05 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:27:05' and `end` < '2025-02-05 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:27:19] Production.INFO: count ==387 [2025-02-05 00:27:20] Production.ERROR: pbx CDR StartTime 2025-02-04 21:27:05 - End Time 2025-02-05 00:27:05 [2025-02-05 00:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404022', 'tblTempUsageDetail_20' ) start [2025-02-05 00:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404022', 'tblTempUsageDetail_20' ) end [2025-02-05 00:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404022', 'tblTempVendorCDR_20' ) start [2025-02-05 00:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404022', 'tblTempVendorCDR_20' ) end [2025-02-05 00:27:20] Production.INFO: ProcessCDR(1,14404022,1,1,2) [2025-02-05 00:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404022', 'tblTempUsageDetail_20' ) start [2025-02-05 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404022', 'tblTempUsageDetail_20' ) end [2025-02-05 00:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:27:23] Production.INFO: ==18222== Releasing lock... [2025-02-05 00:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:27:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:28:05 [end_date_ymd] => 2025-02-05 00:28:05 [RateCDR] => 1 ) [2025-02-05 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:28:05' and `end` < '2025-02-05 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:28:19] Production.INFO: count ==386 [2025-02-05 00:28:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:28:05 - End Time 2025-02-05 00:28:05 [2025-02-05 00:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404027', 'tblTempUsageDetail_20' ) start [2025-02-05 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404027', 'tblTempUsageDetail_20' ) end [2025-02-05 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404027', 'tblTempVendorCDR_20' ) start [2025-02-05 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404027', 'tblTempVendorCDR_20' ) end [2025-02-05 00:28:19] Production.INFO: ProcessCDR(1,14404027,1,1,2) [2025-02-05 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404027', 'tblTempUsageDetail_20' ) start [2025-02-05 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404027', 'tblTempUsageDetail_20' ) end [2025-02-05 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:28:22] Production.INFO: ==18304== Releasing lock... [2025-02-05 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:28:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:29:05 [end_date_ymd] => 2025-02-05 00:29:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 21:29:05' and `end` < '2025-02-05 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-02-05 00:29:19] Production.INFO: count ==385 [2025-02-05 00:29:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:29:05 - End Time 2025-02-05 00:29:05 [2025-02-05 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404032', 'tblTempUsageDetail_20' ) start [2025-02-05 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404032', 'tblTempUsageDetail_20' ) end [2025-02-05 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404032', 'tblTempVendorCDR_20' ) start [2025-02-05 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404032', 'tblTempVendorCDR_20' ) end [2025-02-05 00:29:19] Production.INFO: ProcessCDR(1,14404032,1,1,2) [2025-02-05 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404032', 'tblTempUsageDetail_20' ) start [2025-02-05 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404032', 'tblTempUsageDetail_20' ) end [2025-02-05 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:29:22] Production.INFO: ==18377== Releasing lock... [2025-02-05 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:29:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:30:05 [end_date_ymd] => 2025-02-05 00:30:05 [RateCDR] => 1 ) [2025-02-05 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:30:05' and `end` < '2025-02-05 00:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:30:18] Production.INFO: count ==390 [2025-02-05 00:30:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:30:05 - End Time 2025-02-05 00:30:05 [2025-02-05 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404038', 'tblTempUsageDetail_20' ) start [2025-02-05 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404038', 'tblTempUsageDetail_20' ) end [2025-02-05 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404038', 'tblTempVendorCDR_20' ) start [2025-02-05 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404038', 'tblTempVendorCDR_20' ) end [2025-02-05 00:30:18] Production.INFO: ProcessCDR(1,14404038,1,1,2) [2025-02-05 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404038', 'tblTempUsageDetail_20' ) start [2025-02-05 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404038', 'tblTempUsageDetail_20' ) end [2025-02-05 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:30:21] Production.INFO: ==18492== Releasing lock... [2025-02-05 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:30:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:31:06 [end_date_ymd] => 2025-02-05 00:31:06 [RateCDR] => 1 ) [2025-02-05 00:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:31:06' and `end` < '2025-02-05 00:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:31:19] Production.INFO: count ==395 [2025-02-05 00:31:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:31:06 - End Time 2025-02-05 00:31:06 [2025-02-05 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404043', 'tblTempUsageDetail_20' ) start [2025-02-05 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404043', 'tblTempUsageDetail_20' ) end [2025-02-05 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404043', 'tblTempVendorCDR_20' ) start [2025-02-05 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404043', 'tblTempVendorCDR_20' ) end [2025-02-05 00:31:19] Production.INFO: ProcessCDR(1,14404043,1,1,2) [2025-02-05 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404043', 'tblTempUsageDetail_20' ) start [2025-02-05 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404043', 'tblTempUsageDetail_20' ) end [2025-02-05 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:31:22] Production.INFO: ==18570== Releasing lock... [2025-02-05 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:31:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:32:05 [end_date_ymd] => 2025-02-05 00:32:05 [RateCDR] => 1 ) [2025-02-05 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:32:05' and `end` < '2025-02-05 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:32:18] Production.INFO: count ==395 [2025-02-05 00:32:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:32:05 - End Time 2025-02-05 00:32:05 [2025-02-05 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404048', 'tblTempUsageDetail_20' ) start [2025-02-05 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404048', 'tblTempUsageDetail_20' ) end [2025-02-05 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404048', 'tblTempVendorCDR_20' ) start [2025-02-05 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404048', 'tblTempVendorCDR_20' ) end [2025-02-05 00:32:18] Production.INFO: ProcessCDR(1,14404048,1,1,2) [2025-02-05 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404048', 'tblTempUsageDetail_20' ) start [2025-02-05 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404048', 'tblTempUsageDetail_20' ) end [2025-02-05 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:32:22] Production.INFO: ==18641== Releasing lock... [2025-02-05 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:33:05 [end_date_ymd] => 2025-02-05 00:33:05 [RateCDR] => 1 ) [2025-02-05 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:33:05' and `end` < '2025-02-05 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:33:18] Production.INFO: count ==392 [2025-02-05 00:33:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:33:05 - End Time 2025-02-05 00:33:05 [2025-02-05 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404053', 'tblTempUsageDetail_20' ) start [2025-02-05 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404053', 'tblTempUsageDetail_20' ) end [2025-02-05 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404053', 'tblTempVendorCDR_20' ) start [2025-02-05 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404053', 'tblTempVendorCDR_20' ) end [2025-02-05 00:33:18] Production.INFO: ProcessCDR(1,14404053,1,1,2) [2025-02-05 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404053', 'tblTempUsageDetail_20' ) start [2025-02-05 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404053', 'tblTempUsageDetail_20' ) end [2025-02-05 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:33:22] Production.INFO: ==18716== Releasing lock... [2025-02-05 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:33:22] Production.INFO: 32 MB #Memory Used# [2025-02-05 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:34:05 [end_date_ymd] => 2025-02-05 00:34:05 [RateCDR] => 1 ) [2025-02-05 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:34:05' and `end` < '2025-02-05 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:34:18] Production.INFO: count ==391 [2025-02-05 00:34:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:34:05 - End Time 2025-02-05 00:34:05 [2025-02-05 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404058', 'tblTempUsageDetail_20' ) start [2025-02-05 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404058', 'tblTempUsageDetail_20' ) end [2025-02-05 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404058', 'tblTempVendorCDR_20' ) start [2025-02-05 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404058', 'tblTempVendorCDR_20' ) end [2025-02-05 00:34:18] Production.INFO: ProcessCDR(1,14404058,1,1,2) [2025-02-05 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404058', 'tblTempUsageDetail_20' ) start [2025-02-05 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404058', 'tblTempUsageDetail_20' ) end [2025-02-05 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:34:21] Production.INFO: ==18792== Releasing lock... [2025-02-05 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:34:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:35:05 [end_date_ymd] => 2025-02-05 00:35:05 [RateCDR] => 1 ) [2025-02-05 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:35:05' and `end` < '2025-02-05 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:35:18] Production.INFO: count ==387 [2025-02-05 00:35:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:35:05 - End Time 2025-02-05 00:35:05 [2025-02-05 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404063', 'tblTempUsageDetail_20' ) start [2025-02-05 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404063', 'tblTempUsageDetail_20' ) end [2025-02-05 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404063', 'tblTempVendorCDR_20' ) start [2025-02-05 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404063', 'tblTempVendorCDR_20' ) end [2025-02-05 00:35:18] Production.INFO: ProcessCDR(1,14404063,1,1,2) [2025-02-05 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404063', 'tblTempUsageDetail_20' ) start [2025-02-05 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404063', 'tblTempUsageDetail_20' ) end [2025-02-05 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:35:21] Production.INFO: ==18864== Releasing lock... [2025-02-05 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:36:05 [end_date_ymd] => 2025-02-05 00:36:05 [RateCDR] => 1 ) [2025-02-05 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:36:05' and `end` < '2025-02-05 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:36:19] Production.INFO: count ==387 [2025-02-05 00:36:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:36:05 - End Time 2025-02-05 00:36:05 [2025-02-05 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404068', 'tblTempUsageDetail_20' ) start [2025-02-05 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404068', 'tblTempUsageDetail_20' ) end [2025-02-05 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404068', 'tblTempVendorCDR_20' ) start [2025-02-05 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404068', 'tblTempVendorCDR_20' ) end [2025-02-05 00:36:19] Production.INFO: ProcessCDR(1,14404068,1,1,2) [2025-02-05 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404068', 'tblTempUsageDetail_20' ) start [2025-02-05 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404068', 'tblTempUsageDetail_20' ) end [2025-02-05 00:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:36:23] Production.INFO: ==18940== Releasing lock... [2025-02-05 00:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:36:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:37:05 [end_date_ymd] => 2025-02-05 00:37:05 [RateCDR] => 1 ) [2025-02-05 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:37:05' and `end` < '2025-02-05 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:37:19] Production.INFO: count ==386 [2025-02-05 00:37:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:37:05 - End Time 2025-02-05 00:37:05 [2025-02-05 00:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404073', 'tblTempUsageDetail_20' ) start [2025-02-05 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404073', 'tblTempUsageDetail_20' ) end [2025-02-05 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404073', 'tblTempVendorCDR_20' ) start [2025-02-05 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404073', 'tblTempVendorCDR_20' ) end [2025-02-05 00:37:19] Production.INFO: ProcessCDR(1,14404073,1,1,2) [2025-02-05 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404073', 'tblTempUsageDetail_20' ) start [2025-02-05 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404073', 'tblTempUsageDetail_20' ) end [2025-02-05 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:37:22] Production.INFO: ==19017== Releasing lock... [2025-02-05 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:37:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:38:05 [end_date_ymd] => 2025-02-05 00:38:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 21:38:05' and `end` < '2025-02-05 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-02-05 00:38:20] Production.INFO: count ==390 [2025-02-05 00:38:20] Production.ERROR: pbx CDR StartTime 2025-02-04 21:38:05 - End Time 2025-02-05 00:38:05 [2025-02-05 00:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404078', 'tblTempUsageDetail_20' ) start [2025-02-05 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404078', 'tblTempUsageDetail_20' ) end [2025-02-05 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404078', 'tblTempVendorCDR_20' ) start [2025-02-05 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404078', 'tblTempVendorCDR_20' ) end [2025-02-05 00:38:20] Production.INFO: ProcessCDR(1,14404078,1,1,2) [2025-02-05 00:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404078', 'tblTempUsageDetail_20' ) start [2025-02-05 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404078', 'tblTempUsageDetail_20' ) end [2025-02-05 00:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:38:23] Production.INFO: ==19104== Releasing lock... [2025-02-05 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:38:23] Production.INFO: 32 MB #Memory Used# [2025-02-05 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:39:04 [end_date_ymd] => 2025-02-05 00:39:04 [RateCDR] => 1 ) [2025-02-05 00:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:39:04' and `end` < '2025-02-05 00:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:39:17] Production.INFO: count ==391 [2025-02-05 00:39:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:39:04 - End Time 2025-02-05 00:39:04 [2025-02-05 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404083', 'tblTempUsageDetail_20' ) start [2025-02-05 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404083', 'tblTempUsageDetail_20' ) end [2025-02-05 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404083', 'tblTempVendorCDR_20' ) start [2025-02-05 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404083', 'tblTempVendorCDR_20' ) end [2025-02-05 00:39:18] Production.INFO: ProcessCDR(1,14404083,1,1,2) [2025-02-05 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404083', 'tblTempUsageDetail_20' ) start [2025-02-05 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404083', 'tblTempUsageDetail_20' ) end [2025-02-05 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:39:22] Production.INFO: ==19178== Releasing lock... [2025-02-05 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:39:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:40:06 [end_date_ymd] => 2025-02-05 00:40:06 [RateCDR] => 1 ) [2025-02-05 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:40:06' and `end` < '2025-02-05 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:40:25] Production.INFO: count ==399 [2025-02-05 00:40:25] Production.ERROR: pbx CDR StartTime 2025-02-04 21:40:06 - End Time 2025-02-05 00:40:06 [2025-02-05 00:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404089', 'tblTempUsageDetail_20' ) start [2025-02-05 00:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404089', 'tblTempUsageDetail_20' ) end [2025-02-05 00:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404089', 'tblTempVendorCDR_20' ) start [2025-02-05 00:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404089', 'tblTempVendorCDR_20' ) end [2025-02-05 00:40:25] Production.INFO: ProcessCDR(1,14404089,1,1,2) [2025-02-05 00:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404089', 'tblTempUsageDetail_20' ) start [2025-02-05 00:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404089', 'tblTempUsageDetail_20' ) end [2025-02-05 00:40:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:40:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:40:29] Production.INFO: ==19254== Releasing lock... [2025-02-05 00:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:40:29] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:41:04 [end_date_ymd] => 2025-02-05 00:41:04 [RateCDR] => 1 ) [2025-02-05 00:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:41:04' and `end` < '2025-02-05 00:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:41:17] Production.INFO: count ==413 [2025-02-05 00:41:17] Production.ERROR: pbx CDR StartTime 2025-02-04 21:41:04 - End Time 2025-02-05 00:41:04 [2025-02-05 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404094', 'tblTempUsageDetail_20' ) start [2025-02-05 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404094', 'tblTempUsageDetail_20' ) end [2025-02-05 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404094', 'tblTempVendorCDR_20' ) start [2025-02-05 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404094', 'tblTempVendorCDR_20' ) end [2025-02-05 00:41:17] Production.INFO: ProcessCDR(1,14404094,1,1,2) [2025-02-05 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404094', 'tblTempUsageDetail_20' ) start [2025-02-05 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404094', 'tblTempUsageDetail_20' ) end [2025-02-05 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:41:21] Production.INFO: ==19329== Releasing lock... [2025-02-05 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:42:05 [end_date_ymd] => 2025-02-05 00:42:05 [RateCDR] => 1 ) [2025-02-05 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:42:05' and `end` < '2025-02-05 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:42:19] Production.INFO: count ==410 [2025-02-05 00:42:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:42:05 - End Time 2025-02-05 00:42:05 [2025-02-05 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404099', 'tblTempUsageDetail_20' ) start [2025-02-05 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404099', 'tblTempUsageDetail_20' ) end [2025-02-05 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404099', 'tblTempVendorCDR_20' ) start [2025-02-05 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404099', 'tblTempVendorCDR_20' ) end [2025-02-05 00:42:19] Production.INFO: ProcessCDR(1,14404099,1,1,2) [2025-02-05 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404099', 'tblTempUsageDetail_20' ) start [2025-02-05 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404099', 'tblTempUsageDetail_20' ) end [2025-02-05 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:42:22] Production.INFO: ==19403== Releasing lock... [2025-02-05 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:43:06 [end_date_ymd] => 2025-02-05 00:43:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 21:43:06' and `end` < '2025-02-05 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-02-05 00:43:19] Production.INFO: count ==410 [2025-02-05 00:43:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:43:06 - End Time 2025-02-05 00:43:06 [2025-02-05 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404104', 'tblTempUsageDetail_20' ) start [2025-02-05 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404104', 'tblTempUsageDetail_20' ) end [2025-02-05 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404104', 'tblTempVendorCDR_20' ) start [2025-02-05 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404104', 'tblTempVendorCDR_20' ) end [2025-02-05 00:43:19] Production.INFO: ProcessCDR(1,14404104,1,1,2) [2025-02-05 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404104', 'tblTempUsageDetail_20' ) start [2025-02-05 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404104', 'tblTempUsageDetail_20' ) end [2025-02-05 00:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:43:23] Production.INFO: ==19476== Releasing lock... [2025-02-05 00:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:43:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:44:05 [end_date_ymd] => 2025-02-05 00:44:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 21:44:05' and `end` < '2025-02-05 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-02-05 00:44:19] Production.INFO: count ==408 [2025-02-05 00:44:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:44:05 - End Time 2025-02-05 00:44:05 [2025-02-05 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404109', 'tblTempUsageDetail_20' ) start [2025-02-05 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404109', 'tblTempUsageDetail_20' ) end [2025-02-05 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404109', 'tblTempVendorCDR_20' ) start [2025-02-05 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404109', 'tblTempVendorCDR_20' ) end [2025-02-05 00:44:19] Production.INFO: ProcessCDR(1,14404109,1,1,2) [2025-02-05 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404109', 'tblTempUsageDetail_20' ) start [2025-02-05 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404109', 'tblTempUsageDetail_20' ) end [2025-02-05 00:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:44:23] Production.INFO: ==19555== Releasing lock... [2025-02-05 00:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:44:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:45:05 [end_date_ymd] => 2025-02-05 00:45:05 [RateCDR] => 1 ) [2025-02-05 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:45:05' and `end` < '2025-02-05 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:45:18] Production.INFO: count ==407 [2025-02-05 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:45:05 - End Time 2025-02-05 00:45:05 [2025-02-05 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404114', 'tblTempUsageDetail_20' ) start [2025-02-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404114', 'tblTempUsageDetail_20' ) end [2025-02-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404114', 'tblTempVendorCDR_20' ) start [2025-02-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404114', 'tblTempVendorCDR_20' ) end [2025-02-05 00:45:18] Production.INFO: ProcessCDR(1,14404114,1,1,2) [2025-02-05 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404114', 'tblTempUsageDetail_20' ) start [2025-02-05 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404114', 'tblTempUsageDetail_20' ) end [2025-02-05 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:45:21] Production.INFO: ==19666== Releasing lock... [2025-02-05 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:45:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:46:05 [end_date_ymd] => 2025-02-05 00:46:05 [RateCDR] => 1 ) [2025-02-05 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:46:05' and `end` < '2025-02-05 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:46:18] Production.INFO: count ==406 [2025-02-05 00:46:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:46:05 - End Time 2025-02-05 00:46:05 [2025-02-05 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404119', 'tblTempUsageDetail_20' ) start [2025-02-05 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404119', 'tblTempUsageDetail_20' ) end [2025-02-05 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404119', 'tblTempVendorCDR_20' ) start [2025-02-05 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404119', 'tblTempVendorCDR_20' ) end [2025-02-05 00:46:18] Production.INFO: ProcessCDR(1,14404119,1,1,2) [2025-02-05 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404119', 'tblTempUsageDetail_20' ) start [2025-02-05 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404119', 'tblTempUsageDetail_20' ) end [2025-02-05 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:46:21] Production.INFO: ==19741== Releasing lock... [2025-02-05 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:47:05 [end_date_ymd] => 2025-02-05 00:47:05 [RateCDR] => 1 ) [2025-02-05 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:47:05' and `end` < '2025-02-05 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:47:18] Production.INFO: count ==406 [2025-02-05 00:47:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:47:05 - End Time 2025-02-05 00:47:05 [2025-02-05 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404124', 'tblTempUsageDetail_20' ) start [2025-02-05 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404124', 'tblTempUsageDetail_20' ) end [2025-02-05 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404124', 'tblTempVendorCDR_20' ) start [2025-02-05 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404124', 'tblTempVendorCDR_20' ) end [2025-02-05 00:47:18] Production.INFO: ProcessCDR(1,14404124,1,1,2) [2025-02-05 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404124', 'tblTempUsageDetail_20' ) start [2025-02-05 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404124', 'tblTempUsageDetail_20' ) end [2025-02-05 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:47:21] Production.INFO: ==19816== Releasing lock... [2025-02-05 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:48:05 [end_date_ymd] => 2025-02-05 00:48:05 [RateCDR] => 1 ) [2025-02-05 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:48:05' and `end` < '2025-02-05 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:48:18] Production.INFO: count ==406 [2025-02-05 00:48:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:48:05 - End Time 2025-02-05 00:48:05 [2025-02-05 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404129', 'tblTempUsageDetail_20' ) start [2025-02-05 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404129', 'tblTempUsageDetail_20' ) end [2025-02-05 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404129', 'tblTempVendorCDR_20' ) start [2025-02-05 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404129', 'tblTempVendorCDR_20' ) end [2025-02-05 00:48:18] Production.INFO: ProcessCDR(1,14404129,1,1,2) [2025-02-05 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404129', 'tblTempUsageDetail_20' ) start [2025-02-05 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404129', 'tblTempUsageDetail_20' ) end [2025-02-05 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:48:21] Production.INFO: ==19895== Releasing lock... [2025-02-05 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:49:05 [end_date_ymd] => 2025-02-05 00:49:05 [RateCDR] => 1 ) [2025-02-05 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:49:05' and `end` < '2025-02-05 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:49:18] Production.INFO: count ==407 [2025-02-05 00:49:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:49:05 - End Time 2025-02-05 00:49:05 [2025-02-05 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404134', 'tblTempUsageDetail_20' ) start [2025-02-05 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404134', 'tblTempUsageDetail_20' ) end [2025-02-05 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404134', 'tblTempVendorCDR_20' ) start [2025-02-05 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404134', 'tblTempVendorCDR_20' ) end [2025-02-05 00:49:18] Production.INFO: ProcessCDR(1,14404134,1,1,2) [2025-02-05 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404134', 'tblTempUsageDetail_20' ) start [2025-02-05 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404134', 'tblTempUsageDetail_20' ) end [2025-02-05 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:49:22] Production.INFO: ==19968== Releasing lock... [2025-02-05 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:49:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:50:06 [end_date_ymd] => 2025-02-05 00:50:06 [RateCDR] => 1 ) [2025-02-05 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:50:06' and `end` < '2025-02-05 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:50:19] Production.INFO: count ==415 [2025-02-05 00:50:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:50:06 - End Time 2025-02-05 00:50:06 [2025-02-05 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404140', 'tblTempUsageDetail_20' ) start [2025-02-05 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404140', 'tblTempUsageDetail_20' ) end [2025-02-05 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404140', 'tblTempVendorCDR_20' ) start [2025-02-05 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404140', 'tblTempVendorCDR_20' ) end [2025-02-05 00:50:19] Production.INFO: ProcessCDR(1,14404140,1,1,2) [2025-02-05 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404140', 'tblTempUsageDetail_20' ) start [2025-02-05 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404140', 'tblTempUsageDetail_20' ) end [2025-02-05 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:50:22] Production.INFO: ==20044== Releasing lock... [2025-02-05 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:50:22] Production.INFO: 32 MB #Memory Used# [2025-02-05 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:51:06 [end_date_ymd] => 2025-02-05 00:51:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 21:51:06' and `end` < '2025-02-05 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-02-05 00:51:20] Production.INFO: count ==428 [2025-02-05 00:51:20] Production.ERROR: pbx CDR StartTime 2025-02-04 21:51:06 - End Time 2025-02-05 00:51:06 [2025-02-05 00:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404145', 'tblTempUsageDetail_20' ) start [2025-02-05 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404145', 'tblTempUsageDetail_20' ) end [2025-02-05 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404145', 'tblTempVendorCDR_20' ) start [2025-02-05 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404145', 'tblTempVendorCDR_20' ) end [2025-02-05 00:51:20] Production.INFO: ProcessCDR(1,14404145,1,1,2) [2025-02-05 00:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404145', 'tblTempUsageDetail_20' ) start [2025-02-05 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404145', 'tblTempUsageDetail_20' ) end [2025-02-05 00:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:51:23] Production.INFO: ==20121== Releasing lock... [2025-02-05 00:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:51:23] Production.INFO: 32 MB #Memory Used# [2025-02-05 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:52:06 [end_date_ymd] => 2025-02-05 00:52:06 [RateCDR] => 1 ) [2025-02-05 00:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:52:06' and `end` < '2025-02-05 00:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:52:18] Production.INFO: count ==428 [2025-02-05 00:52:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:52:06 - End Time 2025-02-05 00:52:06 [2025-02-05 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404150', 'tblTempUsageDetail_20' ) start [2025-02-05 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404150', 'tblTempUsageDetail_20' ) end [2025-02-05 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404150', 'tblTempVendorCDR_20' ) start [2025-02-05 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404150', 'tblTempVendorCDR_20' ) end [2025-02-05 00:52:19] Production.INFO: ProcessCDR(1,14404150,1,1,2) [2025-02-05 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404150', 'tblTempUsageDetail_20' ) start [2025-02-05 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404150', 'tblTempUsageDetail_20' ) end [2025-02-05 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:52:22] Production.INFO: ==20200== Releasing lock... [2025-02-05 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:52:22] Production.INFO: 32 MB #Memory Used# [2025-02-05 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:53:06 [end_date_ymd] => 2025-02-05 00:53:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 21:53:06' and `end` < '2025-02-05 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-02-05 00:53:18] Production.INFO: count ==421 [2025-02-05 00:53:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:53:06 - End Time 2025-02-05 00:53:06 [2025-02-05 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404155', 'tblTempUsageDetail_20' ) start [2025-02-05 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404155', 'tblTempUsageDetail_20' ) end [2025-02-05 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404155', 'tblTempVendorCDR_20' ) start [2025-02-05 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404155', 'tblTempVendorCDR_20' ) end [2025-02-05 00:53:19] Production.INFO: ProcessCDR(1,14404155,1,1,2) [2025-02-05 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404155', 'tblTempUsageDetail_20' ) start [2025-02-05 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404155', 'tblTempUsageDetail_20' ) end [2025-02-05 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:53:22] Production.INFO: ==20275== Releasing lock... [2025-02-05 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:53:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:54:05 [end_date_ymd] => 2025-02-05 00:54:05 [RateCDR] => 1 ) [2025-02-05 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:54:05' and `end` < '2025-02-05 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:54:19] Production.INFO: count ==413 [2025-02-05 00:54:20] Production.ERROR: pbx CDR StartTime 2025-02-04 21:54:05 - End Time 2025-02-05 00:54:05 [2025-02-05 00:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404160', 'tblTempUsageDetail_20' ) start [2025-02-05 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404160', 'tblTempUsageDetail_20' ) end [2025-02-05 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404160', 'tblTempVendorCDR_20' ) start [2025-02-05 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404160', 'tblTempVendorCDR_20' ) end [2025-02-05 00:54:20] Production.INFO: ProcessCDR(1,14404160,1,1,2) [2025-02-05 00:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404160', 'tblTempUsageDetail_20' ) start [2025-02-05 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404160', 'tblTempUsageDetail_20' ) end [2025-02-05 00:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:54:23] Production.INFO: ==20348== Releasing lock... [2025-02-05 00:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:54:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:55:05 [end_date_ymd] => 2025-02-05 00:55:05 [RateCDR] => 1 ) [2025-02-05 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:55:05' and `end` < '2025-02-05 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:55:17] Production.INFO: count ==406 [2025-02-05 00:55:17] Production.ERROR: pbx CDR StartTime 2025-02-04 21:55:05 - End Time 2025-02-05 00:55:05 [2025-02-05 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404165', 'tblTempUsageDetail_20' ) start [2025-02-05 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404165', 'tblTempUsageDetail_20' ) end [2025-02-05 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404165', 'tblTempVendorCDR_20' ) start [2025-02-05 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404165', 'tblTempVendorCDR_20' ) end [2025-02-05 00:55:17] Production.INFO: ProcessCDR(1,14404165,1,1,2) [2025-02-05 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404165', 'tblTempUsageDetail_20' ) start [2025-02-05 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404165', 'tblTempUsageDetail_20' ) end [2025-02-05 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:55:21] Production.INFO: ==20419== Releasing lock... [2025-02-05 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:55:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:56:05 [end_date_ymd] => 2025-02-05 00:56:05 [RateCDR] => 1 ) [2025-02-05 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:56:05' and `end` < '2025-02-05 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:56:18] Production.INFO: count ==403 [2025-02-05 00:56:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:56:05 - End Time 2025-02-05 00:56:05 [2025-02-05 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404170', 'tblTempUsageDetail_20' ) start [2025-02-05 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404170', 'tblTempUsageDetail_20' ) end [2025-02-05 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404170', 'tblTempVendorCDR_20' ) start [2025-02-05 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404170', 'tblTempVendorCDR_20' ) end [2025-02-05 00:56:18] Production.INFO: ProcessCDR(1,14404170,1,1,2) [2025-02-05 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404170', 'tblTempUsageDetail_20' ) start [2025-02-05 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404170', 'tblTempUsageDetail_20' ) end [2025-02-05 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:56:21] Production.INFO: ==20493== Releasing lock... [2025-02-05 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:56:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:57:06 [end_date_ymd] => 2025-02-05 00:57:06 [RateCDR] => 1 ) [2025-02-05 00:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:57:06' and `end` < '2025-02-05 00:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:57:19] Production.INFO: count ==407 [2025-02-05 00:57:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:57:06 - End Time 2025-02-05 00:57:06 [2025-02-05 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404175', 'tblTempUsageDetail_20' ) start [2025-02-05 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404175', 'tblTempUsageDetail_20' ) end [2025-02-05 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404175', 'tblTempVendorCDR_20' ) start [2025-02-05 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404175', 'tblTempVendorCDR_20' ) end [2025-02-05 00:57:19] Production.INFO: ProcessCDR(1,14404175,1,1,2) [2025-02-05 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404175', 'tblTempUsageDetail_20' ) start [2025-02-05 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404175', 'tblTempUsageDetail_20' ) end [2025-02-05 00:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:57:23] Production.INFO: ==20567== Releasing lock... [2025-02-05 00:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:57:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:58:05 [end_date_ymd] => 2025-02-05 00:58:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 21:58:05' and `end` < '2025-02-05 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-02-05 00:58:18] Production.INFO: count ==407 [2025-02-05 00:58:18] Production.ERROR: pbx CDR StartTime 2025-02-04 21:58:05 - End Time 2025-02-05 00:58:05 [2025-02-05 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404180', 'tblTempUsageDetail_20' ) start [2025-02-05 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404180', 'tblTempUsageDetail_20' ) end [2025-02-05 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404180', 'tblTempVendorCDR_20' ) start [2025-02-05 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404180', 'tblTempVendorCDR_20' ) end [2025-02-05 00:58:18] Production.INFO: ProcessCDR(1,14404180,1,1,2) [2025-02-05 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404180', 'tblTempUsageDetail_20' ) start [2025-02-05 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404180', 'tblTempUsageDetail_20' ) end [2025-02-05 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:58:21] Production.INFO: ==20638== Releasing lock... [2025-02-05 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:58:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 21:59:05 [end_date_ymd] => 2025-02-05 00:59:05 [RateCDR] => 1 ) [2025-02-05 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 21:59:05' and `end` < '2025-02-05 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 00:59:19] Production.INFO: count ==407 [2025-02-05 00:59:19] Production.ERROR: pbx CDR StartTime 2025-02-04 21:59:05 - End Time 2025-02-05 00:59:05 [2025-02-05 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404185', 'tblTempUsageDetail_20' ) start [2025-02-05 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404185', 'tblTempUsageDetail_20' ) end [2025-02-05 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404185', 'tblTempVendorCDR_20' ) start [2025-02-05 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404185', 'tblTempVendorCDR_20' ) end [2025-02-05 00:59:19] Production.INFO: ProcessCDR(1,14404185,1,1,2) [2025-02-05 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404185', 'tblTempUsageDetail_20' ) start [2025-02-05 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404185', 'tblTempUsageDetail_20' ) end [2025-02-05 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 00:59:22] Production.INFO: ==20717== Releasing lock... [2025-02-05 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 00:59:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:00:05 [end_date_ymd] => 2025-02-05 01:00:05 [RateCDR] => 1 ) [2025-02-05 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:00:05' and `end` < '2025-02-05 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:00:18] Production.INFO: count ==415 [2025-02-05 01:00:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:00:05 - End Time 2025-02-05 01:00:05 [2025-02-05 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404190', 'tblTempUsageDetail_20' ) start [2025-02-05 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404190', 'tblTempUsageDetail_20' ) end [2025-02-05 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404190', 'tblTempVendorCDR_20' ) start [2025-02-05 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404190', 'tblTempVendorCDR_20' ) end [2025-02-05 01:00:18] Production.INFO: ProcessCDR(1,14404190,1,1,2) [2025-02-05 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404190', 'tblTempUsageDetail_20' ) start [2025-02-05 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404190', 'tblTempUsageDetail_20' ) end [2025-02-05 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:00:22] Production.INFO: ==20844== Releasing lock... [2025-02-05 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:00:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:01:05 [end_date_ymd] => 2025-02-05 01:01:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:01:05' and `end` < '2025-02-05 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-02-05 01:01:18] Production.INFO: count ==433 [2025-02-05 01:01:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:01:05 - End Time 2025-02-05 01:01:05 [2025-02-05 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404196', 'tblTempUsageDetail_20' ) start [2025-02-05 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404196', 'tblTempUsageDetail_20' ) end [2025-02-05 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404196', 'tblTempVendorCDR_20' ) start [2025-02-05 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404196', 'tblTempVendorCDR_20' ) end [2025-02-05 01:01:18] Production.INFO: ProcessCDR(1,14404196,1,1,2) [2025-02-05 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404196', 'tblTempUsageDetail_20' ) start [2025-02-05 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404196', 'tblTempUsageDetail_20' ) end [2025-02-05 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:01:21] Production.INFO: ==20948== Releasing lock... [2025-02-05 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:01:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:02:05 [end_date_ymd] => 2025-02-05 01:02:05 [RateCDR] => 1 ) [2025-02-05 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:02:05' and `end` < '2025-02-05 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:02:18] Production.INFO: count ==436 [2025-02-05 01:02:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:02:05 - End Time 2025-02-05 01:02:05 [2025-02-05 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404201', 'tblTempUsageDetail_20' ) start [2025-02-05 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404201', 'tblTempUsageDetail_20' ) end [2025-02-05 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404201', 'tblTempVendorCDR_20' ) start [2025-02-05 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404201', 'tblTempVendorCDR_20' ) end [2025-02-05 01:02:18] Production.INFO: ProcessCDR(1,14404201,1,1,2) [2025-02-05 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404201', 'tblTempUsageDetail_20' ) start [2025-02-05 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404201', 'tblTempUsageDetail_20' ) end [2025-02-05 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:02:21] Production.INFO: ==21021== Releasing lock... [2025-02-05 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:02:21] Production.INFO: 32 MB #Memory Used# [2025-02-05 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:03:05 [end_date_ymd] => 2025-02-05 01:03:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:03:05' and `end` < '2025-02-05 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-02-05 01:03:20] Production.INFO: count ==433 [2025-02-05 01:03:20] Production.ERROR: pbx CDR StartTime 2025-02-04 22:03:05 - End Time 2025-02-05 01:03:05 [2025-02-05 01:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404206', 'tblTempUsageDetail_20' ) start [2025-02-05 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404206', 'tblTempUsageDetail_20' ) end [2025-02-05 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404206', 'tblTempVendorCDR_20' ) start [2025-02-05 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404206', 'tblTempVendorCDR_20' ) end [2025-02-05 01:03:20] Production.INFO: ProcessCDR(1,14404206,1,1,2) [2025-02-05 01:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404206', 'tblTempUsageDetail_20' ) start [2025-02-05 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404206', 'tblTempUsageDetail_20' ) end [2025-02-05 01:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:03:23] Production.INFO: ==21100== Releasing lock... [2025-02-05 01:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:03:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:04:06 [end_date_ymd] => 2025-02-05 01:04:06 [RateCDR] => 1 ) [2025-02-05 01:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:04:06' and `end` < '2025-02-05 01:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:04:19] Production.INFO: count ==433 [2025-02-05 01:04:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:04:06 - End Time 2025-02-05 01:04:06 [2025-02-05 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404211', 'tblTempUsageDetail_20' ) start [2025-02-05 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404211', 'tblTempUsageDetail_20' ) end [2025-02-05 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404211', 'tblTempVendorCDR_20' ) start [2025-02-05 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404211', 'tblTempVendorCDR_20' ) end [2025-02-05 01:04:19] Production.INFO: ProcessCDR(1,14404211,1,1,2) [2025-02-05 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404211', 'tblTempUsageDetail_20' ) start [2025-02-05 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404211', 'tblTempUsageDetail_20' ) end [2025-02-05 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:04:22] Production.INFO: ==21173== Releasing lock... [2025-02-05 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:04:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:05:05 [end_date_ymd] => 2025-02-05 01:05:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:05:05' and `end` < '2025-02-05 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-02-05 01:05:18] Production.INFO: count ==433 [2025-02-05 01:05:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:05:05 - End Time 2025-02-05 01:05:05 [2025-02-05 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404216', 'tblTempUsageDetail_20' ) start [2025-02-05 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404216', 'tblTempUsageDetail_20' ) end [2025-02-05 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404216', 'tblTempVendorCDR_20' ) start [2025-02-05 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404216', 'tblTempVendorCDR_20' ) end [2025-02-05 01:05:18] Production.INFO: ProcessCDR(1,14404216,1,1,2) [2025-02-05 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404216', 'tblTempUsageDetail_20' ) start [2025-02-05 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404216', 'tblTempUsageDetail_20' ) end [2025-02-05 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:05:22] Production.INFO: ==21248== Releasing lock... [2025-02-05 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:05:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:06:05 [end_date_ymd] => 2025-02-05 01:06:05 [RateCDR] => 1 ) [2025-02-05 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:06:05' and `end` < '2025-02-05 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:06:19] Production.INFO: count ==432 [2025-02-05 01:06:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:06:05 - End Time 2025-02-05 01:06:05 [2025-02-05 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404221', 'tblTempUsageDetail_20' ) start [2025-02-05 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404221', 'tblTempUsageDetail_20' ) end [2025-02-05 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404221', 'tblTempVendorCDR_20' ) start [2025-02-05 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404221', 'tblTempVendorCDR_20' ) end [2025-02-05 01:06:19] Production.INFO: ProcessCDR(1,14404221,1,1,2) [2025-02-05 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404221', 'tblTempUsageDetail_20' ) start [2025-02-05 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404221', 'tblTempUsageDetail_20' ) end [2025-02-05 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:06:22] Production.INFO: ==21325== Releasing lock... [2025-02-05 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:06:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:07:05 [end_date_ymd] => 2025-02-05 01:07:05 [RateCDR] => 1 ) [2025-02-05 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:07:05' and `end` < '2025-02-05 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-02-05 01:07:18] Production.INFO: count ==432 [2025-02-05 01:07:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:07:05 - End Time 2025-02-05 01:07:05 [2025-02-05 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404226', 'tblTempUsageDetail_20' ) start [2025-02-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404226', 'tblTempUsageDetail_20' ) end [2025-02-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404226', 'tblTempVendorCDR_20' ) start [2025-02-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404226', 'tblTempVendorCDR_20' ) end [2025-02-05 01:07:18] Production.INFO: ProcessCDR(1,14404226,1,1,2) [2025-02-05 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404226', 'tblTempUsageDetail_20' ) start [2025-02-05 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404226', 'tblTempUsageDetail_20' ) end [2025-02-05 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:07:21] Production.INFO: ==21406== Releasing lock... [2025-02-05 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:07:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:08:05 [end_date_ymd] => 2025-02-05 01:08:05 [RateCDR] => 1 ) [2025-02-05 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:08:05' and `end` < '2025-02-05 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:08:19] Production.INFO: count ==432 [2025-02-05 01:08:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:08:05 - End Time 2025-02-05 01:08:05 [2025-02-05 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404231', 'tblTempUsageDetail_20' ) start [2025-02-05 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404231', 'tblTempUsageDetail_20' ) end [2025-02-05 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404231', 'tblTempVendorCDR_20' ) start [2025-02-05 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404231', 'tblTempVendorCDR_20' ) end [2025-02-05 01:08:19] Production.INFO: ProcessCDR(1,14404231,1,1,2) [2025-02-05 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404231', 'tblTempUsageDetail_20' ) start [2025-02-05 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404231', 'tblTempUsageDetail_20' ) end [2025-02-05 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:08:22] Production.INFO: ==21483== Releasing lock... [2025-02-05 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:08:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:09:05 [end_date_ymd] => 2025-02-05 01:09:05 [RateCDR] => 1 ) [2025-02-05 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:09:05' and `end` < '2025-02-05 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:09:18] Production.INFO: count ==432 [2025-02-05 01:09:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:09:05 - End Time 2025-02-05 01:09:05 [2025-02-05 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404236', 'tblTempUsageDetail_20' ) start [2025-02-05 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404236', 'tblTempUsageDetail_20' ) end [2025-02-05 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404236', 'tblTempVendorCDR_20' ) start [2025-02-05 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404236', 'tblTempVendorCDR_20' ) end [2025-02-05 01:09:19] Production.INFO: ProcessCDR(1,14404236,1,1,2) [2025-02-05 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404236', 'tblTempUsageDetail_20' ) start [2025-02-05 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404236', 'tblTempUsageDetail_20' ) end [2025-02-05 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:09:22] Production.INFO: ==21554== Releasing lock... [2025-02-05 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:09:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:10:06 [end_date_ymd] => 2025-02-05 01:10:06 [RateCDR] => 1 ) [2025-02-05 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:10:06' and `end` < '2025-02-05 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:10:19] Production.INFO: count ==442 [2025-02-05 01:10:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:10:06 - End Time 2025-02-05 01:10:06 [2025-02-05 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404242', 'tblTempUsageDetail_20' ) start [2025-02-05 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404242', 'tblTempUsageDetail_20' ) end [2025-02-05 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404242', 'tblTempVendorCDR_20' ) start [2025-02-05 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404242', 'tblTempVendorCDR_20' ) end [2025-02-05 01:10:19] Production.INFO: ProcessCDR(1,14404242,1,1,2) [2025-02-05 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404242', 'tblTempUsageDetail_20' ) start [2025-02-05 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404242', 'tblTempUsageDetail_20' ) end [2025-02-05 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:10:22] Production.INFO: ==21633== Releasing lock... [2025-02-05 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:10:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-05 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:11:06 [end_date_ymd] => 2025-02-05 01:11:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:11:06' and `end` < '2025-02-05 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-02-05 01:11:20] Production.INFO: count ==465 [2025-02-05 01:11:20] Production.ERROR: pbx CDR StartTime 2025-02-04 22:11:06 - End Time 2025-02-05 01:11:06 [2025-02-05 01:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404247', 'tblTempUsageDetail_20' ) start [2025-02-05 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404247', 'tblTempUsageDetail_20' ) end [2025-02-05 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404247', 'tblTempVendorCDR_20' ) start [2025-02-05 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404247', 'tblTempVendorCDR_20' ) end [2025-02-05 01:11:20] Production.INFO: ProcessCDR(1,14404247,1,1,2) [2025-02-05 01:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404247', 'tblTempUsageDetail_20' ) start [2025-02-05 01:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404247', 'tblTempUsageDetail_20' ) end [2025-02-05 01:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:11:24] Production.INFO: ==21708== Releasing lock... [2025-02-05 01:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:11:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:12:05 [end_date_ymd] => 2025-02-05 01:12:05 [RateCDR] => 1 ) [2025-02-05 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:12:05' and `end` < '2025-02-05 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:12:18] Production.INFO: count ==465 [2025-02-05 01:12:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:12:05 - End Time 2025-02-05 01:12:05 [2025-02-05 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404252', 'tblTempUsageDetail_20' ) start [2025-02-05 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404252', 'tblTempUsageDetail_20' ) end [2025-02-05 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404252', 'tblTempVendorCDR_20' ) start [2025-02-05 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404252', 'tblTempVendorCDR_20' ) end [2025-02-05 01:12:18] Production.INFO: ProcessCDR(1,14404252,1,1,2) [2025-02-05 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404252', 'tblTempUsageDetail_20' ) start [2025-02-05 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404252', 'tblTempUsageDetail_20' ) end [2025-02-05 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:12:21] Production.INFO: ==21783== Releasing lock... [2025-02-05 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:12:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:13:05 [end_date_ymd] => 2025-02-05 01:13:05 [RateCDR] => 1 ) [2025-02-05 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:13:05' and `end` < '2025-02-05 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:13:19] Production.INFO: count ==465 [2025-02-05 01:13:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:13:05 - End Time 2025-02-05 01:13:05 [2025-02-05 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404257', 'tblTempUsageDetail_20' ) start [2025-02-05 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404257', 'tblTempUsageDetail_20' ) end [2025-02-05 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404257', 'tblTempVendorCDR_20' ) start [2025-02-05 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404257', 'tblTempVendorCDR_20' ) end [2025-02-05 01:13:19] Production.INFO: ProcessCDR(1,14404257,1,1,2) [2025-02-05 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404257', 'tblTempUsageDetail_20' ) start [2025-02-05 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404257', 'tblTempUsageDetail_20' ) end [2025-02-05 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:13:22] Production.INFO: ==21864== Releasing lock... [2025-02-05 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:13:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:14:05 [end_date_ymd] => 2025-02-05 01:14:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:14:05' and `end` < '2025-02-05 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-02-05 01:14:18] Production.INFO: count ==465 [2025-02-05 01:14:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:14:05 - End Time 2025-02-05 01:14:05 [2025-02-05 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404262', 'tblTempUsageDetail_20' ) start [2025-02-05 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404262', 'tblTempUsageDetail_20' ) end [2025-02-05 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404262', 'tblTempVendorCDR_20' ) start [2025-02-05 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404262', 'tblTempVendorCDR_20' ) end [2025-02-05 01:14:18] Production.INFO: ProcessCDR(1,14404262,1,1,2) [2025-02-05 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404262', 'tblTempUsageDetail_20' ) start [2025-02-05 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404262', 'tblTempUsageDetail_20' ) end [2025-02-05 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:14:21] Production.INFO: ==21942== Releasing lock... [2025-02-05 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:15:06 [end_date_ymd] => 2025-02-05 01:15:06 [RateCDR] => 1 ) [2025-02-05 01:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:15:06' and `end` < '2025-02-05 01:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:15:18] Production.INFO: count ==465 [2025-02-05 01:15:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:15:06 - End Time 2025-02-05 01:15:06 [2025-02-05 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404267', 'tblTempUsageDetail_20' ) start [2025-02-05 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404267', 'tblTempUsageDetail_20' ) end [2025-02-05 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404267', 'tblTempVendorCDR_20' ) start [2025-02-05 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404267', 'tblTempVendorCDR_20' ) end [2025-02-05 01:15:19] Production.INFO: ProcessCDR(1,14404267,1,1,2) [2025-02-05 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404267', 'tblTempUsageDetail_20' ) start [2025-02-05 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404267', 'tblTempUsageDetail_20' ) end [2025-02-05 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:15:22] Production.INFO: ==22022== Releasing lock... [2025-02-05 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:15:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:16:05 [end_date_ymd] => 2025-02-05 01:16:05 [RateCDR] => 1 ) [2025-02-05 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:16:05' and `end` < '2025-02-05 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:16:18] Production.INFO: count ==459 [2025-02-05 01:16:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:16:05 - End Time 2025-02-05 01:16:05 [2025-02-05 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404272', 'tblTempUsageDetail_20' ) start [2025-02-05 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404272', 'tblTempUsageDetail_20' ) end [2025-02-05 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404272', 'tblTempVendorCDR_20' ) start [2025-02-05 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404272', 'tblTempVendorCDR_20' ) end [2025-02-05 01:16:18] Production.INFO: ProcessCDR(1,14404272,1,1,2) [2025-02-05 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404272', 'tblTempUsageDetail_20' ) start [2025-02-05 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404272', 'tblTempUsageDetail_20' ) end [2025-02-05 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:16:22] Production.INFO: ==22139== Releasing lock... [2025-02-05 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:16:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-05 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:17:06 [end_date_ymd] => 2025-02-05 01:17:06 [RateCDR] => 1 ) [2025-02-05 01:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:17:06' and `end` < '2025-02-05 01:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:17:20] Production.INFO: count ==452 [2025-02-05 01:17:20] Production.ERROR: pbx CDR StartTime 2025-02-04 22:17:06 - End Time 2025-02-05 01:17:06 [2025-02-05 01:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404277', 'tblTempUsageDetail_20' ) start [2025-02-05 01:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404277', 'tblTempUsageDetail_20' ) end [2025-02-05 01:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404277', 'tblTempVendorCDR_20' ) start [2025-02-05 01:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404277', 'tblTempVendorCDR_20' ) end [2025-02-05 01:17:20] Production.INFO: ProcessCDR(1,14404277,1,1,2) [2025-02-05 01:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404277', 'tblTempUsageDetail_20' ) start [2025-02-05 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404277', 'tblTempUsageDetail_20' ) end [2025-02-05 01:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:17:23] Production.INFO: ==22219== Releasing lock... [2025-02-05 01:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:17:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:18:05 [end_date_ymd] => 2025-02-05 01:18:05 [RateCDR] => 1 ) [2025-02-05 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:18:05' and `end` < '2025-02-05 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:18:19] Production.INFO: count ==443 [2025-02-05 01:18:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:18:05 - End Time 2025-02-05 01:18:05 [2025-02-05 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404282', 'tblTempUsageDetail_20' ) start [2025-02-05 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404282', 'tblTempUsageDetail_20' ) end [2025-02-05 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404282', 'tblTempVendorCDR_20' ) start [2025-02-05 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404282', 'tblTempVendorCDR_20' ) end [2025-02-05 01:18:19] Production.INFO: ProcessCDR(1,14404282,1,1,2) [2025-02-05 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404282', 'tblTempUsageDetail_20' ) start [2025-02-05 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404282', 'tblTempUsageDetail_20' ) end [2025-02-05 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:18:22] Production.INFO: ==22297== Releasing lock... [2025-02-05 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:18:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:19:05 [end_date_ymd] => 2025-02-05 01:19:05 [RateCDR] => 1 ) [2025-02-05 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:19:05' and `end` < '2025-02-05 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:19:18] Production.INFO: count ==436 [2025-02-05 01:19:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:19:05 - End Time 2025-02-05 01:19:05 [2025-02-05 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404287', 'tblTempUsageDetail_20' ) start [2025-02-05 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404287', 'tblTempUsageDetail_20' ) end [2025-02-05 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404287', 'tblTempVendorCDR_20' ) start [2025-02-05 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404287', 'tblTempVendorCDR_20' ) end [2025-02-05 01:19:18] Production.INFO: ProcessCDR(1,14404287,1,1,2) [2025-02-05 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404287', 'tblTempUsageDetail_20' ) start [2025-02-05 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404287', 'tblTempUsageDetail_20' ) end [2025-02-05 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:19:21] Production.INFO: ==22376== Releasing lock... [2025-02-05 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:19:21] Production.INFO: 32 MB #Memory Used# [2025-02-05 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:20:06 [end_date_ymd] => 2025-02-05 01:20:06 [RateCDR] => 1 ) [2025-02-05 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:20:06' and `end` < '2025-02-05 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:20:19] Production.INFO: count ==440 [2025-02-05 01:20:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:20:06 - End Time 2025-02-05 01:20:06 [2025-02-05 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404292', 'tblTempUsageDetail_20' ) start [2025-02-05 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404292', 'tblTempUsageDetail_20' ) end [2025-02-05 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404292', 'tblTempVendorCDR_20' ) start [2025-02-05 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404292', 'tblTempVendorCDR_20' ) end [2025-02-05 01:20:19] Production.INFO: ProcessCDR(1,14404292,1,1,2) [2025-02-05 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404292', 'tblTempUsageDetail_20' ) start [2025-02-05 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404292', 'tblTempUsageDetail_20' ) end [2025-02-05 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:20:23] Production.INFO: ==22459== Releasing lock... [2025-02-05 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:20:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:21:05 [end_date_ymd] => 2025-02-05 01:21:05 [RateCDR] => 1 ) [2025-02-05 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:21:05' and `end` < '2025-02-05 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:21:18] Production.INFO: count ==444 [2025-02-05 01:21:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:21:05 - End Time 2025-02-05 01:21:05 [2025-02-05 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404298', 'tblTempUsageDetail_20' ) start [2025-02-05 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404298', 'tblTempUsageDetail_20' ) end [2025-02-05 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404298', 'tblTempVendorCDR_20' ) start [2025-02-05 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404298', 'tblTempVendorCDR_20' ) end [2025-02-05 01:21:18] Production.INFO: ProcessCDR(1,14404298,1,1,2) [2025-02-05 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404298', 'tblTempUsageDetail_20' ) start [2025-02-05 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404298', 'tblTempUsageDetail_20' ) end [2025-02-05 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:21:22] Production.INFO: ==22539== Releasing lock... [2025-02-05 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:21:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 01:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:22:04 [end_date_ymd] => 2025-02-05 01:22:04 [RateCDR] => 1 ) [2025-02-05 01: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-02-04 22:22:04' and `end` < '2025-02-05 01: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-02-05 01:22:16] Production.INFO: count ==448 [2025-02-05 01:22:17] Production.ERROR: pbx CDR StartTime 2025-02-04 22:22:04 - End Time 2025-02-05 01:22:04 [2025-02-05 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404299', 'tblTempUsageDetail_20' ) start [2025-02-05 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404299', 'tblTempUsageDetail_20' ) end [2025-02-05 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404299', 'tblTempVendorCDR_20' ) start [2025-02-05 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404299', 'tblTempVendorCDR_20' ) end [2025-02-05 01:22:17] Production.INFO: ProcessCDR(1,14404299,1,1,2) [2025-02-05 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404299', 'tblTempUsageDetail_20' ) start [2025-02-05 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404299', 'tblTempUsageDetail_20' ) end [2025-02-05 01:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:22:20] Production.INFO: ==22621== Releasing lock... [2025-02-05 01:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:22:20] Production.INFO: 32 MB #Memory Used# [2025-02-05 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:23:06 [end_date_ymd] => 2025-02-05 01:23:06 [RateCDR] => 1 ) [2025-02-05 01:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:23:06' and `end` < '2025-02-05 01:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:23:19] Production.INFO: count ==448 [2025-02-05 01:23:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:23:06 - End Time 2025-02-05 01:23:06 [2025-02-05 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404308', 'tblTempUsageDetail_20' ) start [2025-02-05 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404308', 'tblTempUsageDetail_20' ) end [2025-02-05 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404308', 'tblTempVendorCDR_20' ) start [2025-02-05 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404308', 'tblTempVendorCDR_20' ) end [2025-02-05 01:23:19] Production.INFO: ProcessCDR(1,14404308,1,1,2) [2025-02-05 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404308', 'tblTempUsageDetail_20' ) start [2025-02-05 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404308', 'tblTempUsageDetail_20' ) end [2025-02-05 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:23:22] Production.INFO: ==22700== Releasing lock... [2025-02-05 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:23:22] Production.INFO: 32 MB #Memory Used# [2025-02-05 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:24:06 [end_date_ymd] => 2025-02-05 01:24:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:24:06' and `end` < '2025-02-05 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-02-05 01:24:20] Production.INFO: count ==449 [2025-02-05 01:24:20] Production.ERROR: pbx CDR StartTime 2025-02-04 22:24:06 - End Time 2025-02-05 01:24:06 [2025-02-05 01:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404313', 'tblTempUsageDetail_20' ) start [2025-02-05 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404313', 'tblTempUsageDetail_20' ) end [2025-02-05 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404313', 'tblTempVendorCDR_20' ) start [2025-02-05 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404313', 'tblTempVendorCDR_20' ) end [2025-02-05 01:24:20] Production.INFO: ProcessCDR(1,14404313,1,1,2) [2025-02-05 01:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404313', 'tblTempUsageDetail_20' ) start [2025-02-05 01:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404313', 'tblTempUsageDetail_20' ) end [2025-02-05 01:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:24:24] Production.INFO: ==22781== Releasing lock... [2025-02-05 01:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:24:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-05 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:25:04 [end_date_ymd] => 2025-02-05 01:25:04 [RateCDR] => 1 ) [2025-02-05 01:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:25:04' and `end` < '2025-02-05 01:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:25:17] Production.INFO: count ==446 [2025-02-05 01:25:17] Production.ERROR: pbx CDR StartTime 2025-02-04 22:25:04 - End Time 2025-02-05 01:25:04 [2025-02-05 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404318', 'tblTempUsageDetail_20' ) start [2025-02-05 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404318', 'tblTempUsageDetail_20' ) end [2025-02-05 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404318', 'tblTempVendorCDR_20' ) start [2025-02-05 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404318', 'tblTempVendorCDR_20' ) end [2025-02-05 01:25:17] Production.INFO: ProcessCDR(1,14404318,1,1,2) [2025-02-05 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404318', 'tblTempUsageDetail_20' ) start [2025-02-05 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404318', 'tblTempUsageDetail_20' ) end [2025-02-05 01:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:25:20] Production.INFO: ==22862== Releasing lock... [2025-02-05 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:25:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:26:05 [end_date_ymd] => 2025-02-05 01:26:05 [RateCDR] => 1 ) [2025-02-05 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:26:05' and `end` < '2025-02-05 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:26:18] Production.INFO: count ==438 [2025-02-05 01:26:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:26:05 - End Time 2025-02-05 01:26:05 [2025-02-05 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404322', 'tblTempUsageDetail_20' ) start [2025-02-05 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404322', 'tblTempUsageDetail_20' ) end [2025-02-05 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404322', 'tblTempVendorCDR_20' ) start [2025-02-05 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404322', 'tblTempVendorCDR_20' ) end [2025-02-05 01:26:18] Production.INFO: ProcessCDR(1,14404322,1,1,2) [2025-02-05 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404322', 'tblTempUsageDetail_20' ) start [2025-02-05 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404322', 'tblTempUsageDetail_20' ) end [2025-02-05 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:26:21] Production.INFO: ==22948== Releasing lock... [2025-02-05 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:26:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:27:05 [end_date_ymd] => 2025-02-05 01:27:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:27:05' and `end` < '2025-02-05 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-02-05 01:27:20] Production.INFO: count ==438 [2025-02-05 01:27:20] Production.ERROR: pbx CDR StartTime 2025-02-04 22:27:05 - End Time 2025-02-05 01:27:05 [2025-02-05 01:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404328', 'tblTempUsageDetail_20' ) start [2025-02-05 01:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404328', 'tblTempUsageDetail_20' ) end [2025-02-05 01:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404328', 'tblTempVendorCDR_20' ) start [2025-02-05 01:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404328', 'tblTempVendorCDR_20' ) end [2025-02-05 01:27:20] Production.INFO: ProcessCDR(1,14404328,1,1,2) [2025-02-05 01:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404328', 'tblTempUsageDetail_20' ) start [2025-02-05 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404328', 'tblTempUsageDetail_20' ) end [2025-02-05 01:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:27:23] Production.INFO: ==23035== Releasing lock... [2025-02-05 01:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:27:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:28:06 [end_date_ymd] => 2025-02-05 01:28:06 [RateCDR] => 1 ) [2025-02-05 01:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:28:06' and `end` < '2025-02-05 01:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:28:19] Production.INFO: count ==433 [2025-02-05 01:28:20] Production.ERROR: pbx CDR StartTime 2025-02-04 22:28:06 - End Time 2025-02-05 01:28:06 [2025-02-05 01:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404333', 'tblTempUsageDetail_20' ) start [2025-02-05 01:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404333', 'tblTempUsageDetail_20' ) end [2025-02-05 01:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404333', 'tblTempVendorCDR_20' ) start [2025-02-05 01:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404333', 'tblTempVendorCDR_20' ) end [2025-02-05 01:28:20] Production.INFO: ProcessCDR(1,14404333,1,1,2) [2025-02-05 01:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404333', 'tblTempUsageDetail_20' ) start [2025-02-05 01:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404333', 'tblTempUsageDetail_20' ) end [2025-02-05 01:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:28:24] Production.INFO: ==23116== Releasing lock... [2025-02-05 01:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:28:24] Production.INFO: 32 MB #Memory Used# [2025-02-05 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:29:05 [end_date_ymd] => 2025-02-05 01:29:05 [RateCDR] => 1 ) [2025-02-05 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:29:05' and `end` < '2025-02-05 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:29:18] Production.INFO: count ==436 [2025-02-05 01:29:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:29:05 - End Time 2025-02-05 01:29:05 [2025-02-05 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404338', 'tblTempUsageDetail_20' ) start [2025-02-05 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404338', 'tblTempUsageDetail_20' ) end [2025-02-05 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404338', 'tblTempVendorCDR_20' ) start [2025-02-05 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404338', 'tblTempVendorCDR_20' ) end [2025-02-05 01:29:18] Production.INFO: ProcessCDR(1,14404338,1,1,2) [2025-02-05 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404338', 'tblTempUsageDetail_20' ) start [2025-02-05 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404338', 'tblTempUsageDetail_20' ) end [2025-02-05 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:29:21] Production.INFO: ==23202== Releasing lock... [2025-02-05 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:30:06 [end_date_ymd] => 2025-02-05 01:30:06 [RateCDR] => 1 ) [2025-02-05 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:30:06' and `end` < '2025-02-05 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:30:19] Production.INFO: count ==434 [2025-02-05 01:30:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:30:06 - End Time 2025-02-05 01:30:06 [2025-02-05 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404344', 'tblTempUsageDetail_20' ) start [2025-02-05 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404344', 'tblTempUsageDetail_20' ) end [2025-02-05 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404344', 'tblTempVendorCDR_20' ) start [2025-02-05 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404344', 'tblTempVendorCDR_20' ) end [2025-02-05 01:30:19] Production.INFO: ProcessCDR(1,14404344,1,1,2) [2025-02-05 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404344', 'tblTempUsageDetail_20' ) start [2025-02-05 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404344', 'tblTempUsageDetail_20' ) end [2025-02-05 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:30:22] Production.INFO: ==23285== Releasing lock... [2025-02-05 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:30:22] Production.INFO: 32 MB #Memory Used# [2025-02-05 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:31:05 [end_date_ymd] => 2025-02-05 01:31:05 [RateCDR] => 1 ) [2025-02-05 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:31:05' and `end` < '2025-02-05 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:31:19] Production.INFO: count ==432 [2025-02-05 01:31:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:31:05 - End Time 2025-02-05 01:31:05 [2025-02-05 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404349', 'tblTempUsageDetail_20' ) start [2025-02-05 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404349', 'tblTempUsageDetail_20' ) end [2025-02-05 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404349', 'tblTempVendorCDR_20' ) start [2025-02-05 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404349', 'tblTempVendorCDR_20' ) end [2025-02-05 01:31:19] Production.INFO: ProcessCDR(1,14404349,1,1,2) [2025-02-05 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404349', 'tblTempUsageDetail_20' ) start [2025-02-05 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404349', 'tblTempUsageDetail_20' ) end [2025-02-05 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:31:22] Production.INFO: ==23411== Releasing lock... [2025-02-05 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:31:22] Production.INFO: 32 MB #Memory Used# [2025-02-05 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:32:05 [end_date_ymd] => 2025-02-05 01:32:05 [RateCDR] => 1 ) [2025-02-05 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:32:05' and `end` < '2025-02-05 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:32:18] Production.INFO: count ==418 [2025-02-05 01:32:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:32:05 - End Time 2025-02-05 01:32:05 [2025-02-05 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404354', 'tblTempUsageDetail_20' ) start [2025-02-05 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404354', 'tblTempUsageDetail_20' ) end [2025-02-05 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404354', 'tblTempVendorCDR_20' ) start [2025-02-05 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404354', 'tblTempVendorCDR_20' ) end [2025-02-05 01:32:18] Production.INFO: ProcessCDR(1,14404354,1,1,2) [2025-02-05 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404354', 'tblTempUsageDetail_20' ) start [2025-02-05 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404354', 'tblTempUsageDetail_20' ) end [2025-02-05 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:32:21] Production.INFO: ==23494== Releasing lock... [2025-02-05 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:32:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:33:04 [end_date_ymd] => 2025-02-05 01:33:04 [RateCDR] => 1 ) [2025-02-05 01:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:33:04' and `end` < '2025-02-05 01:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:33:18] Production.INFO: count ==411 [2025-02-05 01:33:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:33:04 - End Time 2025-02-05 01:33:04 [2025-02-05 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404359', 'tblTempUsageDetail_20' ) start [2025-02-05 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404359', 'tblTempUsageDetail_20' ) end [2025-02-05 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404359', 'tblTempVendorCDR_20' ) start [2025-02-05 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404359', 'tblTempVendorCDR_20' ) end [2025-02-05 01:33:18] Production.INFO: ProcessCDR(1,14404359,1,1,2) [2025-02-05 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404359', 'tblTempUsageDetail_20' ) start [2025-02-05 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404359', 'tblTempUsageDetail_20' ) end [2025-02-05 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:33:21] Production.INFO: ==23581== Releasing lock... [2025-02-05 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:34:05 [end_date_ymd] => 2025-02-05 01:34:05 [RateCDR] => 1 ) [2025-02-05 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:34:05' and `end` < '2025-02-05 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:34:19] Production.INFO: count ==403 [2025-02-05 01:34:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:34:05 - End Time 2025-02-05 01:34:05 [2025-02-05 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404364', 'tblTempUsageDetail_20' ) start [2025-02-05 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404364', 'tblTempUsageDetail_20' ) end [2025-02-05 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404364', 'tblTempVendorCDR_20' ) start [2025-02-05 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404364', 'tblTempVendorCDR_20' ) end [2025-02-05 01:34:19] Production.INFO: ProcessCDR(1,14404364,1,1,2) [2025-02-05 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404364', 'tblTempUsageDetail_20' ) start [2025-02-05 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404364', 'tblTempUsageDetail_20' ) end [2025-02-05 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:34:22] Production.INFO: ==23669== Releasing lock... [2025-02-05 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:35:05 [end_date_ymd] => 2025-02-05 01:35:05 [RateCDR] => 1 ) [2025-02-05 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:35:05' and `end` < '2025-02-05 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:35:17] Production.INFO: count ==395 [2025-02-05 01:35:17] Production.ERROR: pbx CDR StartTime 2025-02-04 22:35:05 - End Time 2025-02-05 01:35:05 [2025-02-05 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404369', 'tblTempUsageDetail_20' ) start [2025-02-05 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404369', 'tblTempUsageDetail_20' ) end [2025-02-05 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404369', 'tblTempVendorCDR_20' ) start [2025-02-05 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404369', 'tblTempVendorCDR_20' ) end [2025-02-05 01:35:17] Production.INFO: ProcessCDR(1,14404369,1,1,2) [2025-02-05 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404369', 'tblTempUsageDetail_20' ) start [2025-02-05 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404369', 'tblTempUsageDetail_20' ) end [2025-02-05 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:35:21] Production.INFO: ==23754== Releasing lock... [2025-02-05 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:36:06 [end_date_ymd] => 2025-02-05 01:36:06 [RateCDR] => 1 ) [2025-02-05 01:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:36:06' and `end` < '2025-02-05 01:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:36:19] Production.INFO: count ==386 [2025-02-05 01:36:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:36:06 - End Time 2025-02-05 01:36:06 [2025-02-05 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404374', 'tblTempUsageDetail_20' ) start [2025-02-05 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404374', 'tblTempUsageDetail_20' ) end [2025-02-05 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404374', 'tblTempVendorCDR_20' ) start [2025-02-05 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404374', 'tblTempVendorCDR_20' ) end [2025-02-05 01:36:19] Production.INFO: ProcessCDR(1,14404374,1,1,2) [2025-02-05 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404374', 'tblTempUsageDetail_20' ) start [2025-02-05 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404374', 'tblTempUsageDetail_20' ) end [2025-02-05 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:36:22] Production.INFO: ==23835== Releasing lock... [2025-02-05 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:36:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:37:06 [end_date_ymd] => 2025-02-05 01:37:06 [RateCDR] => 1 ) [2025-02-05 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:37:06' and `end` < '2025-02-05 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:37:19] Production.INFO: count ==377 [2025-02-05 01:37:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:37:06 - End Time 2025-02-05 01:37:06 [2025-02-05 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404379', 'tblTempUsageDetail_20' ) start [2025-02-05 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404379', 'tblTempUsageDetail_20' ) end [2025-02-05 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404379', 'tblTempVendorCDR_20' ) start [2025-02-05 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404379', 'tblTempVendorCDR_20' ) end [2025-02-05 01:37:19] Production.INFO: ProcessCDR(1,14404379,1,1,2) [2025-02-05 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404379', 'tblTempUsageDetail_20' ) start [2025-02-05 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404379', 'tblTempUsageDetail_20' ) end [2025-02-05 01:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:37:23] Production.INFO: ==23912== Releasing lock... [2025-02-05 01:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:37:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:38:06 [end_date_ymd] => 2025-02-05 01:38:06 [RateCDR] => 1 ) [2025-02-05 01:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:38:06' and `end` < '2025-02-05 01:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:38:19] Production.INFO: count ==371 [2025-02-05 01:38:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:38:06 - End Time 2025-02-05 01:38:06 [2025-02-05 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404384', 'tblTempUsageDetail_20' ) start [2025-02-05 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404384', 'tblTempUsageDetail_20' ) end [2025-02-05 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404384', 'tblTempVendorCDR_20' ) start [2025-02-05 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404384', 'tblTempVendorCDR_20' ) end [2025-02-05 01:38:19] Production.INFO: ProcessCDR(1,14404384,1,1,2) [2025-02-05 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404384', 'tblTempUsageDetail_20' ) start [2025-02-05 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404384', 'tblTempUsageDetail_20' ) end [2025-02-05 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:38:22] Production.INFO: ==23990== Releasing lock... [2025-02-05 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:38:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:39:06 [end_date_ymd] => 2025-02-05 01:39:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:39:06' and `end` < '2025-02-05 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-02-05 01:39:18] Production.INFO: count ==360 [2025-02-05 01:39:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:39:06 - End Time 2025-02-05 01:39:06 [2025-02-05 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404389', 'tblTempUsageDetail_20' ) start [2025-02-05 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404389', 'tblTempUsageDetail_20' ) end [2025-02-05 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404389', 'tblTempVendorCDR_20' ) start [2025-02-05 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404389', 'tblTempVendorCDR_20' ) end [2025-02-05 01:39:19] Production.INFO: ProcessCDR(1,14404389,1,1,2) [2025-02-05 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404389', 'tblTempUsageDetail_20' ) start [2025-02-05 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404389', 'tblTempUsageDetail_20' ) end [2025-02-05 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:39:22] Production.INFO: ==24069== Releasing lock... [2025-02-05 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:39:22] Production.INFO: 31 MB #Memory Used# [2025-02-05 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:40:06 [end_date_ymd] => 2025-02-05 01:40:06 [RateCDR] => 1 ) [2025-02-05 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:40:06' and `end` < '2025-02-05 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:40:19] Production.INFO: count ==360 [2025-02-05 01:40:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:40:06 - End Time 2025-02-05 01:40:06 [2025-02-05 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404395', 'tblTempUsageDetail_20' ) start [2025-02-05 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404395', 'tblTempUsageDetail_20' ) end [2025-02-05 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404395', 'tblTempVendorCDR_20' ) start [2025-02-05 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404395', 'tblTempVendorCDR_20' ) end [2025-02-05 01:40:19] Production.INFO: ProcessCDR(1,14404395,1,1,2) [2025-02-05 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404395', 'tblTempUsageDetail_20' ) start [2025-02-05 01:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404395', 'tblTempUsageDetail_20' ) end [2025-02-05 01:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:40:25] Production.INFO: ==24147== Releasing lock... [2025-02-05 01:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:40:25] Production.INFO: 31 MB #Memory Used# [2025-02-05 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:41:05 [end_date_ymd] => 2025-02-05 01:41:05 [RateCDR] => 1 ) [2025-02-05 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:41:05' and `end` < '2025-02-05 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:41:19] Production.INFO: count ==359 [2025-02-05 01:41:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:41:05 - End Time 2025-02-05 01:41:05 [2025-02-05 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404400', 'tblTempUsageDetail_20' ) start [2025-02-05 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404400', 'tblTempUsageDetail_20' ) end [2025-02-05 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404400', 'tblTempVendorCDR_20' ) start [2025-02-05 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404400', 'tblTempVendorCDR_20' ) end [2025-02-05 01:41:19] Production.INFO: ProcessCDR(1,14404400,1,1,2) [2025-02-05 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404400', 'tblTempUsageDetail_20' ) start [2025-02-05 01:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404400', 'tblTempUsageDetail_20' ) end [2025-02-05 01:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:41:24] Production.INFO: ==24228== Releasing lock... [2025-02-05 01:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:41:24] Production.INFO: 31 MB #Memory Used# [2025-02-05 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:42:06 [end_date_ymd] => 2025-02-05 01:42:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:42:06' and `end` < '2025-02-05 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-02-05 01:42:19] Production.INFO: count ==350 [2025-02-05 01:42:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:42:06 - End Time 2025-02-05 01:42:06 [2025-02-05 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404405', 'tblTempUsageDetail_20' ) start [2025-02-05 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404405', 'tblTempUsageDetail_20' ) end [2025-02-05 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404405', 'tblTempVendorCDR_20' ) start [2025-02-05 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404405', 'tblTempVendorCDR_20' ) end [2025-02-05 01:42:19] Production.INFO: ProcessCDR(1,14404405,1,1,2) [2025-02-05 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404405', 'tblTempUsageDetail_20' ) start [2025-02-05 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404405', 'tblTempUsageDetail_20' ) end [2025-02-05 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:42:22] Production.INFO: ==24305== Releasing lock... [2025-02-05 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:42:22] Production.INFO: 31 MB #Memory Used# [2025-02-05 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:43:06 [end_date_ymd] => 2025-02-05 01:43:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:43:06' and `end` < '2025-02-05 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-02-05 01:43:18] Production.INFO: count ==342 [2025-02-05 01:43:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:43:06 - End Time 2025-02-05 01:43:06 [2025-02-05 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404410', 'tblTempUsageDetail_20' ) start [2025-02-05 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404410', 'tblTempUsageDetail_20' ) end [2025-02-05 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404410', 'tblTempVendorCDR_20' ) start [2025-02-05 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404410', 'tblTempVendorCDR_20' ) end [2025-02-05 01:43:18] Production.INFO: ProcessCDR(1,14404410,1,1,2) [2025-02-05 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404410', 'tblTempUsageDetail_20' ) start [2025-02-05 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404410', 'tblTempUsageDetail_20' ) end [2025-02-05 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:43:22] Production.INFO: ==24380== Releasing lock... [2025-02-05 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-05 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:44:06 [end_date_ymd] => 2025-02-05 01:44:06 [RateCDR] => 1 ) [2025-02-05 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:44:06' and `end` < '2025-02-05 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:44:20] Production.INFO: count ==335 [2025-02-05 01:44:20] Production.ERROR: pbx CDR StartTime 2025-02-04 22:44:06 - End Time 2025-02-05 01:44:06 [2025-02-05 01:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404415', 'tblTempUsageDetail_20' ) start [2025-02-05 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404415', 'tblTempUsageDetail_20' ) end [2025-02-05 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404415', 'tblTempVendorCDR_20' ) start [2025-02-05 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404415', 'tblTempVendorCDR_20' ) end [2025-02-05 01:44:20] Production.INFO: ProcessCDR(1,14404415,1,1,2) [2025-02-05 01:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404415', 'tblTempUsageDetail_20' ) start [2025-02-05 01:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404415', 'tblTempUsageDetail_20' ) end [2025-02-05 01:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:44:24] Production.INFO: ==24461== Releasing lock... [2025-02-05 01:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:44:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-05 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:45:05 [end_date_ymd] => 2025-02-05 01:45:05 [RateCDR] => 1 ) [2025-02-05 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:45:05' and `end` < '2025-02-05 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:45:17] Production.INFO: count ==331 [2025-02-05 01:45:17] Production.ERROR: pbx CDR StartTime 2025-02-04 22:45:05 - End Time 2025-02-05 01:45:05 [2025-02-05 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404420', 'tblTempUsageDetail_20' ) start [2025-02-05 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404420', 'tblTempUsageDetail_20' ) end [2025-02-05 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404420', 'tblTempVendorCDR_20' ) start [2025-02-05 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404420', 'tblTempVendorCDR_20' ) end [2025-02-05 01:45:18] Production.INFO: ProcessCDR(1,14404420,1,1,2) [2025-02-05 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404420', 'tblTempUsageDetail_20' ) start [2025-02-05 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404420', 'tblTempUsageDetail_20' ) end [2025-02-05 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:45:21] Production.INFO: ==24538== Releasing lock... [2025-02-05 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-05 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:46:06 [end_date_ymd] => 2025-02-05 01:46:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:46:06' and `end` < '2025-02-05 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-02-05 01:46:20] Production.INFO: count ==331 [2025-02-05 01:46:20] Production.ERROR: pbx CDR StartTime 2025-02-04 22:46:06 - End Time 2025-02-05 01:46:06 [2025-02-05 01:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404425', 'tblTempUsageDetail_20' ) start [2025-02-05 01:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404425', 'tblTempUsageDetail_20' ) end [2025-02-05 01:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404425', 'tblTempVendorCDR_20' ) start [2025-02-05 01:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404425', 'tblTempVendorCDR_20' ) end [2025-02-05 01:46:20] Production.INFO: ProcessCDR(1,14404425,1,1,2) [2025-02-05 01:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404425', 'tblTempUsageDetail_20' ) start [2025-02-05 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404425', 'tblTempUsageDetail_20' ) end [2025-02-05 01:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:46:24] Production.INFO: ==24622== Releasing lock... [2025-02-05 01:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:46:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-05 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:47:05 [end_date_ymd] => 2025-02-05 01:47:05 [RateCDR] => 1 ) [2025-02-05 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:47:05' and `end` < '2025-02-05 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:47:19] Production.INFO: count ==328 [2025-02-05 01:47:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:47:05 - End Time 2025-02-05 01:47:05 [2025-02-05 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404430', 'tblTempUsageDetail_20' ) start [2025-02-05 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404430', 'tblTempUsageDetail_20' ) end [2025-02-05 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404430', 'tblTempVendorCDR_20' ) start [2025-02-05 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404430', 'tblTempVendorCDR_20' ) end [2025-02-05 01:47:19] Production.INFO: ProcessCDR(1,14404430,1,1,2) [2025-02-05 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404430', 'tblTempUsageDetail_20' ) start [2025-02-05 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404430', 'tblTempUsageDetail_20' ) end [2025-02-05 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:47:22] Production.INFO: ==24740== Releasing lock... [2025-02-05 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:47:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-05 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:48:05 [end_date_ymd] => 2025-02-05 01:48:05 [RateCDR] => 1 ) [2025-02-05 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:48:05' and `end` < '2025-02-05 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:48:18] Production.INFO: count ==327 [2025-02-05 01:48:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:48:05 - End Time 2025-02-05 01:48:05 [2025-02-05 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404435', 'tblTempUsageDetail_20' ) start [2025-02-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404435', 'tblTempUsageDetail_20' ) end [2025-02-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404435', 'tblTempVendorCDR_20' ) start [2025-02-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404435', 'tblTempVendorCDR_20' ) end [2025-02-05 01:48:18] Production.INFO: ProcessCDR(1,14404435,1,1,2) [2025-02-05 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404435', 'tblTempUsageDetail_20' ) start [2025-02-05 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404435', 'tblTempUsageDetail_20' ) end [2025-02-05 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:48:21] Production.INFO: ==24825== Releasing lock... [2025-02-05 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:48:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-05 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:49:05 [end_date_ymd] => 2025-02-05 01:49:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:49:05' and `end` < '2025-02-05 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-02-05 01:49:19] Production.INFO: count ==327 [2025-02-05 01:49:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:49:05 - End Time 2025-02-05 01:49:05 [2025-02-05 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404440', 'tblTempUsageDetail_20' ) start [2025-02-05 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404440', 'tblTempUsageDetail_20' ) end [2025-02-05 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404440', 'tblTempVendorCDR_20' ) start [2025-02-05 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404440', 'tblTempVendorCDR_20' ) end [2025-02-05 01:49:19] Production.INFO: ProcessCDR(1,14404440,1,1,2) [2025-02-05 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404440', 'tblTempUsageDetail_20' ) start [2025-02-05 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404440', 'tblTempUsageDetail_20' ) end [2025-02-05 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:49:22] Production.INFO: ==24899== Releasing lock... [2025-02-05 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:49:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-05 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:50:06 [end_date_ymd] => 2025-02-05 01:50:06 [RateCDR] => 1 ) [2025-02-05 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:50:06' and `end` < '2025-02-05 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:50:20] Production.INFO: count ==324 [2025-02-05 01:50:20] Production.ERROR: pbx CDR StartTime 2025-02-04 22:50:06 - End Time 2025-02-05 01:50:06 [2025-02-05 01:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404446', 'tblTempUsageDetail_20' ) start [2025-02-05 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404446', 'tblTempUsageDetail_20' ) end [2025-02-05 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404446', 'tblTempVendorCDR_20' ) start [2025-02-05 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404446', 'tblTempVendorCDR_20' ) end [2025-02-05 01:50:20] Production.INFO: ProcessCDR(1,14404446,1,1,2) [2025-02-05 01:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404446', 'tblTempUsageDetail_20' ) start [2025-02-05 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404446', 'tblTempUsageDetail_20' ) end [2025-02-05 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:50:23] Production.INFO: ==24980== Releasing lock... [2025-02-05 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:50:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-05 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:51:05 [end_date_ymd] => 2025-02-05 01:51:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:51:05' and `end` < '2025-02-05 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-02-05 01:51:18] Production.INFO: count ==318 [2025-02-05 01:51:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:51:05 - End Time 2025-02-05 01:51:05 [2025-02-05 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404451', 'tblTempUsageDetail_20' ) start [2025-02-05 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404451', 'tblTempUsageDetail_20' ) end [2025-02-05 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404451', 'tblTempVendorCDR_20' ) start [2025-02-05 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404451', 'tblTempVendorCDR_20' ) end [2025-02-05 01:51:18] Production.INFO: ProcessCDR(1,14404451,1,1,2) [2025-02-05 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404451', 'tblTempUsageDetail_20' ) start [2025-02-05 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404451', 'tblTempUsageDetail_20' ) end [2025-02-05 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:51:22] Production.INFO: ==25058== Releasing lock... [2025-02-05 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:51:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-05 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:52:05 [end_date_ymd] => 2025-02-05 01:52:05 [RateCDR] => 1 ) [2025-02-05 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:52:05' and `end` < '2025-02-05 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:52:19] Production.INFO: count ==318 [2025-02-05 01:52:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:52:05 - End Time 2025-02-05 01:52:05 [2025-02-05 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404456', 'tblTempUsageDetail_20' ) start [2025-02-05 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404456', 'tblTempUsageDetail_20' ) end [2025-02-05 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404456', 'tblTempVendorCDR_20' ) start [2025-02-05 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404456', 'tblTempVendorCDR_20' ) end [2025-02-05 01:52:19] Production.INFO: ProcessCDR(1,14404456,1,1,2) [2025-02-05 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404456', 'tblTempUsageDetail_20' ) start [2025-02-05 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404456', 'tblTempUsageDetail_20' ) end [2025-02-05 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:52:22] Production.INFO: ==25136== Releasing lock... [2025-02-05 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-05 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:53:05 [end_date_ymd] => 2025-02-05 01:53:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:53:05' and `end` < '2025-02-05 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-02-05 01:53:18] Production.INFO: count ==318 [2025-02-05 01:53:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:53:05 - End Time 2025-02-05 01:53:05 [2025-02-05 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404461', 'tblTempUsageDetail_20' ) start [2025-02-05 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404461', 'tblTempUsageDetail_20' ) end [2025-02-05 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404461', 'tblTempVendorCDR_20' ) start [2025-02-05 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404461', 'tblTempVendorCDR_20' ) end [2025-02-05 01:53:18] Production.INFO: ProcessCDR(1,14404461,1,1,2) [2025-02-05 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404461', 'tblTempUsageDetail_20' ) start [2025-02-05 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404461', 'tblTempUsageDetail_20' ) end [2025-02-05 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:53:22] Production.INFO: ==25213== Releasing lock... [2025-02-05 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-05 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:54:06 [end_date_ymd] => 2025-02-05 01:54:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:54:06' and `end` < '2025-02-05 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-02-05 01:54:19] Production.INFO: count ==315 [2025-02-05 01:54:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:54:06 - End Time 2025-02-05 01:54:06 [2025-02-05 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404466', 'tblTempUsageDetail_20' ) start [2025-02-05 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404466', 'tblTempUsageDetail_20' ) end [2025-02-05 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404466', 'tblTempVendorCDR_20' ) start [2025-02-05 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404466', 'tblTempVendorCDR_20' ) end [2025-02-05 01:54:19] Production.INFO: ProcessCDR(1,14404466,1,1,2) [2025-02-05 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404466', 'tblTempUsageDetail_20' ) start [2025-02-05 01:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404466', 'tblTempUsageDetail_20' ) end [2025-02-05 01:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:54:24] Production.INFO: ==25286== Releasing lock... [2025-02-05 01:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:54:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:55:05 [end_date_ymd] => 2025-02-05 01:55:05 [RateCDR] => 1 ) [2025-02-05 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:55:05' and `end` < '2025-02-05 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:55:18] Production.INFO: count ==309 [2025-02-05 01:55:18] Production.ERROR: pbx CDR StartTime 2025-02-04 22:55:05 - End Time 2025-02-05 01:55:05 [2025-02-05 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404471', 'tblTempUsageDetail_20' ) start [2025-02-05 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404471', 'tblTempUsageDetail_20' ) end [2025-02-05 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404471', 'tblTempVendorCDR_20' ) start [2025-02-05 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404471', 'tblTempVendorCDR_20' ) end [2025-02-05 01:55:18] Production.INFO: ProcessCDR(1,14404471,1,1,2) [2025-02-05 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404471', 'tblTempUsageDetail_20' ) start [2025-02-05 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404471', 'tblTempUsageDetail_20' ) end [2025-02-05 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:55:21] Production.INFO: ==25365== Releasing lock... [2025-02-05 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:55:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:56:06 [end_date_ymd] => 2025-02-05 01:56:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:56:06' and `end` < '2025-02-05 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-02-05 01:56:19] Production.INFO: count ==301 [2025-02-05 01:56:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:56:06 - End Time 2025-02-05 01:56:06 [2025-02-05 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404476', 'tblTempUsageDetail_20' ) start [2025-02-05 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404476', 'tblTempUsageDetail_20' ) end [2025-02-05 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404476', 'tblTempVendorCDR_20' ) start [2025-02-05 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404476', 'tblTempVendorCDR_20' ) end [2025-02-05 01:56:19] Production.INFO: ProcessCDR(1,14404476,1,1,2) [2025-02-05 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404476', 'tblTempUsageDetail_20' ) start [2025-02-05 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404476', 'tblTempUsageDetail_20' ) end [2025-02-05 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:56:23] Production.INFO: ==25445== Releasing lock... [2025-02-05 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:56:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:57:06 [end_date_ymd] => 2025-02-05 01:57:06 [RateCDR] => 1 ) [2025-02-05 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 22:57:06' and `end` < '2025-02-05 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 01:57:19] Production.INFO: count ==299 [2025-02-05 01:57:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:57:06 - End Time 2025-02-05 01:57:06 [2025-02-05 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404481', 'tblTempUsageDetail_20' ) start [2025-02-05 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404481', 'tblTempUsageDetail_20' ) end [2025-02-05 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404481', 'tblTempVendorCDR_20' ) start [2025-02-05 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404481', 'tblTempVendorCDR_20' ) end [2025-02-05 01:57:19] Production.INFO: ProcessCDR(1,14404481,1,1,2) [2025-02-05 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404481', 'tblTempUsageDetail_20' ) start [2025-02-05 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404481', 'tblTempUsageDetail_20' ) end [2025-02-05 01:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:57:23] Production.INFO: ==25519== Releasing lock... [2025-02-05 01:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:57:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:58:06 [end_date_ymd] => 2025-02-05 01:58:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:58:06' and `end` < '2025-02-05 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-02-05 01:58:19] Production.INFO: count ==299 [2025-02-05 01:58:19] Production.ERROR: pbx CDR StartTime 2025-02-04 22:58:06 - End Time 2025-02-05 01:58:06 [2025-02-05 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404486', 'tblTempUsageDetail_20' ) start [2025-02-05 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404486', 'tblTempUsageDetail_20' ) end [2025-02-05 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404486', 'tblTempVendorCDR_20' ) start [2025-02-05 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404486', 'tblTempVendorCDR_20' ) end [2025-02-05 01:58:19] Production.INFO: ProcessCDR(1,14404486,1,1,2) [2025-02-05 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404486', 'tblTempUsageDetail_20' ) start [2025-02-05 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404486', 'tblTempUsageDetail_20' ) end [2025-02-05 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:58:23] Production.INFO: ==25593== Releasing lock... [2025-02-05 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:58:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 22:59:06 [end_date_ymd] => 2025-02-05 01:59:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 22:59:06' and `end` < '2025-02-05 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-02-05 01:59:20] Production.INFO: count ==299 [2025-02-05 01:59:20] Production.ERROR: pbx CDR StartTime 2025-02-04 22:59:06 - End Time 2025-02-05 01:59:06 [2025-02-05 01:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404491', 'tblTempUsageDetail_20' ) start [2025-02-05 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404491', 'tblTempUsageDetail_20' ) end [2025-02-05 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404491', 'tblTempVendorCDR_20' ) start [2025-02-05 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404491', 'tblTempVendorCDR_20' ) end [2025-02-05 01:59:20] Production.INFO: ProcessCDR(1,14404491,1,1,2) [2025-02-05 01:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 01:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404491', 'tblTempUsageDetail_20' ) start [2025-02-05 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404491', 'tblTempUsageDetail_20' ) end [2025-02-05 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 01:59:23] Production.INFO: ==25670== Releasing lock... [2025-02-05 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 01:59:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:00:07 [end_date_ymd] => 2025-02-05 02:00:07 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:00:07' and `end` < '2025-02-05 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-02-05 02:00:19] Production.INFO: count ==311 [2025-02-05 02:00:20] Production.ERROR: pbx CDR StartTime 2025-02-04 23:00:07 - End Time 2025-02-05 02:00:07 [2025-02-05 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404496', 'tblTempUsageDetail_20' ) start [2025-02-05 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404496', 'tblTempUsageDetail_20' ) end [2025-02-05 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404496', 'tblTempVendorCDR_20' ) start [2025-02-05 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404496', 'tblTempVendorCDR_20' ) end [2025-02-05 02:00:20] Production.INFO: ProcessCDR(1,14404496,1,1,2) [2025-02-05 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404496', 'tblTempUsageDetail_20' ) start [2025-02-05 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404496', 'tblTempUsageDetail_20' ) end [2025-02-05 02:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:00:25] Production.INFO: ==25748== Releasing lock... [2025-02-05 02:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:00:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:01:06 [end_date_ymd] => 2025-02-05 02:01:06 [RateCDR] => 1 ) [2025-02-05 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:01:06' and `end` < '2025-02-05 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:01:19] Production.INFO: count ==315 [2025-02-05 02:01:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:01:06 - End Time 2025-02-05 02:01:06 [2025-02-05 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404502', 'tblTempUsageDetail_20' ) start [2025-02-05 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404502', 'tblTempUsageDetail_20' ) end [2025-02-05 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404502', 'tblTempVendorCDR_20' ) start [2025-02-05 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404502', 'tblTempVendorCDR_20' ) end [2025-02-05 02:01:19] Production.INFO: ProcessCDR(1,14404502,1,1,2) [2025-02-05 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404502', 'tblTempUsageDetail_20' ) start [2025-02-05 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404502', 'tblTempUsageDetail_20' ) end [2025-02-05 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:01:22] Production.INFO: ==25933== Releasing lock... [2025-02-05 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:01:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:02:06 [end_date_ymd] => 2025-02-05 02:02:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:02:06' and `end` < '2025-02-05 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-02-05 02:02:19] Production.INFO: count ==315 [2025-02-05 02:02:20] Production.ERROR: pbx CDR StartTime 2025-02-04 23:02:06 - End Time 2025-02-05 02:02:06 [2025-02-05 02:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404507', 'tblTempUsageDetail_20' ) start [2025-02-05 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404507', 'tblTempUsageDetail_20' ) end [2025-02-05 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404507', 'tblTempVendorCDR_20' ) start [2025-02-05 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404507', 'tblTempVendorCDR_20' ) end [2025-02-05 02:02:20] Production.INFO: ProcessCDR(1,14404507,1,1,2) [2025-02-05 02:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404507', 'tblTempUsageDetail_20' ) start [2025-02-05 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404507', 'tblTempUsageDetail_20' ) end [2025-02-05 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:02:23] Production.INFO: ==26045== Releasing lock... [2025-02-05 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:02:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:03:06 [end_date_ymd] => 2025-02-05 02:03:06 [RateCDR] => 1 ) [2025-02-05 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:03:06' and `end` < '2025-02-05 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:03:20] Production.INFO: count ==315 [2025-02-05 02:03:20] Production.ERROR: pbx CDR StartTime 2025-02-04 23:03:06 - End Time 2025-02-05 02:03:06 [2025-02-05 02:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404512', 'tblTempUsageDetail_20' ) start [2025-02-05 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404512', 'tblTempUsageDetail_20' ) end [2025-02-05 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404512', 'tblTempVendorCDR_20' ) start [2025-02-05 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404512', 'tblTempVendorCDR_20' ) end [2025-02-05 02:03:20] Production.INFO: ProcessCDR(1,14404512,1,1,2) [2025-02-05 02:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404512', 'tblTempUsageDetail_20' ) start [2025-02-05 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404512', 'tblTempUsageDetail_20' ) end [2025-02-05 02:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:03:23] Production.INFO: ==26119== Releasing lock... [2025-02-05 02:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:03:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:04:05 [end_date_ymd] => 2025-02-05 02:04:05 [RateCDR] => 1 ) [2025-02-05 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:04:05' and `end` < '2025-02-05 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:04:18] Production.INFO: count ==315 [2025-02-05 02:04:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:04:05 - End Time 2025-02-05 02:04:05 [2025-02-05 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404517', 'tblTempUsageDetail_20' ) start [2025-02-05 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404517', 'tblTempUsageDetail_20' ) end [2025-02-05 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404517', 'tblTempVendorCDR_20' ) start [2025-02-05 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404517', 'tblTempVendorCDR_20' ) end [2025-02-05 02:04:18] Production.INFO: ProcessCDR(1,14404517,1,1,2) [2025-02-05 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404517', 'tblTempUsageDetail_20' ) start [2025-02-05 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404517', 'tblTempUsageDetail_20' ) end [2025-02-05 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:04:22] Production.INFO: ==26196== Releasing lock... [2025-02-05 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:04:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:05:04 [end_date_ymd] => 2025-02-05 02:05:04 [RateCDR] => 1 ) [2025-02-05 02:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:05:04' and `end` < '2025-02-05 02:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:05:17] Production.INFO: count ==315 [2025-02-05 02:05:17] Production.ERROR: pbx CDR StartTime 2025-02-04 23:05:04 - End Time 2025-02-05 02:05:04 [2025-02-05 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404522', 'tblTempUsageDetail_20' ) start [2025-02-05 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404522', 'tblTempUsageDetail_20' ) end [2025-02-05 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404522', 'tblTempVendorCDR_20' ) start [2025-02-05 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404522', 'tblTempVendorCDR_20' ) end [2025-02-05 02:05:17] Production.INFO: ProcessCDR(1,14404522,1,1,2) [2025-02-05 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404522', 'tblTempUsageDetail_20' ) start [2025-02-05 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404522', 'tblTempUsageDetail_20' ) end [2025-02-05 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:05:21] Production.INFO: ==26274== Releasing lock... [2025-02-05 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:06:06 [end_date_ymd] => 2025-02-05 02:06:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:06:06' and `end` < '2025-02-05 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-02-05 02:06:19] Production.INFO: count ==315 [2025-02-05 02:06:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:06:06 - End Time 2025-02-05 02:06:06 [2025-02-05 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404527', 'tblTempUsageDetail_20' ) start [2025-02-05 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404527', 'tblTempUsageDetail_20' ) end [2025-02-05 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404527', 'tblTempVendorCDR_20' ) start [2025-02-05 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404527', 'tblTempVendorCDR_20' ) end [2025-02-05 02:06:19] Production.INFO: ProcessCDR(1,14404527,1,1,2) [2025-02-05 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404527', 'tblTempUsageDetail_20' ) start [2025-02-05 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404527', 'tblTempUsageDetail_20' ) end [2025-02-05 02:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:06:23] Production.INFO: ==26351== Releasing lock... [2025-02-05 02:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:06:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:07:05 [end_date_ymd] => 2025-02-05 02:07:05 [RateCDR] => 1 ) [2025-02-05 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:07:05' and `end` < '2025-02-05 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:07:18] Production.INFO: count ==311 [2025-02-05 02:07:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:07:05 - End Time 2025-02-05 02:07:05 [2025-02-05 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404532', 'tblTempUsageDetail_20' ) start [2025-02-05 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404532', 'tblTempUsageDetail_20' ) end [2025-02-05 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404532', 'tblTempVendorCDR_20' ) start [2025-02-05 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404532', 'tblTempVendorCDR_20' ) end [2025-02-05 02:07:18] Production.INFO: ProcessCDR(1,14404532,1,1,2) [2025-02-05 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404532', 'tblTempUsageDetail_20' ) start [2025-02-05 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404532', 'tblTempUsageDetail_20' ) end [2025-02-05 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:07:21] Production.INFO: ==26422== Releasing lock... [2025-02-05 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:08:06 [end_date_ymd] => 2025-02-05 02:08:06 [RateCDR] => 1 ) [2025-02-05 02:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:08:06' and `end` < '2025-02-05 02:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:08:19] Production.INFO: count ==309 [2025-02-05 02:08:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:08:06 - End Time 2025-02-05 02:08:06 [2025-02-05 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404537', 'tblTempUsageDetail_20' ) start [2025-02-05 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404537', 'tblTempUsageDetail_20' ) end [2025-02-05 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404537', 'tblTempVendorCDR_20' ) start [2025-02-05 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404537', 'tblTempVendorCDR_20' ) end [2025-02-05 02:08:19] Production.INFO: ProcessCDR(1,14404537,1,1,2) [2025-02-05 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404537', 'tblTempUsageDetail_20' ) start [2025-02-05 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404537', 'tblTempUsageDetail_20' ) end [2025-02-05 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:08:22] Production.INFO: ==26499== Releasing lock... [2025-02-05 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:08:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:09:05 [end_date_ymd] => 2025-02-05 02:09:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:09:05' and `end` < '2025-02-05 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-02-05 02:09:18] Production.INFO: count ==308 [2025-02-05 02:09:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:09:05 - End Time 2025-02-05 02:09:05 [2025-02-05 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404542', 'tblTempUsageDetail_20' ) start [2025-02-05 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404542', 'tblTempUsageDetail_20' ) end [2025-02-05 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404542', 'tblTempVendorCDR_20' ) start [2025-02-05 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404542', 'tblTempVendorCDR_20' ) end [2025-02-05 02:09:18] Production.INFO: ProcessCDR(1,14404542,1,1,2) [2025-02-05 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404542', 'tblTempUsageDetail_20' ) start [2025-02-05 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404542', 'tblTempUsageDetail_20' ) end [2025-02-05 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:09:21] Production.INFO: ==26572== Releasing lock... [2025-02-05 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:09:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:10:06 [end_date_ymd] => 2025-02-05 02:10:06 [RateCDR] => 1 ) [2025-02-05 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:10:06' and `end` < '2025-02-05 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:10:19] Production.INFO: count ==313 [2025-02-05 02:10:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:10:06 - End Time 2025-02-05 02:10:06 [2025-02-05 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404547', 'tblTempUsageDetail_20' ) start [2025-02-05 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404547', 'tblTempUsageDetail_20' ) end [2025-02-05 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404547', 'tblTempVendorCDR_20' ) start [2025-02-05 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404547', 'tblTempVendorCDR_20' ) end [2025-02-05 02:10:19] Production.INFO: ProcessCDR(1,14404547,1,1,2) [2025-02-05 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404547', 'tblTempUsageDetail_20' ) start [2025-02-05 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404547', 'tblTempUsageDetail_20' ) end [2025-02-05 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:10:24] Production.INFO: ==26648== Releasing lock... [2025-02-05 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:10:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:11:05 [end_date_ymd] => 2025-02-05 02:11:05 [RateCDR] => 1 ) [2025-02-05 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:11:05' and `end` < '2025-02-05 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:11:19] Production.INFO: count ==313 [2025-02-05 02:11:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:11:05 - End Time 2025-02-05 02:11:05 [2025-02-05 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404553', 'tblTempUsageDetail_20' ) start [2025-02-05 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404553', 'tblTempUsageDetail_20' ) end [2025-02-05 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404553', 'tblTempVendorCDR_20' ) start [2025-02-05 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404553', 'tblTempVendorCDR_20' ) end [2025-02-05 02:11:19] Production.INFO: ProcessCDR(1,14404553,1,1,2) [2025-02-05 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404553', 'tblTempUsageDetail_20' ) start [2025-02-05 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404553', 'tblTempUsageDetail_20' ) end [2025-02-05 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:11:22] Production.INFO: ==26729== Releasing lock... [2025-02-05 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:11:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:12:05 [end_date_ymd] => 2025-02-05 02:12:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:12:05' and `end` < '2025-02-05 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-02-05 02:12:19] Production.INFO: count ==312 [2025-02-05 02:12:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:12:05 - End Time 2025-02-05 02:12:05 [2025-02-05 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404558', 'tblTempUsageDetail_20' ) start [2025-02-05 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404558', 'tblTempUsageDetail_20' ) end [2025-02-05 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404558', 'tblTempVendorCDR_20' ) start [2025-02-05 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404558', 'tblTempVendorCDR_20' ) end [2025-02-05 02:12:19] Production.INFO: ProcessCDR(1,14404558,1,1,2) [2025-02-05 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404558', 'tblTempUsageDetail_20' ) start [2025-02-05 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404558', 'tblTempUsageDetail_20' ) end [2025-02-05 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:12:22] Production.INFO: ==26802== Releasing lock... [2025-02-05 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:12:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:13:05 [end_date_ymd] => 2025-02-05 02:13:05 [RateCDR] => 1 ) [2025-02-05 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:13:05' and `end` < '2025-02-05 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:13:18] Production.INFO: count ==312 [2025-02-05 02:13:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:13:05 - End Time 2025-02-05 02:13:05 [2025-02-05 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404562', 'tblTempUsageDetail_20' ) start [2025-02-05 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404562', 'tblTempUsageDetail_20' ) end [2025-02-05 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404562', 'tblTempVendorCDR_20' ) start [2025-02-05 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404562', 'tblTempVendorCDR_20' ) end [2025-02-05 02:13:18] Production.INFO: ProcessCDR(1,14404562,1,1,2) [2025-02-05 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404562', 'tblTempUsageDetail_20' ) start [2025-02-05 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404562', 'tblTempUsageDetail_20' ) end [2025-02-05 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:13:21] Production.INFO: ==26871== Releasing lock... [2025-02-05 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:13:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:14:05 [end_date_ymd] => 2025-02-05 02:14:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:14:05' and `end` < '2025-02-05 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-02-05 02:14:18] Production.INFO: count ==312 [2025-02-05 02:14:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:14:05 - End Time 2025-02-05 02:14:05 [2025-02-05 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404568', 'tblTempUsageDetail_20' ) start [2025-02-05 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404568', 'tblTempUsageDetail_20' ) end [2025-02-05 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404568', 'tblTempVendorCDR_20' ) start [2025-02-05 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404568', 'tblTempVendorCDR_20' ) end [2025-02-05 02:14:18] Production.INFO: ProcessCDR(1,14404568,1,1,2) [2025-02-05 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404568', 'tblTempUsageDetail_20' ) start [2025-02-05 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404568', 'tblTempUsageDetail_20' ) end [2025-02-05 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:14:21] Production.INFO: ==26942== Releasing lock... [2025-02-05 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:14:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:15:05 [end_date_ymd] => 2025-02-05 02:15:05 [RateCDR] => 1 ) [2025-02-05 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:15:05' and `end` < '2025-02-05 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:15:18] Production.INFO: count ==312 [2025-02-05 02:15:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:15:05 - End Time 2025-02-05 02:15:05 [2025-02-05 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404573', 'tblTempUsageDetail_20' ) start [2025-02-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404573', 'tblTempUsageDetail_20' ) end [2025-02-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404573', 'tblTempVendorCDR_20' ) start [2025-02-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404573', 'tblTempVendorCDR_20' ) end [2025-02-05 02:15:18] Production.INFO: ProcessCDR(1,14404573,1,1,2) [2025-02-05 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404573', 'tblTempUsageDetail_20' ) start [2025-02-05 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404573', 'tblTempUsageDetail_20' ) end [2025-02-05 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:15:21] Production.INFO: ==27020== Releasing lock... [2025-02-05 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:15:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:16:05 [end_date_ymd] => 2025-02-05 02:16:05 [RateCDR] => 1 ) [2025-02-05 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:16:05' and `end` < '2025-02-05 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:16:19] Production.INFO: count ==312 [2025-02-05 02:16:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:16:05 - End Time 2025-02-05 02:16:05 [2025-02-05 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404578', 'tblTempUsageDetail_20' ) start [2025-02-05 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404578', 'tblTempUsageDetail_20' ) end [2025-02-05 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404578', 'tblTempVendorCDR_20' ) start [2025-02-05 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404578', 'tblTempVendorCDR_20' ) end [2025-02-05 02:16:19] Production.INFO: ProcessCDR(1,14404578,1,1,2) [2025-02-05 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404578', 'tblTempUsageDetail_20' ) start [2025-02-05 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404578', 'tblTempUsageDetail_20' ) end [2025-02-05 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:16:22] Production.INFO: ==27095== Releasing lock... [2025-02-05 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:16:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:17:06 [end_date_ymd] => 2025-02-05 02:17:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:17:06' and `end` < '2025-02-05 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-02-05 02:17:19] Production.INFO: count ==312 [2025-02-05 02:17:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:17:06 - End Time 2025-02-05 02:17:06 [2025-02-05 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404583', 'tblTempUsageDetail_20' ) start [2025-02-05 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404583', 'tblTempUsageDetail_20' ) end [2025-02-05 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404583', 'tblTempVendorCDR_20' ) start [2025-02-05 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404583', 'tblTempVendorCDR_20' ) end [2025-02-05 02:17:19] Production.INFO: ProcessCDR(1,14404583,1,1,2) [2025-02-05 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404583', 'tblTempUsageDetail_20' ) start [2025-02-05 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404583', 'tblTempUsageDetail_20' ) end [2025-02-05 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:17:22] Production.INFO: ==27165== Releasing lock... [2025-02-05 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:17:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:18:04 [end_date_ymd] => 2025-02-05 02:18:04 [RateCDR] => 1 ) [2025-02-05 02:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:18:04' and `end` < '2025-02-05 02:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:18:18] Production.INFO: count ==312 [2025-02-05 02:18:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:18:04 - End Time 2025-02-05 02:18:04 [2025-02-05 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404588', 'tblTempUsageDetail_20' ) start [2025-02-05 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404588', 'tblTempUsageDetail_20' ) end [2025-02-05 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404588', 'tblTempVendorCDR_20' ) start [2025-02-05 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404588', 'tblTempVendorCDR_20' ) end [2025-02-05 02:18:18] Production.INFO: ProcessCDR(1,14404588,1,1,2) [2025-02-05 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404588', 'tblTempUsageDetail_20' ) start [2025-02-05 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404588', 'tblTempUsageDetail_20' ) end [2025-02-05 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:18:21] Production.INFO: ==27274== Releasing lock... [2025-02-05 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:18:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:19:05 [end_date_ymd] => 2025-02-05 02:19:05 [RateCDR] => 1 ) [2025-02-05 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:19:05' and `end` < '2025-02-05 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:19:18] Production.INFO: count ==311 [2025-02-05 02:19:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:19:05 - End Time 2025-02-05 02:19:05 [2025-02-05 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404593', 'tblTempUsageDetail_20' ) start [2025-02-05 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404593', 'tblTempUsageDetail_20' ) end [2025-02-05 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404593', 'tblTempVendorCDR_20' ) start [2025-02-05 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404593', 'tblTempVendorCDR_20' ) end [2025-02-05 02:19:18] Production.INFO: ProcessCDR(1,14404593,1,1,2) [2025-02-05 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404593', 'tblTempUsageDetail_20' ) start [2025-02-05 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404593', 'tblTempUsageDetail_20' ) end [2025-02-05 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:19:21] Production.INFO: ==27348== Releasing lock... [2025-02-05 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:20:06 [end_date_ymd] => 2025-02-05 02:20:06 [RateCDR] => 1 ) [2025-02-05 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:20:06' and `end` < '2025-02-05 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:20:19] Production.INFO: count ==319 [2025-02-05 02:20:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:20:06 - End Time 2025-02-05 02:20:06 [2025-02-05 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404598', 'tblTempUsageDetail_20' ) start [2025-02-05 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404598', 'tblTempUsageDetail_20' ) end [2025-02-05 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404598', 'tblTempVendorCDR_20' ) start [2025-02-05 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404598', 'tblTempVendorCDR_20' ) end [2025-02-05 02:20:19] Production.INFO: ProcessCDR(1,14404598,1,1,2) [2025-02-05 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404598', 'tblTempUsageDetail_20' ) start [2025-02-05 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404598', 'tblTempUsageDetail_20' ) end [2025-02-05 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:20:22] Production.INFO: ==27420== Releasing lock... [2025-02-05 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:21:06 [end_date_ymd] => 2025-02-05 02:21:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:21:06' and `end` < '2025-02-05 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-02-05 02:21:19] Production.INFO: count ==325 [2025-02-05 02:21:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:21:06 - End Time 2025-02-05 02:21:06 [2025-02-05 02:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404604', 'tblTempUsageDetail_20' ) start [2025-02-05 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404604', 'tblTempUsageDetail_20' ) end [2025-02-05 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404604', 'tblTempVendorCDR_20' ) start [2025-02-05 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404604', 'tblTempVendorCDR_20' ) end [2025-02-05 02:21:19] Production.INFO: ProcessCDR(1,14404604,1,1,2) [2025-02-05 02:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404604', 'tblTempUsageDetail_20' ) start [2025-02-05 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404604', 'tblTempUsageDetail_20' ) end [2025-02-05 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:21:22] Production.INFO: ==27495== Releasing lock... [2025-02-05 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:21:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:22:05 [end_date_ymd] => 2025-02-05 02:22:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:22:05' and `end` < '2025-02-05 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-02-05 02:22:17] Production.INFO: count ==324 [2025-02-05 02:22:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:22:05 - End Time 2025-02-05 02:22:05 [2025-02-05 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404609', 'tblTempUsageDetail_20' ) start [2025-02-05 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404609', 'tblTempUsageDetail_20' ) end [2025-02-05 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404609', 'tblTempVendorCDR_20' ) start [2025-02-05 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404609', 'tblTempVendorCDR_20' ) end [2025-02-05 02:22:18] Production.INFO: ProcessCDR(1,14404609,1,1,2) [2025-02-05 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404609', 'tblTempUsageDetail_20' ) start [2025-02-05 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404609', 'tblTempUsageDetail_20' ) end [2025-02-05 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:22:21] Production.INFO: ==27566== Releasing lock... [2025-02-05 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:22:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:23:06 [end_date_ymd] => 2025-02-05 02:23:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:23:06' and `end` < '2025-02-05 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-02-05 02:23:19] Production.INFO: count ==324 [2025-02-05 02:23:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:23:06 - End Time 2025-02-05 02:23:06 [2025-02-05 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404614', 'tblTempUsageDetail_20' ) start [2025-02-05 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404614', 'tblTempUsageDetail_20' ) end [2025-02-05 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404614', 'tblTempVendorCDR_20' ) start [2025-02-05 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404614', 'tblTempVendorCDR_20' ) end [2025-02-05 02:23:19] Production.INFO: ProcessCDR(1,14404614,1,1,2) [2025-02-05 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404614', 'tblTempUsageDetail_20' ) start [2025-02-05 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404614', 'tblTempUsageDetail_20' ) end [2025-02-05 02:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:23:23] Production.INFO: ==27638== Releasing lock... [2025-02-05 02:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:23:23] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:24:05 [end_date_ymd] => 2025-02-05 02:24:05 [RateCDR] => 1 ) [2025-02-05 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:24:05' and `end` < '2025-02-05 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:24:19] Production.INFO: count ==323 [2025-02-05 02:24:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:24:05 - End Time 2025-02-05 02:24:05 [2025-02-05 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404619', 'tblTempUsageDetail_20' ) start [2025-02-05 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404619', 'tblTempUsageDetail_20' ) end [2025-02-05 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404619', 'tblTempVendorCDR_20' ) start [2025-02-05 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404619', 'tblTempVendorCDR_20' ) end [2025-02-05 02:24:19] Production.INFO: ProcessCDR(1,14404619,1,1,2) [2025-02-05 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404619', 'tblTempUsageDetail_20' ) start [2025-02-05 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404619', 'tblTempUsageDetail_20' ) end [2025-02-05 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:24:22] Production.INFO: ==27716== Releasing lock... [2025-02-05 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:24:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:25:05 [end_date_ymd] => 2025-02-05 02:25:05 [RateCDR] => 1 ) [2025-02-05 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:25:05' and `end` < '2025-02-05 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:25:18] Production.INFO: count ==323 [2025-02-05 02:25:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:25:05 - End Time 2025-02-05 02:25:05 [2025-02-05 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404624', 'tblTempUsageDetail_20' ) start [2025-02-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404624', 'tblTempUsageDetail_20' ) end [2025-02-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404624', 'tblTempVendorCDR_20' ) start [2025-02-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404624', 'tblTempVendorCDR_20' ) end [2025-02-05 02:25:18] Production.INFO: ProcessCDR(1,14404624,1,1,2) [2025-02-05 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404624', 'tblTempUsageDetail_20' ) start [2025-02-05 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404624', 'tblTempUsageDetail_20' ) end [2025-02-05 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:25:21] Production.INFO: ==27786== Releasing lock... [2025-02-05 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:25:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:26:05 [end_date_ymd] => 2025-02-05 02:26:05 [RateCDR] => 1 ) [2025-02-05 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:26:05' and `end` < '2025-02-05 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:26:18] Production.INFO: count ==320 [2025-02-05 02:26:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:26:05 - End Time 2025-02-05 02:26:05 [2025-02-05 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404629', 'tblTempUsageDetail_20' ) start [2025-02-05 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404629', 'tblTempUsageDetail_20' ) end [2025-02-05 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404629', 'tblTempVendorCDR_20' ) start [2025-02-05 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404629', 'tblTempVendorCDR_20' ) end [2025-02-05 02:26:18] Production.INFO: ProcessCDR(1,14404629,1,1,2) [2025-02-05 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404629', 'tblTempUsageDetail_20' ) start [2025-02-05 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404629', 'tblTempUsageDetail_20' ) end [2025-02-05 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:26:21] Production.INFO: ==27858== Releasing lock... [2025-02-05 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:26:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:27:05 [end_date_ymd] => 2025-02-05 02:27:05 [RateCDR] => 1 ) [2025-02-05 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:27:05' and `end` < '2025-02-05 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:27:19] Production.INFO: count ==320 [2025-02-05 02:27:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:27:05 - End Time 2025-02-05 02:27:05 [2025-02-05 02:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404634', 'tblTempUsageDetail_20' ) start [2025-02-05 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404634', 'tblTempUsageDetail_20' ) end [2025-02-05 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404634', 'tblTempVendorCDR_20' ) start [2025-02-05 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404634', 'tblTempVendorCDR_20' ) end [2025-02-05 02:27:19] Production.INFO: ProcessCDR(1,14404634,1,1,2) [2025-02-05 02:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404634', 'tblTempUsageDetail_20' ) start [2025-02-05 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404634', 'tblTempUsageDetail_20' ) end [2025-02-05 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:27:22] Production.INFO: ==27930== Releasing lock... [2025-02-05 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:27:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:28:05 [end_date_ymd] => 2025-02-05 02:28:05 [RateCDR] => 1 ) [2025-02-05 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:28:05' and `end` < '2025-02-05 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:28:18] Production.INFO: count ==318 [2025-02-05 02:28:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:28:05 - End Time 2025-02-05 02:28:05 [2025-02-05 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404639', 'tblTempUsageDetail_20' ) start [2025-02-05 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404639', 'tblTempUsageDetail_20' ) end [2025-02-05 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404639', 'tblTempVendorCDR_20' ) start [2025-02-05 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404639', 'tblTempVendorCDR_20' ) end [2025-02-05 02:28:18] Production.INFO: ProcessCDR(1,14404639,1,1,2) [2025-02-05 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404639', 'tblTempUsageDetail_20' ) start [2025-02-05 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404639', 'tblTempUsageDetail_20' ) end [2025-02-05 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:28:21] Production.INFO: ==28006== Releasing lock... [2025-02-05 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:29:05 [end_date_ymd] => 2025-02-05 02:29:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:29:05' and `end` < '2025-02-05 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-02-05 02:29:18] Production.INFO: count ==318 [2025-02-05 02:29:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:29:05 - End Time 2025-02-05 02:29:05 [2025-02-05 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404644', 'tblTempUsageDetail_20' ) start [2025-02-05 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404644', 'tblTempUsageDetail_20' ) end [2025-02-05 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404644', 'tblTempVendorCDR_20' ) start [2025-02-05 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404644', 'tblTempVendorCDR_20' ) end [2025-02-05 02:29:18] Production.INFO: ProcessCDR(1,14404644,1,1,2) [2025-02-05 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404644', 'tblTempUsageDetail_20' ) start [2025-02-05 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404644', 'tblTempUsageDetail_20' ) end [2025-02-05 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:29:21] Production.INFO: ==28081== Releasing lock... [2025-02-05 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:29:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:30:06 [end_date_ymd] => 2025-02-05 02:30:06 [RateCDR] => 1 ) [2025-02-05 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:30:06' and `end` < '2025-02-05 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:30:19] Production.INFO: count ==326 [2025-02-05 02:30:20] Production.ERROR: pbx CDR StartTime 2025-02-04 23:30:06 - End Time 2025-02-05 02:30:06 [2025-02-05 02:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404649', 'tblTempUsageDetail_20' ) start [2025-02-05 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404649', 'tblTempUsageDetail_20' ) end [2025-02-05 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404649', 'tblTempVendorCDR_20' ) start [2025-02-05 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404649', 'tblTempVendorCDR_20' ) end [2025-02-05 02:30:20] Production.INFO: ProcessCDR(1,14404649,1,1,2) [2025-02-05 02:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404649', 'tblTempUsageDetail_20' ) start [2025-02-05 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404649', 'tblTempUsageDetail_20' ) end [2025-02-05 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:30:23] Production.INFO: ==28155== Releasing lock... [2025-02-05 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:30:23] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:31:05 [end_date_ymd] => 2025-02-05 02:31:05 [RateCDR] => 1 ) [2025-02-05 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:31:05' and `end` < '2025-02-05 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:31:18] Production.INFO: count ==339 [2025-02-05 02:31:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:31:05 - End Time 2025-02-05 02:31:05 [2025-02-05 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404655', 'tblTempUsageDetail_20' ) start [2025-02-05 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404655', 'tblTempUsageDetail_20' ) end [2025-02-05 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404655', 'tblTempVendorCDR_20' ) start [2025-02-05 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404655', 'tblTempVendorCDR_20' ) end [2025-02-05 02:31:18] Production.INFO: ProcessCDR(1,14404655,1,1,2) [2025-02-05 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404655', 'tblTempUsageDetail_20' ) start [2025-02-05 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404655', 'tblTempUsageDetail_20' ) end [2025-02-05 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:31:21] Production.INFO: ==28235== Releasing lock... [2025-02-05 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:31:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:32:06 [end_date_ymd] => 2025-02-05 02:32:06 [RateCDR] => 1 ) [2025-02-05 02:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:32:06' and `end` < '2025-02-05 02:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:32:18] Production.INFO: count ==340 [2025-02-05 02:32:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:32:06 - End Time 2025-02-05 02:32:06 [2025-02-05 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404660', 'tblTempUsageDetail_20' ) start [2025-02-05 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404660', 'tblTempUsageDetail_20' ) end [2025-02-05 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404660', 'tblTempVendorCDR_20' ) start [2025-02-05 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404660', 'tblTempVendorCDR_20' ) end [2025-02-05 02:32:18] Production.INFO: ProcessCDR(1,14404660,1,1,2) [2025-02-05 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404660', 'tblTempUsageDetail_20' ) start [2025-02-05 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404660', 'tblTempUsageDetail_20' ) end [2025-02-05 02:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:32:23] Production.INFO: ==28333== Releasing lock... [2025-02-05 02:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:32:23] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:33:05 [end_date_ymd] => 2025-02-05 02:33:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:33:05' and `end` < '2025-02-05 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-02-05 02:33:18] Production.INFO: count ==340 [2025-02-05 02:33:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:33:05 - End Time 2025-02-05 02:33:05 [2025-02-05 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404665', 'tblTempUsageDetail_20' ) start [2025-02-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404665', 'tblTempUsageDetail_20' ) end [2025-02-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404665', 'tblTempVendorCDR_20' ) start [2025-02-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404665', 'tblTempVendorCDR_20' ) end [2025-02-05 02:33:18] Production.INFO: ProcessCDR(1,14404665,1,1,2) [2025-02-05 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404665', 'tblTempUsageDetail_20' ) start [2025-02-05 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404665', 'tblTempUsageDetail_20' ) end [2025-02-05 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:33:22] Production.INFO: ==28477== Releasing lock... [2025-02-05 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:33:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:34:06 [end_date_ymd] => 2025-02-05 02:34:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:34:06' and `end` < '2025-02-05 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-02-05 02:34:19] Production.INFO: count ==336 [2025-02-05 02:34:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:34:06 - End Time 2025-02-05 02:34:06 [2025-02-05 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404670', 'tblTempUsageDetail_20' ) start [2025-02-05 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404670', 'tblTempUsageDetail_20' ) end [2025-02-05 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404670', 'tblTempVendorCDR_20' ) start [2025-02-05 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404670', 'tblTempVendorCDR_20' ) end [2025-02-05 02:34:19] Production.INFO: ProcessCDR(1,14404670,1,1,2) [2025-02-05 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404670', 'tblTempUsageDetail_20' ) start [2025-02-05 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404670', 'tblTempUsageDetail_20' ) end [2025-02-05 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:34:22] Production.INFO: ==28580== Releasing lock... [2025-02-05 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:34:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:35:05 [end_date_ymd] => 2025-02-05 02:35:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:35:05' and `end` < '2025-02-05 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-02-05 02:35:18] Production.INFO: count ==335 [2025-02-05 02:35:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:35:05 - End Time 2025-02-05 02:35:05 [2025-02-05 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404675', 'tblTempUsageDetail_20' ) start [2025-02-05 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404675', 'tblTempUsageDetail_20' ) end [2025-02-05 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404675', 'tblTempVendorCDR_20' ) start [2025-02-05 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404675', 'tblTempVendorCDR_20' ) end [2025-02-05 02:35:18] Production.INFO: ProcessCDR(1,14404675,1,1,2) [2025-02-05 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404675', 'tblTempUsageDetail_20' ) start [2025-02-05 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404675', 'tblTempUsageDetail_20' ) end [2025-02-05 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:35:21] Production.INFO: ==28654== Releasing lock... [2025-02-05 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:35:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:36:05 [end_date_ymd] => 2025-02-05 02:36:05 [RateCDR] => 1 ) [2025-02-05 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:36:05' and `end` < '2025-02-05 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:36:18] Production.INFO: count ==335 [2025-02-05 02:36:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:36:05 - End Time 2025-02-05 02:36:05 [2025-02-05 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404680', 'tblTempUsageDetail_20' ) start [2025-02-05 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404680', 'tblTempUsageDetail_20' ) end [2025-02-05 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404680', 'tblTempVendorCDR_20' ) start [2025-02-05 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404680', 'tblTempVendorCDR_20' ) end [2025-02-05 02:36:18] Production.INFO: ProcessCDR(1,14404680,1,1,2) [2025-02-05 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404680', 'tblTempUsageDetail_20' ) start [2025-02-05 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404680', 'tblTempUsageDetail_20' ) end [2025-02-05 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:36:22] Production.INFO: ==28725== Releasing lock... [2025-02-05 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:36:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:37:04 [end_date_ymd] => 2025-02-05 02:37:04 [RateCDR] => 1 ) [2025-02-05 02:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:37:04' and `end` < '2025-02-05 02:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:37:18] Production.INFO: count ==332 [2025-02-05 02:37:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:37:04 - End Time 2025-02-05 02:37:04 [2025-02-05 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404685', 'tblTempUsageDetail_20' ) start [2025-02-05 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404685', 'tblTempUsageDetail_20' ) end [2025-02-05 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404685', 'tblTempVendorCDR_20' ) start [2025-02-05 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404685', 'tblTempVendorCDR_20' ) end [2025-02-05 02:37:18] Production.INFO: ProcessCDR(1,14404685,1,1,2) [2025-02-05 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404685', 'tblTempUsageDetail_20' ) start [2025-02-05 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404685', 'tblTempUsageDetail_20' ) end [2025-02-05 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:37:21] Production.INFO: ==28803== Releasing lock... [2025-02-05 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:37:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:38:05 [end_date_ymd] => 2025-02-05 02:38:05 [RateCDR] => 1 ) [2025-02-05 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:38:05' and `end` < '2025-02-05 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:38:18] Production.INFO: count ==327 [2025-02-05 02:38:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:38:05 - End Time 2025-02-05 02:38:05 [2025-02-05 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404690', 'tblTempUsageDetail_20' ) start [2025-02-05 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404690', 'tblTempUsageDetail_20' ) end [2025-02-05 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404690', 'tblTempVendorCDR_20' ) start [2025-02-05 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404690', 'tblTempVendorCDR_20' ) end [2025-02-05 02:38:18] Production.INFO: ProcessCDR(1,14404690,1,1,2) [2025-02-05 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404690', 'tblTempUsageDetail_20' ) start [2025-02-05 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404690', 'tblTempUsageDetail_20' ) end [2025-02-05 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:38:21] Production.INFO: ==28879== Releasing lock... [2025-02-05 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:38:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:39:05 [end_date_ymd] => 2025-02-05 02:39:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:39:05' and `end` < '2025-02-05 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-02-05 02:39:19] Production.INFO: count ==323 [2025-02-05 02:39:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:39:05 - End Time 2025-02-05 02:39:05 [2025-02-05 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404695', 'tblTempUsageDetail_20' ) start [2025-02-05 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404695', 'tblTempUsageDetail_20' ) end [2025-02-05 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404695', 'tblTempVendorCDR_20' ) start [2025-02-05 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404695', 'tblTempVendorCDR_20' ) end [2025-02-05 02:39:19] Production.INFO: ProcessCDR(1,14404695,1,1,2) [2025-02-05 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404695', 'tblTempUsageDetail_20' ) start [2025-02-05 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404695', 'tblTempUsageDetail_20' ) end [2025-02-05 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:39:22] Production.INFO: ==28954== Releasing lock... [2025-02-05 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:39:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:40:06 [end_date_ymd] => 2025-02-05 02:40:06 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:40:06' and `end` < '2025-02-05 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-02-05 02:40:20] Production.INFO: count ==328 [2025-02-05 02:40:20] Production.ERROR: pbx CDR StartTime 2025-02-04 23:40:06 - End Time 2025-02-05 02:40:06 [2025-02-05 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404701', 'tblTempUsageDetail_20' ) start [2025-02-05 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404701', 'tblTempUsageDetail_20' ) end [2025-02-05 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404701', 'tblTempVendorCDR_20' ) start [2025-02-05 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404701', 'tblTempVendorCDR_20' ) end [2025-02-05 02:40:20] Production.INFO: ProcessCDR(1,14404701,1,1,2) [2025-02-05 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404701', 'tblTempUsageDetail_20' ) start [2025-02-05 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404701', 'tblTempUsageDetail_20' ) end [2025-02-05 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:40:23] Production.INFO: ==29029== Releasing lock... [2025-02-05 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:40:23] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:41:06 [end_date_ymd] => 2025-02-05 02:41:06 [RateCDR] => 1 ) [2025-02-05 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:41:06' and `end` < '2025-02-05 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:41:19] Production.INFO: count ==329 [2025-02-05 02:41:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:41:06 - End Time 2025-02-05 02:41:06 [2025-02-05 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404706', 'tblTempUsageDetail_20' ) start [2025-02-05 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404706', 'tblTempUsageDetail_20' ) end [2025-02-05 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404706', 'tblTempVendorCDR_20' ) start [2025-02-05 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404706', 'tblTempVendorCDR_20' ) end [2025-02-05 02:41:19] Production.INFO: ProcessCDR(1,14404706,1,1,2) [2025-02-05 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404706', 'tblTempUsageDetail_20' ) start [2025-02-05 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404706', 'tblTempUsageDetail_20' ) end [2025-02-05 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:41:22] Production.INFO: ==29107== Releasing lock... [2025-02-05 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:41:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:42:05 [end_date_ymd] => 2025-02-05 02:42:05 [RateCDR] => 1 ) [2025-02-05 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:42:05' and `end` < '2025-02-05 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:42:19] Production.INFO: count ==328 [2025-02-05 02:42:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:42:05 - End Time 2025-02-05 02:42:05 [2025-02-05 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404711', 'tblTempUsageDetail_20' ) start [2025-02-05 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404711', 'tblTempUsageDetail_20' ) end [2025-02-05 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404711', 'tblTempVendorCDR_20' ) start [2025-02-05 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404711', 'tblTempVendorCDR_20' ) end [2025-02-05 02:42:19] Production.INFO: ProcessCDR(1,14404711,1,1,2) [2025-02-05 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404711', 'tblTempUsageDetail_20' ) start [2025-02-05 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404711', 'tblTempUsageDetail_20' ) end [2025-02-05 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:42:22] Production.INFO: ==29186== Releasing lock... [2025-02-05 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:42:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:43:06 [end_date_ymd] => 2025-02-05 02:43:06 [RateCDR] => 1 ) [2025-02-05 02:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:43:06' and `end` < '2025-02-05 02:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:43:18] Production.INFO: count ==326 [2025-02-05 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:43:06 - End Time 2025-02-05 02:43:06 [2025-02-05 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404716', 'tblTempUsageDetail_20' ) start [2025-02-05 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404716', 'tblTempUsageDetail_20' ) end [2025-02-05 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404716', 'tblTempVendorCDR_20' ) start [2025-02-05 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404716', 'tblTempVendorCDR_20' ) end [2025-02-05 02:43:18] Production.INFO: ProcessCDR(1,14404716,1,1,2) [2025-02-05 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404716', 'tblTempUsageDetail_20' ) start [2025-02-05 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404716', 'tblTempUsageDetail_20' ) end [2025-02-05 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:43:22] Production.INFO: ==29261== Releasing lock... [2025-02-05 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:43:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:44:06 [end_date_ymd] => 2025-02-05 02:44:06 [RateCDR] => 1 ) [2025-02-05 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:44:06' and `end` < '2025-02-05 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:44:19] Production.INFO: count ==323 [2025-02-05 02:44:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:44:06 - End Time 2025-02-05 02:44:06 [2025-02-05 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404721', 'tblTempUsageDetail_20' ) start [2025-02-05 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404721', 'tblTempUsageDetail_20' ) end [2025-02-05 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404721', 'tblTempVendorCDR_20' ) start [2025-02-05 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404721', 'tblTempVendorCDR_20' ) end [2025-02-05 02:44:19] Production.INFO: ProcessCDR(1,14404721,1,1,2) [2025-02-05 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404721', 'tblTempUsageDetail_20' ) start [2025-02-05 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404721', 'tblTempUsageDetail_20' ) end [2025-02-05 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:44:23] Production.INFO: ==29342== Releasing lock... [2025-02-05 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:44:23] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:45:05 [end_date_ymd] => 2025-02-05 02:45:05 [RateCDR] => 1 ) [2025-02-05 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:45:05' and `end` < '2025-02-05 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:45:19] Production.INFO: count ==323 [2025-02-05 02:45:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:45:05 - End Time 2025-02-05 02:45:05 [2025-02-05 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404726', 'tblTempUsageDetail_20' ) start [2025-02-05 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404726', 'tblTempUsageDetail_20' ) end [2025-02-05 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404726', 'tblTempVendorCDR_20' ) start [2025-02-05 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404726', 'tblTempVendorCDR_20' ) end [2025-02-05 02:45:19] Production.INFO: ProcessCDR(1,14404726,1,1,2) [2025-02-05 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404726', 'tblTempUsageDetail_20' ) start [2025-02-05 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404726', 'tblTempUsageDetail_20' ) end [2025-02-05 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:45:22] Production.INFO: ==29418== Releasing lock... [2025-02-05 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:45:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:46:05 [end_date_ymd] => 2025-02-05 02:46:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:46:05' and `end` < '2025-02-05 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-02-05 02:46:18] Production.INFO: count ==323 [2025-02-05 02:46:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:46:05 - End Time 2025-02-05 02:46:05 [2025-02-05 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404731', 'tblTempUsageDetail_20' ) start [2025-02-05 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404731', 'tblTempUsageDetail_20' ) end [2025-02-05 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404731', 'tblTempVendorCDR_20' ) start [2025-02-05 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404731', 'tblTempVendorCDR_20' ) end [2025-02-05 02:46:18] Production.INFO: ProcessCDR(1,14404731,1,1,2) [2025-02-05 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404731', 'tblTempUsageDetail_20' ) start [2025-02-05 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404731', 'tblTempUsageDetail_20' ) end [2025-02-05 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:46:21] Production.INFO: ==29494== Releasing lock... [2025-02-05 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:46:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:47:05 [end_date_ymd] => 2025-02-05 02:47:05 [RateCDR] => 1 ) [2025-02-05 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:47:05' and `end` < '2025-02-05 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:47:19] Production.INFO: count ==322 [2025-02-05 02:47:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:47:05 - End Time 2025-02-05 02:47:05 [2025-02-05 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404736', 'tblTempUsageDetail_20' ) start [2025-02-05 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404736', 'tblTempUsageDetail_20' ) end [2025-02-05 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404736', 'tblTempVendorCDR_20' ) start [2025-02-05 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404736', 'tblTempVendorCDR_20' ) end [2025-02-05 02:47:19] Production.INFO: ProcessCDR(1,14404736,1,1,2) [2025-02-05 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404736', 'tblTempUsageDetail_20' ) start [2025-02-05 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404736', 'tblTempUsageDetail_20' ) end [2025-02-05 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:47:22] Production.INFO: ==29569== Releasing lock... [2025-02-05 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:47:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:48:05 [end_date_ymd] => 2025-02-05 02:48:05 [RateCDR] => 1 ) [2025-02-05 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:48:05' and `end` < '2025-02-05 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:48:18] Production.INFO: count ==318 [2025-02-05 02:48:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:48:05 - End Time 2025-02-05 02:48:05 [2025-02-05 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404741', 'tblTempUsageDetail_20' ) start [2025-02-05 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404741', 'tblTempUsageDetail_20' ) end [2025-02-05 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404741', 'tblTempVendorCDR_20' ) start [2025-02-05 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404741', 'tblTempVendorCDR_20' ) end [2025-02-05 02:48:18] Production.INFO: ProcessCDR(1,14404741,1,1,2) [2025-02-05 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404741', 'tblTempUsageDetail_20' ) start [2025-02-05 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404741', 'tblTempUsageDetail_20' ) end [2025-02-05 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:48:21] Production.INFO: ==29680== Releasing lock... [2025-02-05 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:48:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:49:05 [end_date_ymd] => 2025-02-05 02:49:05 [RateCDR] => 1 ) [2025-02-05 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:49:05' and `end` < '2025-02-05 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:49:18] Production.INFO: count ==317 [2025-02-05 02:49:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:49:05 - End Time 2025-02-05 02:49:05 [2025-02-05 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404746', 'tblTempUsageDetail_20' ) start [2025-02-05 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404746', 'tblTempUsageDetail_20' ) end [2025-02-05 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404746', 'tblTempVendorCDR_20' ) start [2025-02-05 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404746', 'tblTempVendorCDR_20' ) end [2025-02-05 02:49:18] Production.INFO: ProcessCDR(1,14404746,1,1,2) [2025-02-05 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404746', 'tblTempUsageDetail_20' ) start [2025-02-05 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404746', 'tblTempUsageDetail_20' ) end [2025-02-05 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:49:21] Production.INFO: ==29757== Releasing lock... [2025-02-05 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:50:05 [end_date_ymd] => 2025-02-05 02:50:05 [RateCDR] => 1 ) [2025-02-05 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:50:05' and `end` < '2025-02-05 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:50:18] Production.INFO: count ==325 [2025-02-05 02:50:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:50:05 - End Time 2025-02-05 02:50:05 [2025-02-05 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404752', 'tblTempUsageDetail_20' ) start [2025-02-05 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404752', 'tblTempUsageDetail_20' ) end [2025-02-05 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404752', 'tblTempVendorCDR_20' ) start [2025-02-05 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404752', 'tblTempVendorCDR_20' ) end [2025-02-05 02:50:18] Production.INFO: ProcessCDR(1,14404752,1,1,2) [2025-02-05 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404752', 'tblTempUsageDetail_20' ) start [2025-02-05 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404752', 'tblTempUsageDetail_20' ) end [2025-02-05 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:50:21] Production.INFO: ==29833== Releasing lock... [2025-02-05 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:50:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:51:05 [end_date_ymd] => 2025-02-05 02:51:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:51:05' and `end` < '2025-02-05 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-02-05 02:51:19] Production.INFO: count ==325 [2025-02-05 02:51:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:51:05 - End Time 2025-02-05 02:51:05 [2025-02-05 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404757', 'tblTempUsageDetail_20' ) start [2025-02-05 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404757', 'tblTempUsageDetail_20' ) end [2025-02-05 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404757', 'tblTempVendorCDR_20' ) start [2025-02-05 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404757', 'tblTempVendorCDR_20' ) end [2025-02-05 02:51:19] Production.INFO: ProcessCDR(1,14404757,1,1,2) [2025-02-05 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404757', 'tblTempUsageDetail_20' ) start [2025-02-05 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404757', 'tblTempUsageDetail_20' ) end [2025-02-05 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:51:22] Production.INFO: ==29911== Releasing lock... [2025-02-05 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:51:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:52:05 [end_date_ymd] => 2025-02-05 02:52:05 [RateCDR] => 1 ) [2025-02-05 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:52:05' and `end` < '2025-02-05 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:52:18] Production.INFO: count ==323 [2025-02-05 02:52:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:52:05 - End Time 2025-02-05 02:52:05 [2025-02-05 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404762', 'tblTempUsageDetail_20' ) start [2025-02-05 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404762', 'tblTempUsageDetail_20' ) end [2025-02-05 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404762', 'tblTempVendorCDR_20' ) start [2025-02-05 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404762', 'tblTempVendorCDR_20' ) end [2025-02-05 02:52:18] Production.INFO: ProcessCDR(1,14404762,1,1,2) [2025-02-05 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404762', 'tblTempUsageDetail_20' ) start [2025-02-05 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404762', 'tblTempUsageDetail_20' ) end [2025-02-05 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:52:21] Production.INFO: ==29988== Releasing lock... [2025-02-05 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:52:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:53:05 [end_date_ymd] => 2025-02-05 02:53:05 [RateCDR] => 1 ) [2025-02-05 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:53:05' and `end` < '2025-02-05 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:53:18] Production.INFO: count ==323 [2025-02-05 02:53:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:53:05 - End Time 2025-02-05 02:53:05 [2025-02-05 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404767', 'tblTempUsageDetail_20' ) start [2025-02-05 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404767', 'tblTempUsageDetail_20' ) end [2025-02-05 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404767', 'tblTempVendorCDR_20' ) start [2025-02-05 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404767', 'tblTempVendorCDR_20' ) end [2025-02-05 02:53:18] Production.INFO: ProcessCDR(1,14404767,1,1,2) [2025-02-05 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404767', 'tblTempUsageDetail_20' ) start [2025-02-05 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404767', 'tblTempUsageDetail_20' ) end [2025-02-05 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:53:21] Production.INFO: ==30061== Releasing lock... [2025-02-05 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:53:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:54:05 [end_date_ymd] => 2025-02-05 02:54:05 [RateCDR] => 1 ) [2025-02-05 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:54:05' and `end` < '2025-02-05 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:54:19] Production.INFO: count ==323 [2025-02-05 02:54:19] Production.ERROR: pbx CDR StartTime 2025-02-04 23:54:05 - End Time 2025-02-05 02:54:05 [2025-02-05 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404772', 'tblTempUsageDetail_20' ) start [2025-02-05 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404772', 'tblTempUsageDetail_20' ) end [2025-02-05 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404772', 'tblTempVendorCDR_20' ) start [2025-02-05 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404772', 'tblTempVendorCDR_20' ) end [2025-02-05 02:54:19] Production.INFO: ProcessCDR(1,14404772,1,1,2) [2025-02-05 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404772', 'tblTempUsageDetail_20' ) start [2025-02-05 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404772', 'tblTempUsageDetail_20' ) end [2025-02-05 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:54:22] Production.INFO: ==30133== Releasing lock... [2025-02-05 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:54:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:55:05 [end_date_ymd] => 2025-02-05 02:55:05 [RateCDR] => 1 ) [2025-02-05 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:55:05' and `end` < '2025-02-05 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:55:17] Production.INFO: count ==323 [2025-02-05 02:55:17] Production.ERROR: pbx CDR StartTime 2025-02-04 23:55:05 - End Time 2025-02-05 02:55:05 [2025-02-05 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404777', 'tblTempUsageDetail_20' ) start [2025-02-05 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404777', 'tblTempUsageDetail_20' ) end [2025-02-05 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404777', 'tblTempVendorCDR_20' ) start [2025-02-05 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404777', 'tblTempVendorCDR_20' ) end [2025-02-05 02:55:17] Production.INFO: ProcessCDR(1,14404777,1,1,2) [2025-02-05 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404777', 'tblTempUsageDetail_20' ) start [2025-02-05 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404777', 'tblTempUsageDetail_20' ) end [2025-02-05 02:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:55:21] Production.INFO: ==30209== Releasing lock... [2025-02-05 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:55:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:56:06 [end_date_ymd] => 2025-02-05 02:56:06 [RateCDR] => 1 ) [2025-02-05 02:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:56:06' and `end` < '2025-02-05 02:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:56:18] Production.INFO: count ==323 [2025-02-05 02:56:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:56:06 - End Time 2025-02-05 02:56:06 [2025-02-05 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404782', 'tblTempUsageDetail_20' ) start [2025-02-05 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404782', 'tblTempUsageDetail_20' ) end [2025-02-05 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404782', 'tblTempVendorCDR_20' ) start [2025-02-05 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404782', 'tblTempVendorCDR_20' ) end [2025-02-05 02:56:18] Production.INFO: ProcessCDR(1,14404782,1,1,2) [2025-02-05 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404782', 'tblTempUsageDetail_20' ) start [2025-02-05 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404782', 'tblTempUsageDetail_20' ) end [2025-02-05 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:56:21] Production.INFO: ==30294== Releasing lock... [2025-02-05 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:56:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:57:05 [end_date_ymd] => 2025-02-05 02:57:05 [RateCDR] => 1 ) [2025-02-05 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-02-04 23:57:05' and `end` < '2025-02-05 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-02-05 02:57:17] Production.INFO: count ==322 [2025-02-05 02:57:17] Production.ERROR: pbx CDR StartTime 2025-02-04 23:57:05 - End Time 2025-02-05 02:57:05 [2025-02-05 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404787', 'tblTempUsageDetail_20' ) start [2025-02-05 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404787', 'tblTempUsageDetail_20' ) end [2025-02-05 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404787', 'tblTempVendorCDR_20' ) start [2025-02-05 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404787', 'tblTempVendorCDR_20' ) end [2025-02-05 02:57:17] Production.INFO: ProcessCDR(1,14404787,1,1,2) [2025-02-05 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404787', 'tblTempUsageDetail_20' ) start [2025-02-05 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404787', 'tblTempUsageDetail_20' ) end [2025-02-05 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:57:21] Production.INFO: ==30366== Releasing lock... [2025-02-05 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:57:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:58:05 [end_date_ymd] => 2025-02-05 02:58:05 [RateCDR] => 1 ) [2025-02-05 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:58:05' and `end` < '2025-02-05 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:58:18] Production.INFO: count ==317 [2025-02-05 02:58:18] Production.ERROR: pbx CDR StartTime 2025-02-04 23:58:05 - End Time 2025-02-05 02:58:05 [2025-02-05 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404792', 'tblTempUsageDetail_20' ) start [2025-02-05 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404792', 'tblTempUsageDetail_20' ) end [2025-02-05 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404792', 'tblTempVendorCDR_20' ) start [2025-02-05 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404792', 'tblTempVendorCDR_20' ) end [2025-02-05 02:58:18] Production.INFO: ProcessCDR(1,14404792,1,1,2) [2025-02-05 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404792', 'tblTempUsageDetail_20' ) start [2025-02-05 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404792', 'tblTempUsageDetail_20' ) end [2025-02-05 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:58:22] Production.INFO: ==30442== Releasing lock... [2025-02-05 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:58:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 23:59:04 [end_date_ymd] => 2025-02-05 02:59:04 [RateCDR] => 1 ) [2025-02-05 02:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 23:59:04' and `end` < '2025-02-05 02:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 02:59:17] Production.INFO: count ==316 [2025-02-05 02:59:17] Production.ERROR: pbx CDR StartTime 2025-02-04 23:59:04 - End Time 2025-02-05 02:59:04 [2025-02-05 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404797', 'tblTempUsageDetail_20' ) start [2025-02-05 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404797', 'tblTempUsageDetail_20' ) end [2025-02-05 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404797', 'tblTempVendorCDR_20' ) start [2025-02-05 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404797', 'tblTempVendorCDR_20' ) end [2025-02-05 02:59:17] Production.INFO: ProcessCDR(1,14404797,1,1,2) [2025-02-05 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404797', 'tblTempUsageDetail_20' ) start [2025-02-05 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404797', 'tblTempUsageDetail_20' ) end [2025-02-05 02:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 02:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 02:59:20] Production.INFO: ==30514== Releasing lock... [2025-02-05 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 02:59:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:00:06 [end_date_ymd] => 2025-02-05 03:00:06 [RateCDR] => 1 ) [2025-02-05 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:00:06' and `end` < '2025-02-05 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:00:19] Production.INFO: count ==320 [2025-02-05 03:00:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:00:06 - End Time 2025-02-05 03:00:06 [2025-02-05 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404802', 'tblTempUsageDetail_20' ) start [2025-02-05 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404802', 'tblTempUsageDetail_20' ) end [2025-02-05 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404802', 'tblTempVendorCDR_20' ) start [2025-02-05 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404802', 'tblTempVendorCDR_20' ) end [2025-02-05 03:00:19] Production.INFO: ProcessCDR(1,14404802,1,1,2) [2025-02-05 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404802', 'tblTempUsageDetail_20' ) start [2025-02-05 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404802', 'tblTempUsageDetail_20' ) end [2025-02-05 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:00:22] Production.INFO: ==30590== Releasing lock... [2025-02-05 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:01:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:01:07 [end_date_ymd] => 2025-02-05 03:01:07 [RateCDR] => 1 ) [2025-02-05 03:01:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:01:07' and `end` < '2025-02-05 03:01:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:01:20] Production.INFO: count ==319 [2025-02-05 03:01:20] Production.ERROR: pbx CDR StartTime 2025-02-05 00:01:07 - End Time 2025-02-05 03:01:07 [2025-02-05 03:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404808', 'tblTempUsageDetail_20' ) start [2025-02-05 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404808', 'tblTempUsageDetail_20' ) end [2025-02-05 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404808', 'tblTempVendorCDR_20' ) start [2025-02-05 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404808', 'tblTempVendorCDR_20' ) end [2025-02-05 03:01:20] Production.INFO: ProcessCDR(1,14404808,1,1,2) [2025-02-05 03:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404808', 'tblTempUsageDetail_20' ) start [2025-02-05 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404808', 'tblTempUsageDetail_20' ) end [2025-02-05 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:01:23] Production.INFO: ==30679== Releasing lock... [2025-02-05 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:01:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:02:05 [end_date_ymd] => 2025-02-05 03:02:05 [RateCDR] => 1 ) [2025-02-05 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:02:05' and `end` < '2025-02-05 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:02:18] Production.INFO: count ==319 [2025-02-05 03:02:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:02:05 - End Time 2025-02-05 03:02:05 [2025-02-05 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404813', 'tblTempUsageDetail_20' ) start [2025-02-05 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404813', 'tblTempUsageDetail_20' ) end [2025-02-05 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404813', 'tblTempVendorCDR_20' ) start [2025-02-05 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404813', 'tblTempVendorCDR_20' ) end [2025-02-05 03:02:18] Production.INFO: ProcessCDR(1,14404813,1,1,2) [2025-02-05 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404813', 'tblTempUsageDetail_20' ) start [2025-02-05 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404813', 'tblTempUsageDetail_20' ) end [2025-02-05 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:02:21] Production.INFO: ==30831== Releasing lock... [2025-02-05 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:03:06 [end_date_ymd] => 2025-02-05 03:03:06 [RateCDR] => 1 ) [2025-02-05 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:03:06' and `end` < '2025-02-05 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:03:19] Production.INFO: count ==319 [2025-02-05 03:03:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:03:06 - End Time 2025-02-05 03:03:06 [2025-02-05 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404818', 'tblTempUsageDetail_20' ) start [2025-02-05 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404818', 'tblTempUsageDetail_20' ) end [2025-02-05 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404818', 'tblTempVendorCDR_20' ) start [2025-02-05 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404818', 'tblTempVendorCDR_20' ) end [2025-02-05 03:03:19] Production.INFO: ProcessCDR(1,14404818,1,1,2) [2025-02-05 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404818', 'tblTempUsageDetail_20' ) start [2025-02-05 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404818', 'tblTempUsageDetail_20' ) end [2025-02-05 03:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:03:23] Production.INFO: ==30912== Releasing lock... [2025-02-05 03:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:03:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:04:05 [end_date_ymd] => 2025-02-05 03:04:05 [RateCDR] => 1 ) [2025-02-05 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:04:05' and `end` < '2025-02-05 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:04:19] Production.INFO: count ==319 [2025-02-05 03:04:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:04:05 - End Time 2025-02-05 03:04:05 [2025-02-05 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404823', 'tblTempUsageDetail_20' ) start [2025-02-05 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404823', 'tblTempUsageDetail_20' ) end [2025-02-05 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404823', 'tblTempVendorCDR_20' ) start [2025-02-05 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404823', 'tblTempVendorCDR_20' ) end [2025-02-05 03:04:19] Production.INFO: ProcessCDR(1,14404823,1,1,2) [2025-02-05 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404823', 'tblTempUsageDetail_20' ) start [2025-02-05 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404823', 'tblTempUsageDetail_20' ) end [2025-02-05 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:04:22] Production.INFO: ==31025== Releasing lock... [2025-02-05 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:04:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:05:06 [end_date_ymd] => 2025-02-05 03:05:06 [RateCDR] => 1 ) [2025-02-05 03:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:05:06' and `end` < '2025-02-05 03:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:05:19] Production.INFO: count ==319 [2025-02-05 03:05:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:05:06 - End Time 2025-02-05 03:05:06 [2025-02-05 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404828', 'tblTempUsageDetail_20' ) start [2025-02-05 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404828', 'tblTempUsageDetail_20' ) end [2025-02-05 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404828', 'tblTempVendorCDR_20' ) start [2025-02-05 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404828', 'tblTempVendorCDR_20' ) end [2025-02-05 03:05:19] Production.INFO: ProcessCDR(1,14404828,1,1,2) [2025-02-05 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404828', 'tblTempUsageDetail_20' ) start [2025-02-05 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404828', 'tblTempUsageDetail_20' ) end [2025-02-05 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:05:22] Production.INFO: ==31097== Releasing lock... [2025-02-05 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:05:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:06:06 [end_date_ymd] => 2025-02-05 03:06:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 00:06:06' and `end` < '2025-02-05 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-02-05 03:06:18] Production.INFO: count ==319 [2025-02-05 03:06:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:06:06 - End Time 2025-02-05 03:06:06 [2025-02-05 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404833', 'tblTempUsageDetail_20' ) start [2025-02-05 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404833', 'tblTempUsageDetail_20' ) end [2025-02-05 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404833', 'tblTempVendorCDR_20' ) start [2025-02-05 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404833', 'tblTempVendorCDR_20' ) end [2025-02-05 03:06:18] Production.INFO: ProcessCDR(1,14404833,1,1,2) [2025-02-05 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404833', 'tblTempUsageDetail_20' ) start [2025-02-05 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404833', 'tblTempUsageDetail_20' ) end [2025-02-05 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:06:22] Production.INFO: ==31245== Releasing lock... [2025-02-05 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:07:05 [end_date_ymd] => 2025-02-05 03:07:05 [RateCDR] => 1 ) [2025-02-05 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:07:05' and `end` < '2025-02-05 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:07:18] Production.INFO: count ==316 [2025-02-05 03:07:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:07:05 - End Time 2025-02-05 03:07:05 [2025-02-05 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404838', 'tblTempUsageDetail_20' ) start [2025-02-05 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404838', 'tblTempUsageDetail_20' ) end [2025-02-05 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404838', 'tblTempVendorCDR_20' ) start [2025-02-05 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404838', 'tblTempVendorCDR_20' ) end [2025-02-05 03:07:18] Production.INFO: ProcessCDR(1,14404838,1,1,2) [2025-02-05 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404838', 'tblTempUsageDetail_20' ) start [2025-02-05 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404838', 'tblTempUsageDetail_20' ) end [2025-02-05 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:07:21] Production.INFO: ==31316== Releasing lock... [2025-02-05 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:08:05 [end_date_ymd] => 2025-02-05 03:08:05 [RateCDR] => 1 ) [2025-02-05 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:08:05' and `end` < '2025-02-05 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:08:18] Production.INFO: count ==315 [2025-02-05 03:08:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:08:05 - End Time 2025-02-05 03:08:05 [2025-02-05 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404843', 'tblTempUsageDetail_20' ) start [2025-02-05 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404843', 'tblTempUsageDetail_20' ) end [2025-02-05 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404843', 'tblTempVendorCDR_20' ) start [2025-02-05 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404843', 'tblTempVendorCDR_20' ) end [2025-02-05 03:08:18] Production.INFO: ProcessCDR(1,14404843,1,1,2) [2025-02-05 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404843', 'tblTempUsageDetail_20' ) start [2025-02-05 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404843', 'tblTempUsageDetail_20' ) end [2025-02-05 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:08:21] Production.INFO: ==31394== Releasing lock... [2025-02-05 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:09:05 [end_date_ymd] => 2025-02-05 03:09:05 [RateCDR] => 1 ) [2025-02-05 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:09:05' and `end` < '2025-02-05 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:09:19] Production.INFO: count ==310 [2025-02-05 03:09:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:09:05 - End Time 2025-02-05 03:09:05 [2025-02-05 03:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404848', 'tblTempUsageDetail_20' ) start [2025-02-05 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404848', 'tblTempUsageDetail_20' ) end [2025-02-05 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404848', 'tblTempVendorCDR_20' ) start [2025-02-05 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404848', 'tblTempVendorCDR_20' ) end [2025-02-05 03:09:19] Production.INFO: ProcessCDR(1,14404848,1,1,2) [2025-02-05 03:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404848', 'tblTempUsageDetail_20' ) start [2025-02-05 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404848', 'tblTempUsageDetail_20' ) end [2025-02-05 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:09:22] Production.INFO: ==31545== Releasing lock... [2025-02-05 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:09:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:10:06 [end_date_ymd] => 2025-02-05 03:10:06 [RateCDR] => 1 ) [2025-02-05 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:10:06' and `end` < '2025-02-05 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:10:19] Production.INFO: count ==307 [2025-02-05 03:10:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:10:06 - End Time 2025-02-05 03:10:06 [2025-02-05 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404854', 'tblTempUsageDetail_20' ) start [2025-02-05 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404854', 'tblTempUsageDetail_20' ) end [2025-02-05 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404854', 'tblTempVendorCDR_20' ) start [2025-02-05 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404854', 'tblTempVendorCDR_20' ) end [2025-02-05 03:10:19] Production.INFO: ProcessCDR(1,14404854,1,1,2) [2025-02-05 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404854', 'tblTempUsageDetail_20' ) start [2025-02-05 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404854', 'tblTempUsageDetail_20' ) end [2025-02-05 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:10:22] Production.INFO: ==31627== Releasing lock... [2025-02-05 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:10:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:11:06 [end_date_ymd] => 2025-02-05 03:11:06 [RateCDR] => 1 ) [2025-02-05 03:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:11:06' and `end` < '2025-02-05 03:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:11:18] Production.INFO: count ==307 [2025-02-05 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:11:06 - End Time 2025-02-05 03:11:06 [2025-02-05 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404859', 'tblTempUsageDetail_20' ) start [2025-02-05 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404859', 'tblTempUsageDetail_20' ) end [2025-02-05 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404859', 'tblTempVendorCDR_20' ) start [2025-02-05 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404859', 'tblTempVendorCDR_20' ) end [2025-02-05 03:11:18] Production.INFO: ProcessCDR(1,14404859,1,1,2) [2025-02-05 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404859', 'tblTempUsageDetail_20' ) start [2025-02-05 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404859', 'tblTempUsageDetail_20' ) end [2025-02-05 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:11:22] Production.INFO: ==31705== Releasing lock... [2025-02-05 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:11:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:12:04 [end_date_ymd] => 2025-02-05 03:12:04 [RateCDR] => 1 ) [2025-02-05 03: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-02-05 00:12:04' and `end` < '2025-02-05 03: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-02-05 03:12:18] Production.INFO: count ==307 [2025-02-05 03:12:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:12:04 - End Time 2025-02-05 03:12:04 [2025-02-05 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404864', 'tblTempUsageDetail_20' ) start [2025-02-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404864', 'tblTempUsageDetail_20' ) end [2025-02-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404864', 'tblTempVendorCDR_20' ) start [2025-02-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404864', 'tblTempVendorCDR_20' ) end [2025-02-05 03:12:18] Production.INFO: ProcessCDR(1,14404864,1,1,2) [2025-02-05 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404864', 'tblTempUsageDetail_20' ) start [2025-02-05 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404864', 'tblTempUsageDetail_20' ) end [2025-02-05 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:12:21] Production.INFO: ==31779== Releasing lock... [2025-02-05 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:13:05 [end_date_ymd] => 2025-02-05 03:13:05 [RateCDR] => 1 ) [2025-02-05 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:13:05' and `end` < '2025-02-05 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:13:19] Production.INFO: count ==307 [2025-02-05 03:13:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:13:05 - End Time 2025-02-05 03:13:05 [2025-02-05 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404869', 'tblTempUsageDetail_20' ) start [2025-02-05 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404869', 'tblTempUsageDetail_20' ) end [2025-02-05 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404869', 'tblTempVendorCDR_20' ) start [2025-02-05 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404869', 'tblTempVendorCDR_20' ) end [2025-02-05 03:13:19] Production.INFO: ProcessCDR(1,14404869,1,1,2) [2025-02-05 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404869', 'tblTempUsageDetail_20' ) start [2025-02-05 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404869', 'tblTempUsageDetail_20' ) end [2025-02-05 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:13:22] Production.INFO: ==31930== Releasing lock... [2025-02-05 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:13:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:14:05 [end_date_ymd] => 2025-02-05 03:14:05 [RateCDR] => 1 ) [2025-02-05 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:14:05' and `end` < '2025-02-05 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:14:17] Production.INFO: count ==307 [2025-02-05 03:14:17] Production.ERROR: pbx CDR StartTime 2025-02-05 00:14:05 - End Time 2025-02-05 03:14:05 [2025-02-05 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404874', 'tblTempUsageDetail_20' ) start [2025-02-05 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404874', 'tblTempUsageDetail_20' ) end [2025-02-05 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404874', 'tblTempVendorCDR_20' ) start [2025-02-05 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404874', 'tblTempVendorCDR_20' ) end [2025-02-05 03:14:17] Production.INFO: ProcessCDR(1,14404874,1,1,2) [2025-02-05 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404874', 'tblTempUsageDetail_20' ) start [2025-02-05 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404874', 'tblTempUsageDetail_20' ) end [2025-02-05 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:14:21] Production.INFO: ==32008== Releasing lock... [2025-02-05 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:15:05 [end_date_ymd] => 2025-02-05 03:15:05 [RateCDR] => 1 ) [2025-02-05 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:15:05' and `end` < '2025-02-05 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:15:19] Production.INFO: count ==304 [2025-02-05 03:15:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:15:05 - End Time 2025-02-05 03:15:05 [2025-02-05 03:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404879', 'tblTempUsageDetail_20' ) start [2025-02-05 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404879', 'tblTempUsageDetail_20' ) end [2025-02-05 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404879', 'tblTempVendorCDR_20' ) start [2025-02-05 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404879', 'tblTempVendorCDR_20' ) end [2025-02-05 03:15:19] Production.INFO: ProcessCDR(1,14404879,1,1,2) [2025-02-05 03:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404879', 'tblTempUsageDetail_20' ) start [2025-02-05 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404879', 'tblTempUsageDetail_20' ) end [2025-02-05 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:15:22] Production.INFO: ==32080== Releasing lock... [2025-02-05 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:16:06 [end_date_ymd] => 2025-02-05 03:16:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 00:16:06' and `end` < '2025-02-05 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-02-05 03:16:20] Production.INFO: count ==304 [2025-02-05 03:16:20] Production.ERROR: pbx CDR StartTime 2025-02-05 00:16:06 - End Time 2025-02-05 03:16:06 [2025-02-05 03:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404884', 'tblTempUsageDetail_20' ) start [2025-02-05 03:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404884', 'tblTempUsageDetail_20' ) end [2025-02-05 03:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404884', 'tblTempVendorCDR_20' ) start [2025-02-05 03:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404884', 'tblTempVendorCDR_20' ) end [2025-02-05 03:16:20] Production.INFO: ProcessCDR(1,14404884,1,1,2) [2025-02-05 03:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404884', 'tblTempUsageDetail_20' ) start [2025-02-05 03:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404884', 'tblTempUsageDetail_20' ) end [2025-02-05 03:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:16:23] Production.INFO: ==32153== Releasing lock... [2025-02-05 03:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:16:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:17:05 [end_date_ymd] => 2025-02-05 03:17:05 [RateCDR] => 1 ) [2025-02-05 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:17:05' and `end` < '2025-02-05 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:17:18] Production.INFO: count ==303 [2025-02-05 03:17:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:17:05 - End Time 2025-02-05 03:17:05 [2025-02-05 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404889', 'tblTempUsageDetail_20' ) start [2025-02-05 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404889', 'tblTempUsageDetail_20' ) end [2025-02-05 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404889', 'tblTempVendorCDR_20' ) start [2025-02-05 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404889', 'tblTempVendorCDR_20' ) end [2025-02-05 03:17:18] Production.INFO: ProcessCDR(1,14404889,1,1,2) [2025-02-05 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404889', 'tblTempUsageDetail_20' ) start [2025-02-05 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404889', 'tblTempUsageDetail_20' ) end [2025-02-05 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:17:22] Production.INFO: ==32303== Releasing lock... [2025-02-05 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:17:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:18:05 [end_date_ymd] => 2025-02-05 03:18:05 [RateCDR] => 1 ) [2025-02-05 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:18:05' and `end` < '2025-02-05 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:18:18] Production.INFO: count ==303 [2025-02-05 03:18:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:18:05 - End Time 2025-02-05 03:18:05 [2025-02-05 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404894', 'tblTempUsageDetail_20' ) start [2025-02-05 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404894', 'tblTempUsageDetail_20' ) end [2025-02-05 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404894', 'tblTempVendorCDR_20' ) start [2025-02-05 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404894', 'tblTempVendorCDR_20' ) end [2025-02-05 03:18:18] Production.INFO: ProcessCDR(1,14404894,1,1,2) [2025-02-05 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404894', 'tblTempUsageDetail_20' ) start [2025-02-05 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404894', 'tblTempUsageDetail_20' ) end [2025-02-05 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:18:21] Production.INFO: ==32382== Releasing lock... [2025-02-05 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:19:05 [end_date_ymd] => 2025-02-05 03:19:05 [RateCDR] => 1 ) [2025-02-05 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:19:05' and `end` < '2025-02-05 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:19:18] Production.INFO: count ==303 [2025-02-05 03:19:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:19:05 - End Time 2025-02-05 03:19:05 [2025-02-05 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404899', 'tblTempUsageDetail_20' ) start [2025-02-05 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404899', 'tblTempUsageDetail_20' ) end [2025-02-05 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404899', 'tblTempVendorCDR_20' ) start [2025-02-05 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404899', 'tblTempVendorCDR_20' ) end [2025-02-05 03:19:18] Production.INFO: ProcessCDR(1,14404899,1,1,2) [2025-02-05 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404899', 'tblTempUsageDetail_20' ) start [2025-02-05 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404899', 'tblTempUsageDetail_20' ) end [2025-02-05 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:19:22] Production.INFO: ==32457== Releasing lock... [2025-02-05 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:19:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:20:06 [end_date_ymd] => 2025-02-05 03:20:06 [RateCDR] => 1 ) [2025-02-05 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:20:06' and `end` < '2025-02-05 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:20:19] Production.INFO: count ==304 [2025-02-05 03:20:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:20:06 - End Time 2025-02-05 03:20:06 [2025-02-05 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404905', 'tblTempUsageDetail_20' ) start [2025-02-05 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404905', 'tblTempUsageDetail_20' ) end [2025-02-05 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404905', 'tblTempVendorCDR_20' ) start [2025-02-05 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404905', 'tblTempVendorCDR_20' ) end [2025-02-05 03:20:19] Production.INFO: ProcessCDR(1,14404905,1,1,2) [2025-02-05 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404905', 'tblTempUsageDetail_20' ) start [2025-02-05 03:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404905', 'tblTempUsageDetail_20' ) end [2025-02-05 03:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:20:24] Production.INFO: ==32532== Releasing lock... [2025-02-05 03:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:20:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:21:05 [end_date_ymd] => 2025-02-05 03:21:05 [RateCDR] => 1 ) [2025-02-05 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:21:05' and `end` < '2025-02-05 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:21:18] Production.INFO: count ==300 [2025-02-05 03:21:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:21:05 - End Time 2025-02-05 03:21:05 [2025-02-05 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404910', 'tblTempUsageDetail_20' ) start [2025-02-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404910', 'tblTempUsageDetail_20' ) end [2025-02-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404910', 'tblTempVendorCDR_20' ) start [2025-02-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404910', 'tblTempVendorCDR_20' ) end [2025-02-05 03:21:18] Production.INFO: ProcessCDR(1,14404910,1,1,2) [2025-02-05 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404910', 'tblTempUsageDetail_20' ) start [2025-02-05 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404910', 'tblTempUsageDetail_20' ) end [2025-02-05 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:21:21] Production.INFO: ==32646== Releasing lock... [2025-02-05 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:22:06 [end_date_ymd] => 2025-02-05 03:22:06 [RateCDR] => 1 ) [2025-02-05 03:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:22:06' and `end` < '2025-02-05 03:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:22:20] Production.INFO: count ==300 [2025-02-05 03:22:20] Production.ERROR: pbx CDR StartTime 2025-02-05 00:22:06 - End Time 2025-02-05 03:22:06 [2025-02-05 03:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404915', 'tblTempUsageDetail_20' ) start [2025-02-05 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404915', 'tblTempUsageDetail_20' ) end [2025-02-05 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404915', 'tblTempVendorCDR_20' ) start [2025-02-05 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404915', 'tblTempVendorCDR_20' ) end [2025-02-05 03:22:20] Production.INFO: ProcessCDR(1,14404915,1,1,2) [2025-02-05 03:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404915', 'tblTempUsageDetail_20' ) start [2025-02-05 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404915', 'tblTempUsageDetail_20' ) end [2025-02-05 03:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:22:23] Production.INFO: ==32719== Releasing lock... [2025-02-05 03:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:22:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:23:05 [end_date_ymd] => 2025-02-05 03:23:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 00:23:05' and `end` < '2025-02-05 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-02-05 03:23:18] Production.INFO: count ==298 [2025-02-05 03:23:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:23:05 - End Time 2025-02-05 03:23:05 [2025-02-05 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404920', 'tblTempUsageDetail_20' ) start [2025-02-05 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404920', 'tblTempUsageDetail_20' ) end [2025-02-05 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404920', 'tblTempVendorCDR_20' ) start [2025-02-05 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404920', 'tblTempVendorCDR_20' ) end [2025-02-05 03:23:18] Production.INFO: ProcessCDR(1,14404920,1,1,2) [2025-02-05 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404920', 'tblTempUsageDetail_20' ) start [2025-02-05 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404920', 'tblTempUsageDetail_20' ) end [2025-02-05 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:23:21] Production.INFO: ==360== Releasing lock... [2025-02-05 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:24:05 [end_date_ymd] => 2025-02-05 03:24:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 00:24:05' and `end` < '2025-02-05 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-02-05 03:24:18] Production.INFO: count ==297 [2025-02-05 03:24:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:24:05 - End Time 2025-02-05 03:24:05 [2025-02-05 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404925', 'tblTempUsageDetail_20' ) start [2025-02-05 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404925', 'tblTempUsageDetail_20' ) end [2025-02-05 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404925', 'tblTempVendorCDR_20' ) start [2025-02-05 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404925', 'tblTempVendorCDR_20' ) end [2025-02-05 03:24:18] Production.INFO: ProcessCDR(1,14404925,1,1,2) [2025-02-05 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404925', 'tblTempUsageDetail_20' ) start [2025-02-05 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404925', 'tblTempUsageDetail_20' ) end [2025-02-05 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:24:21] Production.INFO: ==466== Releasing lock... [2025-02-05 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:25:05 [end_date_ymd] => 2025-02-05 03:25:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 00:25:05' and `end` < '2025-02-05 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-02-05 03:25:18] Production.INFO: count ==298 [2025-02-05 03:25:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:25:05 - End Time 2025-02-05 03:25:05 [2025-02-05 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404930', 'tblTempUsageDetail_20' ) start [2025-02-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404930', 'tblTempUsageDetail_20' ) end [2025-02-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404930', 'tblTempVendorCDR_20' ) start [2025-02-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404930', 'tblTempVendorCDR_20' ) end [2025-02-05 03:25:18] Production.INFO: ProcessCDR(1,14404930,1,1,2) [2025-02-05 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404930', 'tblTempUsageDetail_20' ) start [2025-02-05 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404930', 'tblTempUsageDetail_20' ) end [2025-02-05 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:25:23] Production.INFO: ==545== Releasing lock... [2025-02-05 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:25:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:26:05 [end_date_ymd] => 2025-02-05 03:26:05 [RateCDR] => 1 ) [2025-02-05 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:26:05' and `end` < '2025-02-05 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:26:19] Production.INFO: count ==298 [2025-02-05 03:26:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:26:05 - End Time 2025-02-05 03:26:05 [2025-02-05 03:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404935', 'tblTempUsageDetail_20' ) start [2025-02-05 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404935', 'tblTempUsageDetail_20' ) end [2025-02-05 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404935', 'tblTempVendorCDR_20' ) start [2025-02-05 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404935', 'tblTempVendorCDR_20' ) end [2025-02-05 03:26:19] Production.INFO: ProcessCDR(1,14404935,1,1,2) [2025-02-05 03:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404935', 'tblTempUsageDetail_20' ) start [2025-02-05 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404935', 'tblTempUsageDetail_20' ) end [2025-02-05 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:26:22] Production.INFO: ==628== Releasing lock... [2025-02-05 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:26:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:27:06 [end_date_ymd] => 2025-02-05 03:27:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 00:27:06' and `end` < '2025-02-05 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-02-05 03:27:19] Production.INFO: count ==298 [2025-02-05 03:27:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:27:06 - End Time 2025-02-05 03:27:06 [2025-02-05 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404940', 'tblTempUsageDetail_20' ) start [2025-02-05 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404940', 'tblTempUsageDetail_20' ) end [2025-02-05 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404940', 'tblTempVendorCDR_20' ) start [2025-02-05 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404940', 'tblTempVendorCDR_20' ) end [2025-02-05 03:27:19] Production.INFO: ProcessCDR(1,14404940,1,1,2) [2025-02-05 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404940', 'tblTempUsageDetail_20' ) start [2025-02-05 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404940', 'tblTempUsageDetail_20' ) end [2025-02-05 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:27:22] Production.INFO: ==727== Releasing lock... [2025-02-05 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:27:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:28:05 [end_date_ymd] => 2025-02-05 03:28:05 [RateCDR] => 1 ) [2025-02-05 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:28:05' and `end` < '2025-02-05 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:28:18] Production.INFO: count ==298 [2025-02-05 03:28:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:28:05 - End Time 2025-02-05 03:28:05 [2025-02-05 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404945', 'tblTempUsageDetail_20' ) start [2025-02-05 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404945', 'tblTempUsageDetail_20' ) end [2025-02-05 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404945', 'tblTempVendorCDR_20' ) start [2025-02-05 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404945', 'tblTempVendorCDR_20' ) end [2025-02-05 03:28:18] Production.INFO: ProcessCDR(1,14404945,1,1,2) [2025-02-05 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404945', 'tblTempUsageDetail_20' ) start [2025-02-05 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404945', 'tblTempUsageDetail_20' ) end [2025-02-05 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:28:21] Production.INFO: ==804== Releasing lock... [2025-02-05 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:29:06 [end_date_ymd] => 2025-02-05 03:29:06 [RateCDR] => 1 ) [2025-02-05 03:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:29:06' and `end` < '2025-02-05 03:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:29:20] Production.INFO: count ==298 [2025-02-05 03:29:20] Production.ERROR: pbx CDR StartTime 2025-02-05 00:29:06 - End Time 2025-02-05 03:29:06 [2025-02-05 03:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404950', 'tblTempUsageDetail_20' ) start [2025-02-05 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404950', 'tblTempUsageDetail_20' ) end [2025-02-05 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404950', 'tblTempVendorCDR_20' ) start [2025-02-05 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404950', 'tblTempVendorCDR_20' ) end [2025-02-05 03:29:20] Production.INFO: ProcessCDR(1,14404950,1,1,2) [2025-02-05 03:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404950', 'tblTempUsageDetail_20' ) start [2025-02-05 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404950', 'tblTempUsageDetail_20' ) end [2025-02-05 03:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:29:23] Production.INFO: ==884== Releasing lock... [2025-02-05 03:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:29:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:30:06 [end_date_ymd] => 2025-02-05 03:30:06 [RateCDR] => 1 ) [2025-02-05 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:30:06' and `end` < '2025-02-05 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:30:19] Production.INFO: count ==296 [2025-02-05 03:30:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:30:06 - End Time 2025-02-05 03:30:06 [2025-02-05 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404955', 'tblTempUsageDetail_20' ) start [2025-02-05 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404955', 'tblTempUsageDetail_20' ) end [2025-02-05 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404955', 'tblTempVendorCDR_20' ) start [2025-02-05 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404955', 'tblTempVendorCDR_20' ) end [2025-02-05 03:30:19] Production.INFO: ProcessCDR(1,14404955,1,1,2) [2025-02-05 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404955', 'tblTempUsageDetail_20' ) start [2025-02-05 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404955', 'tblTempUsageDetail_20' ) end [2025-02-05 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:30:22] Production.INFO: ==983== Releasing lock... [2025-02-05 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 03:31:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:31:07 [end_date_ymd] => 2025-02-05 03:31:07 [RateCDR] => 1 ) [2025-02-05 03:31:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:31:07' and `end` < '2025-02-05 03:31:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:31:20] Production.INFO: count ==288 [2025-02-05 03:31:20] Production.ERROR: pbx CDR StartTime 2025-02-05 00:31:07 - End Time 2025-02-05 03:31:07 [2025-02-05 03:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404961', 'tblTempUsageDetail_20' ) start [2025-02-05 03:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404961', 'tblTempUsageDetail_20' ) end [2025-02-05 03:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404961', 'tblTempVendorCDR_20' ) start [2025-02-05 03:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404961', 'tblTempVendorCDR_20' ) end [2025-02-05 03:31:20] Production.INFO: ProcessCDR(1,14404961,1,1,2) [2025-02-05 03:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404961', 'tblTempUsageDetail_20' ) start [2025-02-05 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404961', 'tblTempUsageDetail_20' ) end [2025-02-05 03:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:31:23] Production.INFO: ==1069== Releasing lock... [2025-02-05 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:31:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:32:05 [end_date_ymd] => 2025-02-05 03:32:05 [RateCDR] => 1 ) [2025-02-05 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:32:05' and `end` < '2025-02-05 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:32:18] Production.INFO: count ==288 [2025-02-05 03:32:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:32:05 - End Time 2025-02-05 03:32:05 [2025-02-05 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404966', 'tblTempUsageDetail_20' ) start [2025-02-05 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404966', 'tblTempUsageDetail_20' ) end [2025-02-05 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404966', 'tblTempVendorCDR_20' ) start [2025-02-05 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404966', 'tblTempVendorCDR_20' ) end [2025-02-05 03:32:18] Production.INFO: ProcessCDR(1,14404966,1,1,2) [2025-02-05 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404966', 'tblTempUsageDetail_20' ) start [2025-02-05 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404966', 'tblTempUsageDetail_20' ) end [2025-02-05 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:32:22] Production.INFO: ==1159== Releasing lock... [2025-02-05 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:33:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:33:07 [end_date_ymd] => 2025-02-05 03:33:07 [RateCDR] => 1 ) [2025-02-05 03:33:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:33:07' and `end` < '2025-02-05 03:33:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:33:20] Production.INFO: count ==288 [2025-02-05 03:33:20] Production.ERROR: pbx CDR StartTime 2025-02-05 00:33:07 - End Time 2025-02-05 03:33:07 [2025-02-05 03:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404971', 'tblTempUsageDetail_20' ) start [2025-02-05 03:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404971', 'tblTempUsageDetail_20' ) end [2025-02-05 03:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404971', 'tblTempVendorCDR_20' ) start [2025-02-05 03:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404971', 'tblTempVendorCDR_20' ) end [2025-02-05 03:33:20] Production.INFO: ProcessCDR(1,14404971,1,1,2) [2025-02-05 03:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404971', 'tblTempUsageDetail_20' ) start [2025-02-05 03:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404971', 'tblTempUsageDetail_20' ) end [2025-02-05 03:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:33:24] Production.INFO: ==1270== Releasing lock... [2025-02-05 03:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:33:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:34:05 [end_date_ymd] => 2025-02-05 03:34:05 [RateCDR] => 1 ) [2025-02-05 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:34:05' and `end` < '2025-02-05 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:34:19] Production.INFO: count ==288 [2025-02-05 03:34:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:34:05 - End Time 2025-02-05 03:34:05 [2025-02-05 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404976', 'tblTempUsageDetail_20' ) start [2025-02-05 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404976', 'tblTempUsageDetail_20' ) end [2025-02-05 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404976', 'tblTempVendorCDR_20' ) start [2025-02-05 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404976', 'tblTempVendorCDR_20' ) end [2025-02-05 03:34:19] Production.INFO: ProcessCDR(1,14404976,1,1,2) [2025-02-05 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404976', 'tblTempUsageDetail_20' ) start [2025-02-05 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404976', 'tblTempUsageDetail_20' ) end [2025-02-05 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:34:22] Production.INFO: ==1363== Releasing lock... [2025-02-05 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:34:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:35:05 [end_date_ymd] => 2025-02-05 03:35:05 [RateCDR] => 1 ) [2025-02-05 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:35:05' and `end` < '2025-02-05 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:35:18] Production.INFO: count ==285 [2025-02-05 03:35:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:35:05 - End Time 2025-02-05 03:35:05 [2025-02-05 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404981', 'tblTempUsageDetail_20' ) start [2025-02-05 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404981', 'tblTempUsageDetail_20' ) end [2025-02-05 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404981', 'tblTempVendorCDR_20' ) start [2025-02-05 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404981', 'tblTempVendorCDR_20' ) end [2025-02-05 03:35:18] Production.INFO: ProcessCDR(1,14404981,1,1,2) [2025-02-05 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404981', 'tblTempUsageDetail_20' ) start [2025-02-05 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404981', 'tblTempUsageDetail_20' ) end [2025-02-05 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:35:22] Production.INFO: ==1453== Releasing lock... [2025-02-05 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:35:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:36:06 [end_date_ymd] => 2025-02-05 03:36:06 [RateCDR] => 1 ) [2025-02-05 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:36:06' and `end` < '2025-02-05 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:36:18] Production.INFO: count ==285 [2025-02-05 03:36:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:36:06 - End Time 2025-02-05 03:36:06 [2025-02-05 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404986', 'tblTempUsageDetail_20' ) start [2025-02-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404986', 'tblTempUsageDetail_20' ) end [2025-02-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404986', 'tblTempVendorCDR_20' ) start [2025-02-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404986', 'tblTempVendorCDR_20' ) end [2025-02-05 03:36:18] Production.INFO: ProcessCDR(1,14404986,1,1,2) [2025-02-05 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404986', 'tblTempUsageDetail_20' ) start [2025-02-05 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404986', 'tblTempUsageDetail_20' ) end [2025-02-05 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:36:22] Production.INFO: ==1616== Releasing lock... [2025-02-05 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:37:06 [end_date_ymd] => 2025-02-05 03:37:06 [RateCDR] => 1 ) [2025-02-05 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:37:06' and `end` < '2025-02-05 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:37:19] Production.INFO: count ==285 [2025-02-05 03:37:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:37:06 - End Time 2025-02-05 03:37:06 [2025-02-05 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404991', 'tblTempUsageDetail_20' ) start [2025-02-05 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404991', 'tblTempUsageDetail_20' ) end [2025-02-05 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404991', 'tblTempVendorCDR_20' ) start [2025-02-05 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404991', 'tblTempVendorCDR_20' ) end [2025-02-05 03:37:19] Production.INFO: ProcessCDR(1,14404991,1,1,2) [2025-02-05 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404991', 'tblTempUsageDetail_20' ) start [2025-02-05 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404991', 'tblTempUsageDetail_20' ) end [2025-02-05 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:37:22] Production.INFO: ==1716== Releasing lock... [2025-02-05 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:37:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:38:05 [end_date_ymd] => 2025-02-05 03:38:05 [RateCDR] => 1 ) [2025-02-05 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:38:05' and `end` < '2025-02-05 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:38:18] Production.INFO: count ==285 [2025-02-05 03:38:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:38:05 - End Time 2025-02-05 03:38:05 [2025-02-05 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404996', 'tblTempUsageDetail_20' ) start [2025-02-05 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14404996', 'tblTempUsageDetail_20' ) end [2025-02-05 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404996', 'tblTempVendorCDR_20' ) start [2025-02-05 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14404996', 'tblTempVendorCDR_20' ) end [2025-02-05 03:38:18] Production.INFO: ProcessCDR(1,14404996,1,1,2) [2025-02-05 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14404996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14404996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14404996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14404996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404996', 'tblTempUsageDetail_20' ) start [2025-02-05 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14404996', 'tblTempUsageDetail_20' ) end [2025-02-05 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:38:23] Production.INFO: ==1807== Releasing lock... [2025-02-05 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:38:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:39:06 [end_date_ymd] => 2025-02-05 03:39:06 [RateCDR] => 1 ) [2025-02-05 03:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:39:06' and `end` < '2025-02-05 03:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:39:19] Production.INFO: count ==284 [2025-02-05 03:39:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:39:06 - End Time 2025-02-05 03:39:06 [2025-02-05 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405001', 'tblTempUsageDetail_20' ) start [2025-02-05 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405001', 'tblTempUsageDetail_20' ) end [2025-02-05 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405001', 'tblTempVendorCDR_20' ) start [2025-02-05 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405001', 'tblTempVendorCDR_20' ) end [2025-02-05 03:39:19] Production.INFO: ProcessCDR(1,14405001,1,1,2) [2025-02-05 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405001', 'tblTempUsageDetail_20' ) start [2025-02-05 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405001', 'tblTempUsageDetail_20' ) end [2025-02-05 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:39:22] Production.INFO: ==1916== Releasing lock... [2025-02-05 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:39:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:40:07 [end_date_ymd] => 2025-02-05 03:40:07 [RateCDR] => 1 ) [2025-02-05 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:40:07' and `end` < '2025-02-05 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:40:19] Production.INFO: count ==285 [2025-02-05 03:40:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:40:07 - End Time 2025-02-05 03:40:07 [2025-02-05 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405007', 'tblTempUsageDetail_20' ) start [2025-02-05 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405007', 'tblTempUsageDetail_20' ) end [2025-02-05 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405007', 'tblTempVendorCDR_20' ) start [2025-02-05 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405007', 'tblTempVendorCDR_20' ) end [2025-02-05 03:40:19] Production.INFO: ProcessCDR(1,14405007,1,1,2) [2025-02-05 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405007', 'tblTempUsageDetail_20' ) start [2025-02-05 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405007', 'tblTempUsageDetail_20' ) end [2025-02-05 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:40:23] Production.INFO: ==2035== Releasing lock... [2025-02-05 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:40:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:41:06 [end_date_ymd] => 2025-02-05 03:41:06 [RateCDR] => 1 ) [2025-02-05 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:41:06' and `end` < '2025-02-05 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:41:20] Production.INFO: count ==273 [2025-02-05 03:41:20] Production.ERROR: pbx CDR StartTime 2025-02-05 00:41:06 - End Time 2025-02-05 03:41:06 [2025-02-05 03:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405012', 'tblTempUsageDetail_20' ) start [2025-02-05 03:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405012', 'tblTempUsageDetail_20' ) end [2025-02-05 03:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405012', 'tblTempVendorCDR_20' ) start [2025-02-05 03:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405012', 'tblTempVendorCDR_20' ) end [2025-02-05 03:41:20] Production.INFO: ProcessCDR(1,14405012,1,1,2) [2025-02-05 03:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405012', 'tblTempUsageDetail_20' ) start [2025-02-05 03:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405012', 'tblTempUsageDetail_20' ) end [2025-02-05 03:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:41:24] Production.INFO: ==2137== Releasing lock... [2025-02-05 03:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:41:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:42:05 [end_date_ymd] => 2025-02-05 03:42:05 [RateCDR] => 1 ) [2025-02-05 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:42:05' and `end` < '2025-02-05 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:42:18] Production.INFO: count ==273 [2025-02-05 03:42:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:42:05 - End Time 2025-02-05 03:42:05 [2025-02-05 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405017', 'tblTempUsageDetail_20' ) start [2025-02-05 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405017', 'tblTempUsageDetail_20' ) end [2025-02-05 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405017', 'tblTempVendorCDR_20' ) start [2025-02-05 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405017', 'tblTempVendorCDR_20' ) end [2025-02-05 03:42:18] Production.INFO: ProcessCDR(1,14405017,1,1,2) [2025-02-05 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405017', 'tblTempUsageDetail_20' ) start [2025-02-05 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405017', 'tblTempUsageDetail_20' ) end [2025-02-05 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:42:22] Production.INFO: ==2238== Releasing lock... [2025-02-05 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:42:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:43:05 [end_date_ymd] => 2025-02-05 03:43:05 [RateCDR] => 1 ) [2025-02-05 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:43:05' and `end` < '2025-02-05 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:43:18] Production.INFO: count ==274 [2025-02-05 03:43:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:43:05 - End Time 2025-02-05 03:43:05 [2025-02-05 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405021', 'tblTempUsageDetail_20' ) start [2025-02-05 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405021', 'tblTempUsageDetail_20' ) end [2025-02-05 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405021', 'tblTempVendorCDR_20' ) start [2025-02-05 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405021', 'tblTempVendorCDR_20' ) end [2025-02-05 03:43:19] Production.INFO: ProcessCDR(1,14405021,1,1,2) [2025-02-05 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405021', 'tblTempUsageDetail_20' ) start [2025-02-05 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405021', 'tblTempUsageDetail_20' ) end [2025-02-05 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:43:22] Production.INFO: ==2359== Releasing lock... [2025-02-05 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:43:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:44:05 [end_date_ymd] => 2025-02-05 03:44:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 00:44:05' and `end` < '2025-02-05 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-02-05 03:44:18] Production.INFO: count ==274 [2025-02-05 03:44:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:44:05 - End Time 2025-02-05 03:44:05 [2025-02-05 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405027', 'tblTempUsageDetail_20' ) start [2025-02-05 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405027', 'tblTempUsageDetail_20' ) end [2025-02-05 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405027', 'tblTempVendorCDR_20' ) start [2025-02-05 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405027', 'tblTempVendorCDR_20' ) end [2025-02-05 03:44:18] Production.INFO: ProcessCDR(1,14405027,1,1,2) [2025-02-05 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405027', 'tblTempUsageDetail_20' ) start [2025-02-05 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405027', 'tblTempUsageDetail_20' ) end [2025-02-05 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:44:22] Production.INFO: ==2452== Releasing lock... [2025-02-05 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:45:06 [end_date_ymd] => 2025-02-05 03:45:06 [RateCDR] => 1 ) [2025-02-05 03:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:45:06' and `end` < '2025-02-05 03:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:45:18] Production.INFO: count ==274 [2025-02-05 03:45:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:45:06 - End Time 2025-02-05 03:45:06 [2025-02-05 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405032', 'tblTempUsageDetail_20' ) start [2025-02-05 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405032', 'tblTempUsageDetail_20' ) end [2025-02-05 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405032', 'tblTempVendorCDR_20' ) start [2025-02-05 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405032', 'tblTempVendorCDR_20' ) end [2025-02-05 03:45:19] Production.INFO: ProcessCDR(1,14405032,1,1,2) [2025-02-05 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405032', 'tblTempUsageDetail_20' ) start [2025-02-05 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405032', 'tblTempUsageDetail_20' ) end [2025-02-05 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:45:22] Production.INFO: ==2568== Releasing lock... [2025-02-05 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:45:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:46:05 [end_date_ymd] => 2025-02-05 03:46:05 [RateCDR] => 1 ) [2025-02-05 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:46:05' and `end` < '2025-02-05 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:46:18] Production.INFO: count ==274 [2025-02-05 03:46:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:46:05 - End Time 2025-02-05 03:46:05 [2025-02-05 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405037', 'tblTempUsageDetail_20' ) start [2025-02-05 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405037', 'tblTempUsageDetail_20' ) end [2025-02-05 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405037', 'tblTempVendorCDR_20' ) start [2025-02-05 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405037', 'tblTempVendorCDR_20' ) end [2025-02-05 03:46:18] Production.INFO: ProcessCDR(1,14405037,1,1,2) [2025-02-05 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405037', 'tblTempUsageDetail_20' ) start [2025-02-05 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405037', 'tblTempUsageDetail_20' ) end [2025-02-05 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:46:21] Production.INFO: ==2673== Releasing lock... [2025-02-05 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:47:06 [end_date_ymd] => 2025-02-05 03:47:06 [RateCDR] => 1 ) [2025-02-05 03:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:47:06' and `end` < '2025-02-05 03:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:47:19] Production.INFO: count ==274 [2025-02-05 03:47:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:47:06 - End Time 2025-02-05 03:47:06 [2025-02-05 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405042', 'tblTempUsageDetail_20' ) start [2025-02-05 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405042', 'tblTempUsageDetail_20' ) end [2025-02-05 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405042', 'tblTempVendorCDR_20' ) start [2025-02-05 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405042', 'tblTempVendorCDR_20' ) end [2025-02-05 03:47:19] Production.INFO: ProcessCDR(1,14405042,1,1,2) [2025-02-05 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405042', 'tblTempUsageDetail_20' ) start [2025-02-05 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405042', 'tblTempUsageDetail_20' ) end [2025-02-05 03:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:47:23] Production.INFO: ==2780== Releasing lock... [2025-02-05 03:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:47:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:48:05 [end_date_ymd] => 2025-02-05 03:48:05 [RateCDR] => 1 ) [2025-02-05 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:48:05' and `end` < '2025-02-05 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:48:18] Production.INFO: count ==274 [2025-02-05 03:48:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:48:05 - End Time 2025-02-05 03:48:05 [2025-02-05 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405047', 'tblTempUsageDetail_20' ) start [2025-02-05 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405047', 'tblTempUsageDetail_20' ) end [2025-02-05 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405047', 'tblTempVendorCDR_20' ) start [2025-02-05 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405047', 'tblTempVendorCDR_20' ) end [2025-02-05 03:48:18] Production.INFO: ProcessCDR(1,14405047,1,1,2) [2025-02-05 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405047', 'tblTempUsageDetail_20' ) start [2025-02-05 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405047', 'tblTempUsageDetail_20' ) end [2025-02-05 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:48:21] Production.INFO: ==2887== Releasing lock... [2025-02-05 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:49:06 [end_date_ymd] => 2025-02-05 03:49:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 00:49:06' and `end` < '2025-02-05 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-02-05 03:49:18] Production.INFO: count ==273 [2025-02-05 03:49:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:49:06 - End Time 2025-02-05 03:49:06 [2025-02-05 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405052', 'tblTempUsageDetail_20' ) start [2025-02-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405052', 'tblTempUsageDetail_20' ) end [2025-02-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405052', 'tblTempVendorCDR_20' ) start [2025-02-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405052', 'tblTempVendorCDR_20' ) end [2025-02-05 03:49:18] Production.INFO: ProcessCDR(1,14405052,1,1,2) [2025-02-05 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405052', 'tblTempUsageDetail_20' ) start [2025-02-05 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405052', 'tblTempUsageDetail_20' ) end [2025-02-05 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:49:22] Production.INFO: ==2990== Releasing lock... [2025-02-05 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:50:06 [end_date_ymd] => 2025-02-05 03:50:06 [RateCDR] => 1 ) [2025-02-05 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:50:06' and `end` < '2025-02-05 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:50:19] Production.INFO: count ==269 [2025-02-05 03:50:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:50:06 - End Time 2025-02-05 03:50:06 [2025-02-05 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405058', 'tblTempUsageDetail_20' ) start [2025-02-05 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405058', 'tblTempUsageDetail_20' ) end [2025-02-05 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405058', 'tblTempVendorCDR_20' ) start [2025-02-05 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405058', 'tblTempVendorCDR_20' ) end [2025-02-05 03:50:19] Production.INFO: ProcessCDR(1,14405058,1,1,2) [2025-02-05 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405058', 'tblTempUsageDetail_20' ) start [2025-02-05 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405058', 'tblTempUsageDetail_20' ) end [2025-02-05 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:50:22] Production.INFO: ==3090== Releasing lock... [2025-02-05 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:51:05 [end_date_ymd] => 2025-02-05 03:51:05 [RateCDR] => 1 ) [2025-02-05 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:51:05' and `end` < '2025-02-05 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:51:19] Production.INFO: count ==253 [2025-02-05 03:51:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:51:05 - End Time 2025-02-05 03:51:05 [2025-02-05 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405063', 'tblTempUsageDetail_20' ) start [2025-02-05 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405063', 'tblTempUsageDetail_20' ) end [2025-02-05 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405063', 'tblTempVendorCDR_20' ) start [2025-02-05 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405063', 'tblTempVendorCDR_20' ) end [2025-02-05 03:51:19] Production.INFO: ProcessCDR(1,14405063,1,1,2) [2025-02-05 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405063', 'tblTempUsageDetail_20' ) start [2025-02-05 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405063', 'tblTempUsageDetail_20' ) end [2025-02-05 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:51:22] Production.INFO: ==3181== Releasing lock... [2025-02-05 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-05 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:52:05 [end_date_ymd] => 2025-02-05 03:52:05 [RateCDR] => 1 ) [2025-02-05 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:52:05' and `end` < '2025-02-05 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:52:17] Production.INFO: count ==253 [2025-02-05 03:52:17] Production.ERROR: pbx CDR StartTime 2025-02-05 00:52:05 - End Time 2025-02-05 03:52:05 [2025-02-05 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405068', 'tblTempUsageDetail_20' ) start [2025-02-05 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405068', 'tblTempUsageDetail_20' ) end [2025-02-05 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405068', 'tblTempVendorCDR_20' ) start [2025-02-05 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405068', 'tblTempVendorCDR_20' ) end [2025-02-05 03:52:18] Production.INFO: ProcessCDR(1,14405068,1,1,2) [2025-02-05 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405068', 'tblTempUsageDetail_20' ) start [2025-02-05 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405068', 'tblTempUsageDetail_20' ) end [2025-02-05 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:52:21] Production.INFO: ==3307== Releasing lock... [2025-02-05 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-05 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:53:05 [end_date_ymd] => 2025-02-05 03:53:05 [RateCDR] => 1 ) [2025-02-05 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:53:05' and `end` < '2025-02-05 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:53:20] Production.INFO: count ==253 [2025-02-05 03:53:20] Production.ERROR: pbx CDR StartTime 2025-02-05 00:53:05 - End Time 2025-02-05 03:53:05 [2025-02-05 03:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405073', 'tblTempUsageDetail_20' ) start [2025-02-05 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405073', 'tblTempUsageDetail_20' ) end [2025-02-05 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405073', 'tblTempVendorCDR_20' ) start [2025-02-05 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405073', 'tblTempVendorCDR_20' ) end [2025-02-05 03:53:20] Production.INFO: ProcessCDR(1,14405073,1,1,2) [2025-02-05 03:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405073', 'tblTempUsageDetail_20' ) start [2025-02-05 03:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405073', 'tblTempUsageDetail_20' ) end [2025-02-05 03:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:53:24] Production.INFO: ==3397== Releasing lock... [2025-02-05 03:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:53:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-05 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:54:05 [end_date_ymd] => 2025-02-05 03:54:05 [RateCDR] => 1 ) [2025-02-05 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:54:05' and `end` < '2025-02-05 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:54:18] Production.INFO: count ==253 [2025-02-05 03:54:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:54:05 - End Time 2025-02-05 03:54:05 [2025-02-05 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405078', 'tblTempUsageDetail_20' ) start [2025-02-05 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405078', 'tblTempUsageDetail_20' ) end [2025-02-05 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405078', 'tblTempVendorCDR_20' ) start [2025-02-05 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405078', 'tblTempVendorCDR_20' ) end [2025-02-05 03:54:18] Production.INFO: ProcessCDR(1,14405078,1,1,2) [2025-02-05 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405078', 'tblTempUsageDetail_20' ) start [2025-02-05 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405078', 'tblTempUsageDetail_20' ) end [2025-02-05 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:54:22] Production.INFO: ==3479== Releasing lock... [2025-02-05 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:54:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-05 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:55:06 [end_date_ymd] => 2025-02-05 03:55:06 [RateCDR] => 1 ) [2025-02-05 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:55:06' and `end` < '2025-02-05 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:55:19] Production.INFO: count ==253 [2025-02-05 03:55:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:55:06 - End Time 2025-02-05 03:55:06 [2025-02-05 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405083', 'tblTempUsageDetail_20' ) start [2025-02-05 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405083', 'tblTempUsageDetail_20' ) end [2025-02-05 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405083', 'tblTempVendorCDR_20' ) start [2025-02-05 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405083', 'tblTempVendorCDR_20' ) end [2025-02-05 03:55:19] Production.INFO: ProcessCDR(1,14405083,1,1,2) [2025-02-05 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405083', 'tblTempUsageDetail_20' ) start [2025-02-05 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405083', 'tblTempUsageDetail_20' ) end [2025-02-05 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:55:22] Production.INFO: ==3567== Releasing lock... [2025-02-05 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:55:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-05 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:56:05 [end_date_ymd] => 2025-02-05 03:56:05 [RateCDR] => 1 ) [2025-02-05 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:56:05' and `end` < '2025-02-05 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:56:17] Production.INFO: count ==250 [2025-02-05 03:56:17] Production.ERROR: pbx CDR StartTime 2025-02-05 00:56:05 - End Time 2025-02-05 03:56:05 [2025-02-05 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405088', 'tblTempUsageDetail_20' ) start [2025-02-05 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405088', 'tblTempUsageDetail_20' ) end [2025-02-05 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405088', 'tblTempVendorCDR_20' ) start [2025-02-05 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405088', 'tblTempVendorCDR_20' ) end [2025-02-05 03:56:17] Production.INFO: ProcessCDR(1,14405088,1,1,2) [2025-02-05 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405088', 'tblTempUsageDetail_20' ) start [2025-02-05 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405088', 'tblTempUsageDetail_20' ) end [2025-02-05 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:56:21] Production.INFO: ==3655== Releasing lock... [2025-02-05 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-05 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:57:06 [end_date_ymd] => 2025-02-05 03:57:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 00:57:06' and `end` < '2025-02-05 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-02-05 03:57:19] Production.INFO: count ==249 [2025-02-05 03:57:19] Production.ERROR: pbx CDR StartTime 2025-02-05 00:57:06 - End Time 2025-02-05 03:57:06 [2025-02-05 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405093', 'tblTempUsageDetail_20' ) start [2025-02-05 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405093', 'tblTempUsageDetail_20' ) end [2025-02-05 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405093', 'tblTempVendorCDR_20' ) start [2025-02-05 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405093', 'tblTempVendorCDR_20' ) end [2025-02-05 03:57:19] Production.INFO: ProcessCDR(1,14405093,1,1,2) [2025-02-05 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405093', 'tblTempUsageDetail_20' ) start [2025-02-05 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405093', 'tblTempUsageDetail_20' ) end [2025-02-05 03:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:57:23] Production.INFO: ==3742== Releasing lock... [2025-02-05 03:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:57:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-05 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:58:05 [end_date_ymd] => 2025-02-05 03:58:05 [RateCDR] => 1 ) [2025-02-05 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:58:05' and `end` < '2025-02-05 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:58:18] Production.INFO: count ==249 [2025-02-05 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:58:05 - End Time 2025-02-05 03:58:05 [2025-02-05 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405098', 'tblTempUsageDetail_20' ) start [2025-02-05 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405098', 'tblTempUsageDetail_20' ) end [2025-02-05 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405098', 'tblTempVendorCDR_20' ) start [2025-02-05 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405098', 'tblTempVendorCDR_20' ) end [2025-02-05 03:58:18] Production.INFO: ProcessCDR(1,14405098,1,1,2) [2025-02-05 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405098', 'tblTempUsageDetail_20' ) start [2025-02-05 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405098', 'tblTempUsageDetail_20' ) end [2025-02-05 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:58:21] Production.INFO: ==3826== Releasing lock... [2025-02-05 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-05 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 00:59:06 [end_date_ymd] => 2025-02-05 03:59:06 [RateCDR] => 1 ) [2025-02-05 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 00:59:06' and `end` < '2025-02-05 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 03:59:18] Production.INFO: count ==249 [2025-02-05 03:59:18] Production.ERROR: pbx CDR StartTime 2025-02-05 00:59:06 - End Time 2025-02-05 03:59:06 [2025-02-05 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405103', 'tblTempUsageDetail_20' ) start [2025-02-05 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405103', 'tblTempUsageDetail_20' ) end [2025-02-05 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405103', 'tblTempVendorCDR_20' ) start [2025-02-05 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405103', 'tblTempVendorCDR_20' ) end [2025-02-05 03:59:18] Production.INFO: ProcessCDR(1,14405103,1,1,2) [2025-02-05 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405103', 'tblTempUsageDetail_20' ) start [2025-02-05 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405103', 'tblTempUsageDetail_20' ) end [2025-02-05 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 03:59:22] Production.INFO: ==3912== Releasing lock... [2025-02-05 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 03:59:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-05 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:00:06 [end_date_ymd] => 2025-02-05 04:00:06 [RateCDR] => 1 ) [2025-02-05 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:00:06' and `end` < '2025-02-05 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:00:19] Production.INFO: count ==242 [2025-02-05 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:00:06 - End Time 2025-02-05 04:00:06 [2025-02-05 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405110', 'tblTempUsageDetail_20' ) start [2025-02-05 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405110', 'tblTempUsageDetail_20' ) end [2025-02-05 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405110', 'tblTempVendorCDR_20' ) start [2025-02-05 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405110', 'tblTempVendorCDR_20' ) end [2025-02-05 04:00:19] Production.INFO: ProcessCDR(1,14405110,1,1,2) [2025-02-05 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405110', 'tblTempUsageDetail_20' ) start [2025-02-05 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405110', 'tblTempUsageDetail_20' ) end [2025-02-05 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:00:23] Production.INFO: ==3997== Releasing lock... [2025-02-05 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-05 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:01:05 [end_date_ymd] => 2025-02-05 04:01:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 01:01:05' and `end` < '2025-02-05 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-02-05 04:01:18] Production.INFO: count ==226 [2025-02-05 04:01:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:01:05 - End Time 2025-02-05 04:01:05 [2025-02-05 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405115', 'tblTempUsageDetail_20' ) start [2025-02-05 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405115', 'tblTempUsageDetail_20' ) end [2025-02-05 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405115', 'tblTempVendorCDR_20' ) start [2025-02-05 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405115', 'tblTempVendorCDR_20' ) end [2025-02-05 04:01:18] Production.INFO: ProcessCDR(1,14405115,1,1,2) [2025-02-05 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405115', 'tblTempUsageDetail_20' ) start [2025-02-05 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405115', 'tblTempUsageDetail_20' ) end [2025-02-05 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:01:21] Production.INFO: ==4109== Releasing lock... [2025-02-05 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:01:21] Production.INFO: 29 MB #Memory Used# [2025-02-05 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:02:05 [end_date_ymd] => 2025-02-05 04:02:05 [RateCDR] => 1 ) [2025-02-05 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:02:05' and `end` < '2025-02-05 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:02:18] Production.INFO: count ==225 [2025-02-05 04:02:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:02:05 - End Time 2025-02-05 04:02:05 [2025-02-05 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405120', 'tblTempUsageDetail_20' ) start [2025-02-05 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405120', 'tblTempUsageDetail_20' ) end [2025-02-05 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405120', 'tblTempVendorCDR_20' ) start [2025-02-05 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405120', 'tblTempVendorCDR_20' ) end [2025-02-05 04:02:18] Production.INFO: ProcessCDR(1,14405120,1,1,2) [2025-02-05 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405120', 'tblTempUsageDetail_20' ) start [2025-02-05 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405120', 'tblTempUsageDetail_20' ) end [2025-02-05 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:02:21] Production.INFO: ==4197== Releasing lock... [2025-02-05 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:02:21] Production.INFO: 29 MB #Memory Used# [2025-02-05 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:03:05 [end_date_ymd] => 2025-02-05 04:03:05 [RateCDR] => 1 ) [2025-02-05 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:03:05' and `end` < '2025-02-05 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:03:18] Production.INFO: count ==225 [2025-02-05 04:03:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:03:05 - End Time 2025-02-05 04:03:05 [2025-02-05 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405125', 'tblTempUsageDetail_20' ) start [2025-02-05 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405125', 'tblTempUsageDetail_20' ) end [2025-02-05 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405125', 'tblTempVendorCDR_20' ) start [2025-02-05 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405125', 'tblTempVendorCDR_20' ) end [2025-02-05 04:03:18] Production.INFO: ProcessCDR(1,14405125,1,1,2) [2025-02-05 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405125', 'tblTempUsageDetail_20' ) start [2025-02-05 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405125', 'tblTempUsageDetail_20' ) end [2025-02-05 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:03:21] Production.INFO: ==4280== Releasing lock... [2025-02-05 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:03:21] Production.INFO: 29 MB #Memory Used# [2025-02-05 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:04:05 [end_date_ymd] => 2025-02-05 04:04:05 [RateCDR] => 1 ) [2025-02-05 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:04:05' and `end` < '2025-02-05 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:04:19] Production.INFO: count ==225 [2025-02-05 04:04:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:04:05 - End Time 2025-02-05 04:04:05 [2025-02-05 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405130', 'tblTempUsageDetail_20' ) start [2025-02-05 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405130', 'tblTempUsageDetail_20' ) end [2025-02-05 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405130', 'tblTempVendorCDR_20' ) start [2025-02-05 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405130', 'tblTempVendorCDR_20' ) end [2025-02-05 04:04:19] Production.INFO: ProcessCDR(1,14405130,1,1,2) [2025-02-05 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405130', 'tblTempUsageDetail_20' ) start [2025-02-05 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405130', 'tblTempUsageDetail_20' ) end [2025-02-05 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:04:22] Production.INFO: ==4375== Releasing lock... [2025-02-05 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:04:22] Production.INFO: 29 MB #Memory Used# [2025-02-05 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:05:05 [end_date_ymd] => 2025-02-05 04:05:05 [RateCDR] => 1 ) [2025-02-05 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:05:05' and `end` < '2025-02-05 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:05:17] Production.INFO: count ==225 [2025-02-05 04:05:17] Production.ERROR: pbx CDR StartTime 2025-02-05 01:05:05 - End Time 2025-02-05 04:05:05 [2025-02-05 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405135', 'tblTempUsageDetail_20' ) start [2025-02-05 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405135', 'tblTempUsageDetail_20' ) end [2025-02-05 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405135', 'tblTempVendorCDR_20' ) start [2025-02-05 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405135', 'tblTempVendorCDR_20' ) end [2025-02-05 04:05:18] Production.INFO: ProcessCDR(1,14405135,1,1,2) [2025-02-05 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405135', 'tblTempUsageDetail_20' ) start [2025-02-05 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405135', 'tblTempUsageDetail_20' ) end [2025-02-05 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:05:21] Production.INFO: ==4470== Releasing lock... [2025-02-05 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:05:21] Production.INFO: 29 MB #Memory Used# [2025-02-05 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:06:06 [end_date_ymd] => 2025-02-05 04:06:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 01:06:06' and `end` < '2025-02-05 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-02-05 04:06:18] Production.INFO: count ==225 [2025-02-05 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:06:06 - End Time 2025-02-05 04:06:06 [2025-02-05 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405140', 'tblTempUsageDetail_20' ) start [2025-02-05 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405140', 'tblTempUsageDetail_20' ) end [2025-02-05 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405140', 'tblTempVendorCDR_20' ) start [2025-02-05 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405140', 'tblTempVendorCDR_20' ) end [2025-02-05 04:06:18] Production.INFO: ProcessCDR(1,14405140,1,1,2) [2025-02-05 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405140', 'tblTempUsageDetail_20' ) start [2025-02-05 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405140', 'tblTempUsageDetail_20' ) end [2025-02-05 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:06:21] Production.INFO: ==4569== Releasing lock... [2025-02-05 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:06:21] Production.INFO: 29 MB #Memory Used# [2025-02-05 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:07:05 [end_date_ymd] => 2025-02-05 04:07:05 [RateCDR] => 1 ) [2025-02-05 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:07:05' and `end` < '2025-02-05 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:07:19] Production.INFO: count ==225 [2025-02-05 04:07:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:07:05 - End Time 2025-02-05 04:07:05 [2025-02-05 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405145', 'tblTempUsageDetail_20' ) start [2025-02-05 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405145', 'tblTempUsageDetail_20' ) end [2025-02-05 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405145', 'tblTempVendorCDR_20' ) start [2025-02-05 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405145', 'tblTempVendorCDR_20' ) end [2025-02-05 04:07:19] Production.INFO: ProcessCDR(1,14405145,1,1,2) [2025-02-05 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405145', 'tblTempUsageDetail_20' ) start [2025-02-05 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405145', 'tblTempUsageDetail_20' ) end [2025-02-05 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:07:22] Production.INFO: ==4721== Releasing lock... [2025-02-05 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:07:22] Production.INFO: 29 MB #Memory Used# [2025-02-05 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:08:05 [end_date_ymd] => 2025-02-05 04:08:05 [RateCDR] => 1 ) [2025-02-05 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:08:05' and `end` < '2025-02-05 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:08:18] Production.INFO: count ==225 [2025-02-05 04:08:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:08:05 - End Time 2025-02-05 04:08:05 [2025-02-05 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405150', 'tblTempUsageDetail_20' ) start [2025-02-05 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405150', 'tblTempUsageDetail_20' ) end [2025-02-05 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405150', 'tblTempVendorCDR_20' ) start [2025-02-05 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405150', 'tblTempVendorCDR_20' ) end [2025-02-05 04:08:18] Production.INFO: ProcessCDR(1,14405150,1,1,2) [2025-02-05 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405150', 'tblTempUsageDetail_20' ) start [2025-02-05 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405150', 'tblTempUsageDetail_20' ) end [2025-02-05 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:08:21] Production.INFO: ==4825== Releasing lock... [2025-02-05 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:08:21] Production.INFO: 29 MB #Memory Used# [2025-02-05 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:09:05 [end_date_ymd] => 2025-02-05 04:09:05 [RateCDR] => 1 ) [2025-02-05 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:09:05' and `end` < '2025-02-05 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:09:17] Production.INFO: count ==225 [2025-02-05 04:09:17] Production.ERROR: pbx CDR StartTime 2025-02-05 01:09:05 - End Time 2025-02-05 04:09:05 [2025-02-05 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405155', 'tblTempUsageDetail_20' ) start [2025-02-05 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405155', 'tblTempUsageDetail_20' ) end [2025-02-05 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405155', 'tblTempVendorCDR_20' ) start [2025-02-05 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405155', 'tblTempVendorCDR_20' ) end [2025-02-05 04:09:17] Production.INFO: ProcessCDR(1,14405155,1,1,2) [2025-02-05 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405155', 'tblTempUsageDetail_20' ) start [2025-02-05 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405155', 'tblTempUsageDetail_20' ) end [2025-02-05 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:09:21] Production.INFO: ==4936== Releasing lock... [2025-02-05 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:09:21] Production.INFO: 29 MB #Memory Used# [2025-02-05 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:10:07 [end_date_ymd] => 2025-02-05 04:10:07 [RateCDR] => 1 ) [2025-02-05 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-02-05 01:10:07' and `end` < '2025-02-05 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-02-05 04:10:20] Production.INFO: count ==217 [2025-02-05 04:10:20] Production.ERROR: pbx CDR StartTime 2025-02-05 01:10:07 - End Time 2025-02-05 04:10:07 [2025-02-05 04:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405160', 'tblTempUsageDetail_20' ) start [2025-02-05 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405160', 'tblTempUsageDetail_20' ) end [2025-02-05 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405160', 'tblTempVendorCDR_20' ) start [2025-02-05 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405160', 'tblTempVendorCDR_20' ) end [2025-02-05 04:10:20] Production.INFO: ProcessCDR(1,14405160,1,1,2) [2025-02-05 04:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405160', 'tblTempUsageDetail_20' ) start [2025-02-05 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405160', 'tblTempUsageDetail_20' ) end [2025-02-05 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:10:23] Production.INFO: ==5043== Releasing lock... [2025-02-05 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:10:23] Production.INFO: 29 MB #Memory Used# [2025-02-05 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:11:05 [end_date_ymd] => 2025-02-05 04:11:05 [RateCDR] => 1 ) [2025-02-05 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:11:05' and `end` < '2025-02-05 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:11:19] Production.INFO: count ==196 [2025-02-05 04:11:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:11:05 - End Time 2025-02-05 04:11:05 [2025-02-05 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405166', 'tblTempUsageDetail_20' ) start [2025-02-05 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405166', 'tblTempUsageDetail_20' ) end [2025-02-05 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405166', 'tblTempVendorCDR_20' ) start [2025-02-05 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405166', 'tblTempVendorCDR_20' ) end [2025-02-05 04:11:19] Production.INFO: ProcessCDR(1,14405166,1,1,2) [2025-02-05 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405166', 'tblTempUsageDetail_20' ) start [2025-02-05 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405166', 'tblTempUsageDetail_20' ) end [2025-02-05 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:11:22] Production.INFO: ==5138== Releasing lock... [2025-02-05 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:12:05 [end_date_ymd] => 2025-02-05 04:12:05 [RateCDR] => 1 ) [2025-02-05 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:12:05' and `end` < '2025-02-05 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:12:19] Production.INFO: count ==196 [2025-02-05 04:12:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:12:05 - End Time 2025-02-05 04:12:05 [2025-02-05 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405171', 'tblTempUsageDetail_20' ) start [2025-02-05 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405171', 'tblTempUsageDetail_20' ) end [2025-02-05 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405171', 'tblTempVendorCDR_20' ) start [2025-02-05 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405171', 'tblTempVendorCDR_20' ) end [2025-02-05 04:12:19] Production.INFO: ProcessCDR(1,14405171,1,1,2) [2025-02-05 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405171', 'tblTempUsageDetail_20' ) start [2025-02-05 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405171', 'tblTempUsageDetail_20' ) end [2025-02-05 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:12:22] Production.INFO: ==5222== Releasing lock... [2025-02-05 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:13:05 [end_date_ymd] => 2025-02-05 04:13:05 [RateCDR] => 1 ) [2025-02-05 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:13:05' and `end` < '2025-02-05 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:13:18] Production.INFO: count ==196 [2025-02-05 04:13:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:13:05 - End Time 2025-02-05 04:13:05 [2025-02-05 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405176', 'tblTempUsageDetail_20' ) start [2025-02-05 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405176', 'tblTempUsageDetail_20' ) end [2025-02-05 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405176', 'tblTempVendorCDR_20' ) start [2025-02-05 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405176', 'tblTempVendorCDR_20' ) end [2025-02-05 04:13:18] Production.INFO: ProcessCDR(1,14405176,1,1,2) [2025-02-05 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405176', 'tblTempUsageDetail_20' ) start [2025-02-05 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405176', 'tblTempUsageDetail_20' ) end [2025-02-05 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:13:21] Production.INFO: ==5311== Releasing lock... [2025-02-05 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:14:05 [end_date_ymd] => 2025-02-05 04:14:05 [RateCDR] => 1 ) [2025-02-05 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:14:05' and `end` < '2025-02-05 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:14:18] Production.INFO: count ==196 [2025-02-05 04:14:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:14:05 - End Time 2025-02-05 04:14:05 [2025-02-05 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405181', 'tblTempUsageDetail_20' ) start [2025-02-05 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405181', 'tblTempUsageDetail_20' ) end [2025-02-05 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405181', 'tblTempVendorCDR_20' ) start [2025-02-05 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405181', 'tblTempVendorCDR_20' ) end [2025-02-05 04:14:18] Production.INFO: ProcessCDR(1,14405181,1,1,2) [2025-02-05 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405181', 'tblTempUsageDetail_20' ) start [2025-02-05 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405181', 'tblTempUsageDetail_20' ) end [2025-02-05 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:14:21] Production.INFO: ==5395== Releasing lock... [2025-02-05 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:15:05 [end_date_ymd] => 2025-02-05 04:15:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 01:15:05' and `end` < '2025-02-05 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-02-05 04:15:17] Production.INFO: count ==196 [2025-02-05 04:15:17] Production.ERROR: pbx CDR StartTime 2025-02-05 01:15:05 - End Time 2025-02-05 04:15:05 [2025-02-05 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405186', 'tblTempUsageDetail_20' ) start [2025-02-05 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405186', 'tblTempUsageDetail_20' ) end [2025-02-05 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405186', 'tblTempVendorCDR_20' ) start [2025-02-05 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405186', 'tblTempVendorCDR_20' ) end [2025-02-05 04:15:17] Production.INFO: ProcessCDR(1,14405186,1,1,2) [2025-02-05 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405186', 'tblTempUsageDetail_20' ) start [2025-02-05 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405186', 'tblTempUsageDetail_20' ) end [2025-02-05 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:15:21] Production.INFO: ==5481== Releasing lock... [2025-02-05 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:16:05 [end_date_ymd] => 2025-02-05 04:16:05 [RateCDR] => 1 ) [2025-02-05 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:16:05' and `end` < '2025-02-05 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:16:19] Production.INFO: count ==192 [2025-02-05 04:16:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:16:05 - End Time 2025-02-05 04:16:05 [2025-02-05 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405191', 'tblTempUsageDetail_20' ) start [2025-02-05 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405191', 'tblTempUsageDetail_20' ) end [2025-02-05 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405191', 'tblTempVendorCDR_20' ) start [2025-02-05 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405191', 'tblTempVendorCDR_20' ) end [2025-02-05 04:16:19] Production.INFO: ProcessCDR(1,14405191,1,1,2) [2025-02-05 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405191', 'tblTempUsageDetail_20' ) start [2025-02-05 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405191', 'tblTempUsageDetail_20' ) end [2025-02-05 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:16:22] Production.INFO: ==5565== Releasing lock... [2025-02-05 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:17:05 [end_date_ymd] => 2025-02-05 04:17:05 [RateCDR] => 1 ) [2025-02-05 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:17:05' and `end` < '2025-02-05 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:17:18] Production.INFO: count ==192 [2025-02-05 04:17:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:17:05 - End Time 2025-02-05 04:17:05 [2025-02-05 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405196', 'tblTempUsageDetail_20' ) start [2025-02-05 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405196', 'tblTempUsageDetail_20' ) end [2025-02-05 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405196', 'tblTempVendorCDR_20' ) start [2025-02-05 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405196', 'tblTempVendorCDR_20' ) end [2025-02-05 04:17:18] Production.INFO: ProcessCDR(1,14405196,1,1,2) [2025-02-05 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405196', 'tblTempUsageDetail_20' ) start [2025-02-05 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405196', 'tblTempUsageDetail_20' ) end [2025-02-05 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:17:21] Production.INFO: ==5653== Releasing lock... [2025-02-05 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:18:05 [end_date_ymd] => 2025-02-05 04:18:05 [RateCDR] => 1 ) [2025-02-05 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:18:05' and `end` < '2025-02-05 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:18:17] Production.INFO: count ==192 [2025-02-05 04:18:17] Production.ERROR: pbx CDR StartTime 2025-02-05 01:18:05 - End Time 2025-02-05 04:18:05 [2025-02-05 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405201', 'tblTempUsageDetail_20' ) start [2025-02-05 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405201', 'tblTempUsageDetail_20' ) end [2025-02-05 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405201', 'tblTempVendorCDR_20' ) start [2025-02-05 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405201', 'tblTempVendorCDR_20' ) end [2025-02-05 04:18:17] Production.INFO: ProcessCDR(1,14405201,1,1,2) [2025-02-05 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405201', 'tblTempUsageDetail_20' ) start [2025-02-05 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405201', 'tblTempUsageDetail_20' ) end [2025-02-05 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:18:21] Production.INFO: ==5753== Releasing lock... [2025-02-05 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:19:05 [end_date_ymd] => 2025-02-05 04:19:05 [RateCDR] => 1 ) [2025-02-05 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:19:05' and `end` < '2025-02-05 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:19:18] Production.INFO: count ==192 [2025-02-05 04:19:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:19:05 - End Time 2025-02-05 04:19:05 [2025-02-05 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405206', 'tblTempUsageDetail_20' ) start [2025-02-05 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405206', 'tblTempUsageDetail_20' ) end [2025-02-05 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405206', 'tblTempVendorCDR_20' ) start [2025-02-05 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405206', 'tblTempVendorCDR_20' ) end [2025-02-05 04:19:18] Production.INFO: ProcessCDR(1,14405206,1,1,2) [2025-02-05 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405206', 'tblTempUsageDetail_20' ) start [2025-02-05 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405206', 'tblTempUsageDetail_20' ) end [2025-02-05 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:19:21] Production.INFO: ==5839== Releasing lock... [2025-02-05 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:19:21] Production.INFO: 29 MB #Memory Used# [2025-02-05 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:20:05 [end_date_ymd] => 2025-02-05 04:20:05 [RateCDR] => 1 ) [2025-02-05 04:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:20:05' and `end` < '2025-02-05 04:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:20:19] Production.INFO: count ==190 [2025-02-05 04:20:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:20:05 - End Time 2025-02-05 04:20:05 [2025-02-05 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405212', 'tblTempUsageDetail_20' ) start [2025-02-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405212', 'tblTempUsageDetail_20' ) end [2025-02-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405212', 'tblTempVendorCDR_20' ) start [2025-02-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405212', 'tblTempVendorCDR_20' ) end [2025-02-05 04:20:19] Production.INFO: ProcessCDR(1,14405212,1,1,2) [2025-02-05 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405212', 'tblTempUsageDetail_20' ) start [2025-02-05 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405212', 'tblTempUsageDetail_20' ) end [2025-02-05 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:20:22] Production.INFO: ==5932== Releasing lock... [2025-02-05 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:21:05 [end_date_ymd] => 2025-02-05 04:21:05 [RateCDR] => 1 ) [2025-02-05 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:21:05' and `end` < '2025-02-05 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:21:19] Production.INFO: count ==184 [2025-02-05 04:21:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:21:05 - End Time 2025-02-05 04:21:05 [2025-02-05 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405217', 'tblTempUsageDetail_20' ) start [2025-02-05 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405217', 'tblTempUsageDetail_20' ) end [2025-02-05 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405217', 'tblTempVendorCDR_20' ) start [2025-02-05 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405217', 'tblTempVendorCDR_20' ) end [2025-02-05 04:21:19] Production.INFO: ProcessCDR(1,14405217,1,1,2) [2025-02-05 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405217', 'tblTempUsageDetail_20' ) start [2025-02-05 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405217', 'tblTempUsageDetail_20' ) end [2025-02-05 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:21:22] Production.INFO: ==6025== Releasing lock... [2025-02-05 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:21:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:22:05 [end_date_ymd] => 2025-02-05 04:22:05 [RateCDR] => 1 ) [2025-02-05 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:22:05' and `end` < '2025-02-05 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:22:18] Production.INFO: count ==184 [2025-02-05 04:22:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:22:05 - End Time 2025-02-05 04:22:05 [2025-02-05 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405222', 'tblTempUsageDetail_20' ) start [2025-02-05 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405222', 'tblTempUsageDetail_20' ) end [2025-02-05 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405222', 'tblTempVendorCDR_20' ) start [2025-02-05 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405222', 'tblTempVendorCDR_20' ) end [2025-02-05 04:22:18] Production.INFO: ProcessCDR(1,14405222,1,1,2) [2025-02-05 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405222', 'tblTempUsageDetail_20' ) start [2025-02-05 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405222', 'tblTempUsageDetail_20' ) end [2025-02-05 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:22:21] Production.INFO: ==6111== Releasing lock... [2025-02-05 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:23:05 [end_date_ymd] => 2025-02-05 04:23:05 [RateCDR] => 1 ) [2025-02-05 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:23:05' and `end` < '2025-02-05 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:23:18] Production.INFO: count ==184 [2025-02-05 04:23:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:23:05 - End Time 2025-02-05 04:23:05 [2025-02-05 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405227', 'tblTempUsageDetail_20' ) start [2025-02-05 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405227', 'tblTempUsageDetail_20' ) end [2025-02-05 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405227', 'tblTempVendorCDR_20' ) start [2025-02-05 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405227', 'tblTempVendorCDR_20' ) end [2025-02-05 04:23:18] Production.INFO: ProcessCDR(1,14405227,1,1,2) [2025-02-05 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405227', 'tblTempUsageDetail_20' ) start [2025-02-05 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405227', 'tblTempUsageDetail_20' ) end [2025-02-05 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:23:22] Production.INFO: ==6240== Releasing lock... [2025-02-05 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:23:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:24:05 [end_date_ymd] => 2025-02-05 04:24:05 [RateCDR] => 1 ) [2025-02-05 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:24:05' and `end` < '2025-02-05 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:24:17] Production.INFO: count ==183 [2025-02-05 04:24:17] Production.ERROR: pbx CDR StartTime 2025-02-05 01:24:05 - End Time 2025-02-05 04:24:05 [2025-02-05 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405232', 'tblTempUsageDetail_20' ) start [2025-02-05 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405232', 'tblTempUsageDetail_20' ) end [2025-02-05 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405232', 'tblTempVendorCDR_20' ) start [2025-02-05 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405232', 'tblTempVendorCDR_20' ) end [2025-02-05 04:24:17] Production.INFO: ProcessCDR(1,14405232,1,1,2) [2025-02-05 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405232', 'tblTempUsageDetail_20' ) start [2025-02-05 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405232', 'tblTempUsageDetail_20' ) end [2025-02-05 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:24:20] Production.INFO: ==6326== Releasing lock... [2025-02-05 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:24:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:25:05 [end_date_ymd] => 2025-02-05 04:25:05 [RateCDR] => 1 ) [2025-02-05 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:25:05' and `end` < '2025-02-05 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:25:18] Production.INFO: count ==183 [2025-02-05 04:25:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:25:05 - End Time 2025-02-05 04:25:05 [2025-02-05 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405237', 'tblTempUsageDetail_20' ) start [2025-02-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405237', 'tblTempUsageDetail_20' ) end [2025-02-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405237', 'tblTempVendorCDR_20' ) start [2025-02-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405237', 'tblTempVendorCDR_20' ) end [2025-02-05 04:25:18] Production.INFO: ProcessCDR(1,14405237,1,1,2) [2025-02-05 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405237', 'tblTempUsageDetail_20' ) start [2025-02-05 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405237', 'tblTempUsageDetail_20' ) end [2025-02-05 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:25:21] Production.INFO: ==6409== Releasing lock... [2025-02-05 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:26:05 [end_date_ymd] => 2025-02-05 04:26:05 [RateCDR] => 1 ) [2025-02-05 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:26:05' and `end` < '2025-02-05 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:26:18] Production.INFO: count ==183 [2025-02-05 04:26:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:26:05 - End Time 2025-02-05 04:26:05 [2025-02-05 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405242', 'tblTempUsageDetail_20' ) start [2025-02-05 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405242', 'tblTempUsageDetail_20' ) end [2025-02-05 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405242', 'tblTempVendorCDR_20' ) start [2025-02-05 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405242', 'tblTempVendorCDR_20' ) end [2025-02-05 04:26:18] Production.INFO: ProcessCDR(1,14405242,1,1,2) [2025-02-05 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405242', 'tblTempUsageDetail_20' ) start [2025-02-05 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405242', 'tblTempUsageDetail_20' ) end [2025-02-05 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:26:21] Production.INFO: ==6496== Releasing lock... [2025-02-05 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:27:05 [end_date_ymd] => 2025-02-05 04:27:05 [RateCDR] => 1 ) [2025-02-05 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:27:05' and `end` < '2025-02-05 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:27:18] Production.INFO: count ==180 [2025-02-05 04:27:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:27:05 - End Time 2025-02-05 04:27:05 [2025-02-05 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405247', 'tblTempUsageDetail_20' ) start [2025-02-05 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405247', 'tblTempUsageDetail_20' ) end [2025-02-05 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405247', 'tblTempVendorCDR_20' ) start [2025-02-05 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405247', 'tblTempVendorCDR_20' ) end [2025-02-05 04:27:18] Production.INFO: ProcessCDR(1,14405247,1,1,2) [2025-02-05 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405247', 'tblTempUsageDetail_20' ) start [2025-02-05 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405247', 'tblTempUsageDetail_20' ) end [2025-02-05 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:27:21] Production.INFO: ==6581== Releasing lock... [2025-02-05 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:28:05 [end_date_ymd] => 2025-02-05 04:28:05 [RateCDR] => 1 ) [2025-02-05 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:28:05' and `end` < '2025-02-05 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:28:18] Production.INFO: count ==177 [2025-02-05 04:28:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:28:05 - End Time 2025-02-05 04:28:05 [2025-02-05 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405252', 'tblTempUsageDetail_20' ) start [2025-02-05 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405252', 'tblTempUsageDetail_20' ) end [2025-02-05 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405252', 'tblTempVendorCDR_20' ) start [2025-02-05 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405252', 'tblTempVendorCDR_20' ) end [2025-02-05 04:28:18] Production.INFO: ProcessCDR(1,14405252,1,1,2) [2025-02-05 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405252', 'tblTempUsageDetail_20' ) start [2025-02-05 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405252', 'tblTempUsageDetail_20' ) end [2025-02-05 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:28:21] Production.INFO: ==6667== Releasing lock... [2025-02-05 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:29:05 [end_date_ymd] => 2025-02-05 04:29:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 01:29:05' and `end` < '2025-02-05 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-02-05 04:29:18] Production.INFO: count ==176 [2025-02-05 04:29:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:29:05 - End Time 2025-02-05 04:29:05 [2025-02-05 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405257', 'tblTempUsageDetail_20' ) start [2025-02-05 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405257', 'tblTempUsageDetail_20' ) end [2025-02-05 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405257', 'tblTempVendorCDR_20' ) start [2025-02-05 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405257', 'tblTempVendorCDR_20' ) end [2025-02-05 04:29:18] Production.INFO: ProcessCDR(1,14405257,1,1,2) [2025-02-05 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405257', 'tblTempUsageDetail_20' ) start [2025-02-05 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405257', 'tblTempUsageDetail_20' ) end [2025-02-05 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:29:21] Production.INFO: ==6758== Releasing lock... [2025-02-05 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:30:06 [end_date_ymd] => 2025-02-05 04:30:06 [RateCDR] => 1 ) [2025-02-05 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:30:06' and `end` < '2025-02-05 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:30:19] Production.INFO: count ==169 [2025-02-05 04:30:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:30:06 - End Time 2025-02-05 04:30:06 [2025-02-05 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405263', 'tblTempUsageDetail_20' ) start [2025-02-05 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405263', 'tblTempUsageDetail_20' ) end [2025-02-05 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405263', 'tblTempVendorCDR_20' ) start [2025-02-05 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405263', 'tblTempVendorCDR_20' ) end [2025-02-05 04:30:19] Production.INFO: ProcessCDR(1,14405263,1,1,2) [2025-02-05 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405263', 'tblTempUsageDetail_20' ) start [2025-02-05 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405263', 'tblTempUsageDetail_20' ) end [2025-02-05 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:30:22] Production.INFO: ==6843== Releasing lock... [2025-02-05 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:31:06 [end_date_ymd] => 2025-02-05 04:31:06 [RateCDR] => 1 ) [2025-02-05 04:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:31:06' and `end` < '2025-02-05 04:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:31:20] Production.INFO: count ==166 [2025-02-05 04:31:20] Production.ERROR: pbx CDR StartTime 2025-02-05 01:31:06 - End Time 2025-02-05 04:31:06 [2025-02-05 04:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405269', 'tblTempUsageDetail_20' ) start [2025-02-05 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405269', 'tblTempUsageDetail_20' ) end [2025-02-05 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405269', 'tblTempVendorCDR_20' ) start [2025-02-05 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405269', 'tblTempVendorCDR_20' ) end [2025-02-05 04:31:20] Production.INFO: ProcessCDR(1,14405269,1,1,2) [2025-02-05 04:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405269', 'tblTempUsageDetail_20' ) start [2025-02-05 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405269', 'tblTempUsageDetail_20' ) end [2025-02-05 04:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:31:23] Production.INFO: ==6934== Releasing lock... [2025-02-05 04:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:31:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:32:05 [end_date_ymd] => 2025-02-05 04:32:05 [RateCDR] => 1 ) [2025-02-05 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:32:05' and `end` < '2025-02-05 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:32:18] Production.INFO: count ==166 [2025-02-05 04:32:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:32:05 - End Time 2025-02-05 04:32:05 [2025-02-05 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405274', 'tblTempUsageDetail_20' ) start [2025-02-05 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405274', 'tblTempUsageDetail_20' ) end [2025-02-05 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405274', 'tblTempVendorCDR_20' ) start [2025-02-05 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405274', 'tblTempVendorCDR_20' ) end [2025-02-05 04:32:18] Production.INFO: ProcessCDR(1,14405274,1,1,2) [2025-02-05 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405274', 'tblTempUsageDetail_20' ) start [2025-02-05 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405274', 'tblTempUsageDetail_20' ) end [2025-02-05 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:32:21] Production.INFO: ==7109== Releasing lock... [2025-02-05 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:33:05 [end_date_ymd] => 2025-02-05 04:33:05 [RateCDR] => 1 ) [2025-02-05 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:33:05' and `end` < '2025-02-05 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:33:18] Production.INFO: count ==166 [2025-02-05 04:33:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:33:05 - End Time 2025-02-05 04:33:05 [2025-02-05 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405279', 'tblTempUsageDetail_20' ) start [2025-02-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405279', 'tblTempUsageDetail_20' ) end [2025-02-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405279', 'tblTempVendorCDR_20' ) start [2025-02-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405279', 'tblTempVendorCDR_20' ) end [2025-02-05 04:33:18] Production.INFO: ProcessCDR(1,14405279,1,1,2) [2025-02-05 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405279', 'tblTempUsageDetail_20' ) start [2025-02-05 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405279', 'tblTempUsageDetail_20' ) end [2025-02-05 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:33:21] Production.INFO: ==7196== Releasing lock... [2025-02-05 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:34:05 [end_date_ymd] => 2025-02-05 04:34:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 01:34:05' and `end` < '2025-02-05 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-02-05 04:34:18] Production.INFO: count ==166 [2025-02-05 04:34:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:34:05 - End Time 2025-02-05 04:34:05 [2025-02-05 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405284', 'tblTempUsageDetail_20' ) start [2025-02-05 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405284', 'tblTempUsageDetail_20' ) end [2025-02-05 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405284', 'tblTempVendorCDR_20' ) start [2025-02-05 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405284', 'tblTempVendorCDR_20' ) end [2025-02-05 04:34:18] Production.INFO: ProcessCDR(1,14405284,1,1,2) [2025-02-05 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405284', 'tblTempUsageDetail_20' ) start [2025-02-05 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405284', 'tblTempUsageDetail_20' ) end [2025-02-05 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:34:21] Production.INFO: ==7285== Releasing lock... [2025-02-05 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:35:05 [end_date_ymd] => 2025-02-05 04:35:05 [RateCDR] => 1 ) [2025-02-05 04:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:35:05' and `end` < '2025-02-05 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:35:18] Production.INFO: count ==166 [2025-02-05 04:35:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:35:05 - End Time 2025-02-05 04:35:05 [2025-02-05 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405289', 'tblTempUsageDetail_20' ) start [2025-02-05 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405289', 'tblTempUsageDetail_20' ) end [2025-02-05 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405289', 'tblTempVendorCDR_20' ) start [2025-02-05 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405289', 'tblTempVendorCDR_20' ) end [2025-02-05 04:35:18] Production.INFO: ProcessCDR(1,14405289,1,1,2) [2025-02-05 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405289', 'tblTempUsageDetail_20' ) start [2025-02-05 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405289', 'tblTempUsageDetail_20' ) end [2025-02-05 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:35:21] Production.INFO: ==7370== Releasing lock... [2025-02-05 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:36:05 [end_date_ymd] => 2025-02-05 04:36:05 [RateCDR] => 1 ) [2025-02-05 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:36:05' and `end` < '2025-02-05 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:36:18] Production.INFO: count ==166 [2025-02-05 04:36:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:36:05 - End Time 2025-02-05 04:36:05 [2025-02-05 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405294', 'tblTempUsageDetail_20' ) start [2025-02-05 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405294', 'tblTempUsageDetail_20' ) end [2025-02-05 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405294', 'tblTempVendorCDR_20' ) start [2025-02-05 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405294', 'tblTempVendorCDR_20' ) end [2025-02-05 04:36:18] Production.INFO: ProcessCDR(1,14405294,1,1,2) [2025-02-05 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405294', 'tblTempUsageDetail_20' ) start [2025-02-05 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405294', 'tblTempUsageDetail_20' ) end [2025-02-05 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:36:21] Production.INFO: ==7459== Releasing lock... [2025-02-05 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:37:05 [end_date_ymd] => 2025-02-05 04:37:05 [RateCDR] => 1 ) [2025-02-05 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:37:05' and `end` < '2025-02-05 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:37:19] Production.INFO: count ==166 [2025-02-05 04:37:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:37:05 - End Time 2025-02-05 04:37:05 [2025-02-05 04:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405299', 'tblTempUsageDetail_20' ) start [2025-02-05 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405299', 'tblTempUsageDetail_20' ) end [2025-02-05 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405299', 'tblTempVendorCDR_20' ) start [2025-02-05 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405299', 'tblTempVendorCDR_20' ) end [2025-02-05 04:37:19] Production.INFO: ProcessCDR(1,14405299,1,1,2) [2025-02-05 04:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405299', 'tblTempUsageDetail_20' ) start [2025-02-05 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405299', 'tblTempUsageDetail_20' ) end [2025-02-05 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:37:22] Production.INFO: ==7549== Releasing lock... [2025-02-05 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:37:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:38:05 [end_date_ymd] => 2025-02-05 04:38:05 [RateCDR] => 1 ) [2025-02-05 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:38:05' and `end` < '2025-02-05 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:38:18] Production.INFO: count ==166 [2025-02-05 04:38:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:38:05 - End Time 2025-02-05 04:38:05 [2025-02-05 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405304', 'tblTempUsageDetail_20' ) start [2025-02-05 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405304', 'tblTempUsageDetail_20' ) end [2025-02-05 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405304', 'tblTempVendorCDR_20' ) start [2025-02-05 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405304', 'tblTempVendorCDR_20' ) end [2025-02-05 04:38:18] Production.INFO: ProcessCDR(1,14405304,1,1,2) [2025-02-05 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405304', 'tblTempUsageDetail_20' ) start [2025-02-05 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405304', 'tblTempUsageDetail_20' ) end [2025-02-05 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:38:21] Production.INFO: ==7673== Releasing lock... [2025-02-05 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:39:05 [end_date_ymd] => 2025-02-05 04:39:05 [RateCDR] => 1 ) [2025-02-05 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:39:05' and `end` < '2025-02-05 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:39:19] Production.INFO: count ==166 [2025-02-05 04:39:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:39:05 - End Time 2025-02-05 04:39:05 [2025-02-05 04:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405309', 'tblTempUsageDetail_20' ) start [2025-02-05 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405309', 'tblTempUsageDetail_20' ) end [2025-02-05 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405309', 'tblTempVendorCDR_20' ) start [2025-02-05 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405309', 'tblTempVendorCDR_20' ) end [2025-02-05 04:39:19] Production.INFO: ProcessCDR(1,14405309,1,1,2) [2025-02-05 04:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405309', 'tblTempUsageDetail_20' ) start [2025-02-05 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405309', 'tblTempUsageDetail_20' ) end [2025-02-05 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:39:22] Production.INFO: ==7764== Releasing lock... [2025-02-05 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:39:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:40:06 [end_date_ymd] => 2025-02-05 04:40:06 [RateCDR] => 1 ) [2025-02-05 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:40:06' and `end` < '2025-02-05 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:40:19] Production.INFO: count ==161 [2025-02-05 04:40:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:40:06 - End Time 2025-02-05 04:40:06 [2025-02-05 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405315', 'tblTempUsageDetail_20' ) start [2025-02-05 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405315', 'tblTempUsageDetail_20' ) end [2025-02-05 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405315', 'tblTempVendorCDR_20' ) start [2025-02-05 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405315', 'tblTempVendorCDR_20' ) end [2025-02-05 04:40:19] Production.INFO: ProcessCDR(1,14405315,1,1,2) [2025-02-05 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405315', 'tblTempUsageDetail_20' ) start [2025-02-05 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405315', 'tblTempUsageDetail_20' ) end [2025-02-05 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:40:22] Production.INFO: ==7856== Releasing lock... [2025-02-05 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:41:05 [end_date_ymd] => 2025-02-05 04:41:05 [RateCDR] => 1 ) [2025-02-05 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:41:05' and `end` < '2025-02-05 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:41:18] Production.INFO: count ==152 [2025-02-05 04:41:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:41:05 - End Time 2025-02-05 04:41:05 [2025-02-05 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405320', 'tblTempUsageDetail_20' ) start [2025-02-05 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405320', 'tblTempUsageDetail_20' ) end [2025-02-05 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405320', 'tblTempVendorCDR_20' ) start [2025-02-05 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405320', 'tblTempVendorCDR_20' ) end [2025-02-05 04:41:18] Production.INFO: ProcessCDR(1,14405320,1,1,2) [2025-02-05 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405320', 'tblTempUsageDetail_20' ) start [2025-02-05 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405320', 'tblTempUsageDetail_20' ) end [2025-02-05 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:41:21] Production.INFO: ==7945== Releasing lock... [2025-02-05 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:42:05 [end_date_ymd] => 2025-02-05 04:42:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 01:42:05' and `end` < '2025-02-05 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-02-05 04:42:18] Production.INFO: count ==152 [2025-02-05 04:42:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:42:05 - End Time 2025-02-05 04:42:05 [2025-02-05 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405325', 'tblTempUsageDetail_20' ) start [2025-02-05 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405325', 'tblTempUsageDetail_20' ) end [2025-02-05 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405325', 'tblTempVendorCDR_20' ) start [2025-02-05 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405325', 'tblTempVendorCDR_20' ) end [2025-02-05 04:42:18] Production.INFO: ProcessCDR(1,14405325,1,1,2) [2025-02-05 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405325', 'tblTempUsageDetail_20' ) start [2025-02-05 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405325', 'tblTempUsageDetail_20' ) end [2025-02-05 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:42:22] Production.INFO: ==8032== Releasing lock... [2025-02-05 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:43:05 [end_date_ymd] => 2025-02-05 04:43:05 [RateCDR] => 1 ) [2025-02-05 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:43:05' and `end` < '2025-02-05 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:43:18] Production.INFO: count ==152 [2025-02-05 04:43:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:43:05 - End Time 2025-02-05 04:43:05 [2025-02-05 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405330', 'tblTempUsageDetail_20' ) start [2025-02-05 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405330', 'tblTempUsageDetail_20' ) end [2025-02-05 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405330', 'tblTempVendorCDR_20' ) start [2025-02-05 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405330', 'tblTempVendorCDR_20' ) end [2025-02-05 04:43:18] Production.INFO: ProcessCDR(1,14405330,1,1,2) [2025-02-05 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405330', 'tblTempUsageDetail_20' ) start [2025-02-05 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405330', 'tblTempUsageDetail_20' ) end [2025-02-05 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:43:21] Production.INFO: ==8117== Releasing lock... [2025-02-05 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:44:06 [end_date_ymd] => 2025-02-05 04:44:06 [RateCDR] => 1 ) [2025-02-05 04:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:44:06' and `end` < '2025-02-05 04:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:44:19] Production.INFO: count ==152 [2025-02-05 04:44:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:44:06 - End Time 2025-02-05 04:44:06 [2025-02-05 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405335', 'tblTempUsageDetail_20' ) start [2025-02-05 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405335', 'tblTempUsageDetail_20' ) end [2025-02-05 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405335', 'tblTempVendorCDR_20' ) start [2025-02-05 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405335', 'tblTempVendorCDR_20' ) end [2025-02-05 04:44:19] Production.INFO: ProcessCDR(1,14405335,1,1,2) [2025-02-05 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405335', 'tblTempUsageDetail_20' ) start [2025-02-05 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405335', 'tblTempUsageDetail_20' ) end [2025-02-05 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:44:22] Production.INFO: ==8204== Releasing lock... [2025-02-05 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:45:05 [end_date_ymd] => 2025-02-05 04:45:05 [RateCDR] => 1 ) [2025-02-05 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:45:05' and `end` < '2025-02-05 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:45:18] Production.INFO: count ==152 [2025-02-05 04:45:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:45:05 - End Time 2025-02-05 04:45:05 [2025-02-05 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405340', 'tblTempUsageDetail_20' ) start [2025-02-05 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405340', 'tblTempUsageDetail_20' ) end [2025-02-05 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405340', 'tblTempVendorCDR_20' ) start [2025-02-05 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405340', 'tblTempVendorCDR_20' ) end [2025-02-05 04:45:18] Production.INFO: ProcessCDR(1,14405340,1,1,2) [2025-02-05 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405340', 'tblTempUsageDetail_20' ) start [2025-02-05 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405340', 'tblTempUsageDetail_20' ) end [2025-02-05 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:45:21] Production.INFO: ==8294== Releasing lock... [2025-02-05 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:46:06 [end_date_ymd] => 2025-02-05 04:46:06 [RateCDR] => 1 ) [2025-02-05 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:46:06' and `end` < '2025-02-05 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:46:27] Production.INFO: count ==152 [2025-02-05 04:46:27] Production.ERROR: pbx CDR StartTime 2025-02-05 01:46:06 - End Time 2025-02-05 04:46:06 [2025-02-05 04:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405345', 'tblTempUsageDetail_20' ) start [2025-02-05 04:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405345', 'tblTempUsageDetail_20' ) end [2025-02-05 04:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405345', 'tblTempVendorCDR_20' ) start [2025-02-05 04:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405345', 'tblTempVendorCDR_20' ) end [2025-02-05 04:46:27] Production.INFO: ProcessCDR(1,14405345,1,1,2) [2025-02-05 04:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405345', 'tblTempUsageDetail_20' ) start [2025-02-05 04:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405345', 'tblTempUsageDetail_20' ) end [2025-02-05 04:46:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:46:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:46:30] Production.INFO: ==8384== Releasing lock... [2025-02-05 04:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:46:30] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:47:05 [end_date_ymd] => 2025-02-05 04:47:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 01:47:05' and `end` < '2025-02-05 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-02-05 04:47:21] Production.INFO: count ==152 [2025-02-05 04:47:21] Production.ERROR: pbx CDR StartTime 2025-02-05 01:47:05 - End Time 2025-02-05 04:47:05 [2025-02-05 04:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405350', 'tblTempUsageDetail_20' ) start [2025-02-05 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405350', 'tblTempUsageDetail_20' ) end [2025-02-05 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405350', 'tblTempVendorCDR_20' ) start [2025-02-05 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405350', 'tblTempVendorCDR_20' ) end [2025-02-05 04:47:21] Production.INFO: ProcessCDR(1,14405350,1,1,2) [2025-02-05 04:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405350', 'tblTempUsageDetail_20' ) start [2025-02-05 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405350', 'tblTempUsageDetail_20' ) end [2025-02-05 04:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:47:24] Production.INFO: ==8467== Releasing lock... [2025-02-05 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:47:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:48:06 [end_date_ymd] => 2025-02-05 04:48:06 [RateCDR] => 1 ) [2025-02-05 04:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:48:06' and `end` < '2025-02-05 04:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:48:19] Production.INFO: count ==152 [2025-02-05 04:48:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:48:06 - End Time 2025-02-05 04:48:06 [2025-02-05 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405355', 'tblTempUsageDetail_20' ) start [2025-02-05 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405355', 'tblTempUsageDetail_20' ) end [2025-02-05 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405355', 'tblTempVendorCDR_20' ) start [2025-02-05 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405355', 'tblTempVendorCDR_20' ) end [2025-02-05 04:48:20] Production.INFO: ProcessCDR(1,14405355,1,1,2) [2025-02-05 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405355', 'tblTempUsageDetail_20' ) start [2025-02-05 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405355', 'tblTempUsageDetail_20' ) end [2025-02-05 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:48:23] Production.INFO: ==8552== Releasing lock... [2025-02-05 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:48:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:49:05 [end_date_ymd] => 2025-02-05 04:49:05 [RateCDR] => 1 ) [2025-02-05 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:49:05' and `end` < '2025-02-05 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:49:19] Production.INFO: count ==152 [2025-02-05 04:49:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:49:05 - End Time 2025-02-05 04:49:05 [2025-02-05 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405360', 'tblTempUsageDetail_20' ) start [2025-02-05 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405360', 'tblTempUsageDetail_20' ) end [2025-02-05 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405360', 'tblTempVendorCDR_20' ) start [2025-02-05 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405360', 'tblTempVendorCDR_20' ) end [2025-02-05 04:49:19] Production.INFO: ProcessCDR(1,14405360,1,1,2) [2025-02-05 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405360', 'tblTempUsageDetail_20' ) start [2025-02-05 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405360', 'tblTempUsageDetail_20' ) end [2025-02-05 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:49:22] Production.INFO: ==8635== Releasing lock... [2025-02-05 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:49:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:50:06 [end_date_ymd] => 2025-02-05 04:50:06 [RateCDR] => 1 ) [2025-02-05 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:50:06' and `end` < '2025-02-05 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:50:21] Production.INFO: count ==150 [2025-02-05 04:50:21] Production.ERROR: pbx CDR StartTime 2025-02-05 01:50:06 - End Time 2025-02-05 04:50:06 [2025-02-05 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405366', 'tblTempUsageDetail_20' ) start [2025-02-05 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405366', 'tblTempUsageDetail_20' ) end [2025-02-05 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405366', 'tblTempVendorCDR_20' ) start [2025-02-05 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405366', 'tblTempVendorCDR_20' ) end [2025-02-05 04:50:21] Production.INFO: ProcessCDR(1,14405366,1,1,2) [2025-02-05 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405366', 'tblTempUsageDetail_20' ) start [2025-02-05 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405366', 'tblTempUsageDetail_20' ) end [2025-02-05 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:50:24] Production.INFO: ==8724== Releasing lock... [2025-02-05 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:50:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:51:05 [end_date_ymd] => 2025-02-05 04:51:05 [RateCDR] => 1 ) [2025-02-05 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:51:05' and `end` < '2025-02-05 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:51:18] Production.INFO: count ==150 [2025-02-05 04:51:18] Production.ERROR: pbx CDR StartTime 2025-02-05 01:51:05 - End Time 2025-02-05 04:51:05 [2025-02-05 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405371', 'tblTempUsageDetail_20' ) start [2025-02-05 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405371', 'tblTempUsageDetail_20' ) end [2025-02-05 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405371', 'tblTempVendorCDR_20' ) start [2025-02-05 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405371', 'tblTempVendorCDR_20' ) end [2025-02-05 04:51:18] Production.INFO: ProcessCDR(1,14405371,1,1,2) [2025-02-05 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405371', 'tblTempUsageDetail_20' ) start [2025-02-05 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405371', 'tblTempUsageDetail_20' ) end [2025-02-05 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:51:22] Production.INFO: ==8812== Releasing lock... [2025-02-05 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:51:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:52:06 [end_date_ymd] => 2025-02-05 04:52:06 [RateCDR] => 1 ) [2025-02-05 04:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:52:06' and `end` < '2025-02-05 04:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:52:20] Production.INFO: count ==150 [2025-02-05 04:52:20] Production.ERROR: pbx CDR StartTime 2025-02-05 01:52:06 - End Time 2025-02-05 04:52:06 [2025-02-05 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405376', 'tblTempUsageDetail_20' ) start [2025-02-05 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405376', 'tblTempUsageDetail_20' ) end [2025-02-05 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405376', 'tblTempVendorCDR_20' ) start [2025-02-05 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405376', 'tblTempVendorCDR_20' ) end [2025-02-05 04:52:20] Production.INFO: ProcessCDR(1,14405376,1,1,2) [2025-02-05 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405376', 'tblTempUsageDetail_20' ) start [2025-02-05 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405376', 'tblTempUsageDetail_20' ) end [2025-02-05 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:52:23] Production.INFO: ==8895== Releasing lock... [2025-02-05 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:52:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:53:05 [end_date_ymd] => 2025-02-05 04:53:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 01:53:05' and `end` < '2025-02-05 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-02-05 04:53:19] Production.INFO: count ==150 [2025-02-05 04:53:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:53:05 - End Time 2025-02-05 04:53:05 [2025-02-05 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405381', 'tblTempUsageDetail_20' ) start [2025-02-05 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405381', 'tblTempUsageDetail_20' ) end [2025-02-05 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405381', 'tblTempVendorCDR_20' ) start [2025-02-05 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405381', 'tblTempVendorCDR_20' ) end [2025-02-05 04:53:19] Production.INFO: ProcessCDR(1,14405381,1,1,2) [2025-02-05 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405381', 'tblTempUsageDetail_20' ) start [2025-02-05 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405381', 'tblTempUsageDetail_20' ) end [2025-02-05 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:53:22] Production.INFO: ==8979== Releasing lock... [2025-02-05 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:53:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:54:05 [end_date_ymd] => 2025-02-05 04:54:05 [RateCDR] => 1 ) [2025-02-05 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:54:05' and `end` < '2025-02-05 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:54:19] Production.INFO: count ==149 [2025-02-05 04:54:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:54:05 - End Time 2025-02-05 04:54:05 [2025-02-05 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405386', 'tblTempUsageDetail_20' ) start [2025-02-05 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405386', 'tblTempUsageDetail_20' ) end [2025-02-05 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405386', 'tblTempVendorCDR_20' ) start [2025-02-05 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405386', 'tblTempVendorCDR_20' ) end [2025-02-05 04:54:19] Production.INFO: ProcessCDR(1,14405386,1,1,2) [2025-02-05 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405386', 'tblTempUsageDetail_20' ) start [2025-02-05 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405386', 'tblTempUsageDetail_20' ) end [2025-02-05 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:54:22] Production.INFO: ==9105== Releasing lock... [2025-02-05 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:54:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:55:06 [end_date_ymd] => 2025-02-05 04:55:06 [RateCDR] => 1 ) [2025-02-05 04:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:55:06' and `end` < '2025-02-05 04:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:55:19] Production.INFO: count ==149 [2025-02-05 04:55:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:55:06 - End Time 2025-02-05 04:55:06 [2025-02-05 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405391', 'tblTempUsageDetail_20' ) start [2025-02-05 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405391', 'tblTempUsageDetail_20' ) end [2025-02-05 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405391', 'tblTempVendorCDR_20' ) start [2025-02-05 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405391', 'tblTempVendorCDR_20' ) end [2025-02-05 04:55:19] Production.INFO: ProcessCDR(1,14405391,1,1,2) [2025-02-05 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405391', 'tblTempUsageDetail_20' ) start [2025-02-05 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405391', 'tblTempUsageDetail_20' ) end [2025-02-05 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:55:22] Production.INFO: ==9193== Releasing lock... [2025-02-05 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:56:06 [end_date_ymd] => 2025-02-05 04:56:06 [RateCDR] => 1 ) [2025-02-05 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:56:06' and `end` < '2025-02-05 04:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:56:20] Production.INFO: count ==149 [2025-02-05 04:56:20] Production.ERROR: pbx CDR StartTime 2025-02-05 01:56:06 - End Time 2025-02-05 04:56:06 [2025-02-05 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405396', 'tblTempUsageDetail_20' ) start [2025-02-05 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405396', 'tblTempUsageDetail_20' ) end [2025-02-05 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405396', 'tblTempVendorCDR_20' ) start [2025-02-05 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405396', 'tblTempVendorCDR_20' ) end [2025-02-05 04:56:20] Production.INFO: ProcessCDR(1,14405396,1,1,2) [2025-02-05 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405396', 'tblTempUsageDetail_20' ) start [2025-02-05 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405396', 'tblTempUsageDetail_20' ) end [2025-02-05 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:56:23] Production.INFO: ==9280== Releasing lock... [2025-02-05 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:56:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:57:05 [end_date_ymd] => 2025-02-05 04:57:05 [RateCDR] => 1 ) [2025-02-05 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:57:05' and `end` < '2025-02-05 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:57:20] Production.INFO: count ==149 [2025-02-05 04:57:20] Production.ERROR: pbx CDR StartTime 2025-02-05 01:57:05 - End Time 2025-02-05 04:57:05 [2025-02-05 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405401', 'tblTempUsageDetail_20' ) start [2025-02-05 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405401', 'tblTempUsageDetail_20' ) end [2025-02-05 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405401', 'tblTempVendorCDR_20' ) start [2025-02-05 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405401', 'tblTempVendorCDR_20' ) end [2025-02-05 04:57:20] Production.INFO: ProcessCDR(1,14405401,1,1,2) [2025-02-05 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405401', 'tblTempUsageDetail_20' ) start [2025-02-05 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405401', 'tblTempUsageDetail_20' ) end [2025-02-05 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:57:23] Production.INFO: ==9366== Releasing lock... [2025-02-05 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:57:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:58:05 [end_date_ymd] => 2025-02-05 04:58:05 [RateCDR] => 1 ) [2025-02-05 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:58:05' and `end` < '2025-02-05 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:58:19] Production.INFO: count ==149 [2025-02-05 04:58:19] Production.ERROR: pbx CDR StartTime 2025-02-05 01:58:05 - End Time 2025-02-05 04:58:05 [2025-02-05 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405406', 'tblTempUsageDetail_20' ) start [2025-02-05 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405406', 'tblTempUsageDetail_20' ) end [2025-02-05 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405406', 'tblTempVendorCDR_20' ) start [2025-02-05 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405406', 'tblTempVendorCDR_20' ) end [2025-02-05 04:58:19] Production.INFO: ProcessCDR(1,14405406,1,1,2) [2025-02-05 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405406', 'tblTempUsageDetail_20' ) start [2025-02-05 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405406', 'tblTempUsageDetail_20' ) end [2025-02-05 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:58:22] Production.INFO: ==9453== Releasing lock... [2025-02-05 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 04:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 01:59:06 [end_date_ymd] => 2025-02-05 04:59:06 [RateCDR] => 1 ) [2025-02-05 04:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 01:59:06' and `end` < '2025-02-05 04:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 04:59:21] Production.INFO: count ==149 [2025-02-05 04:59:21] Production.ERROR: pbx CDR StartTime 2025-02-05 01:59:06 - End Time 2025-02-05 04:59:06 [2025-02-05 04:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405411', 'tblTempUsageDetail_20' ) start [2025-02-05 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405411', 'tblTempUsageDetail_20' ) end [2025-02-05 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405411', 'tblTempVendorCDR_20' ) start [2025-02-05 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405411', 'tblTempVendorCDR_20' ) end [2025-02-05 04:59:21] Production.INFO: ProcessCDR(1,14405411,1,1,2) [2025-02-05 04:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 04:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 04:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405411', 'tblTempUsageDetail_20' ) start [2025-02-05 04:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405411', 'tblTempUsageDetail_20' ) end [2025-02-05 04:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 04:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 04:59:24] Production.INFO: ==9546== Releasing lock... [2025-02-05 04:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 04:59:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:00:06 [end_date_ymd] => 2025-02-05 05:00:06 [RateCDR] => 1 ) [2025-02-05 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:00:06' and `end` < '2025-02-05 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:00:20] Production.INFO: count ==143 [2025-02-05 05:00:20] Production.ERROR: pbx CDR StartTime 2025-02-05 02:00:06 - End Time 2025-02-05 05:00:06 [2025-02-05 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405417', 'tblTempUsageDetail_20' ) start [2025-02-05 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405417', 'tblTempUsageDetail_20' ) end [2025-02-05 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405417', 'tblTempVendorCDR_20' ) start [2025-02-05 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405417', 'tblTempVendorCDR_20' ) end [2025-02-05 05:00:20] Production.INFO: ProcessCDR(1,14405417,1,1,2) [2025-02-05 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405417', 'tblTempUsageDetail_20' ) start [2025-02-05 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405417', 'tblTempUsageDetail_20' ) end [2025-02-05 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:00:24] Production.INFO: ==9633== Releasing lock... [2025-02-05 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:00:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:01:06 [end_date_ymd] => 2025-02-05 05:01:06 [RateCDR] => 1 ) [2025-02-05 05:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:01:06' and `end` < '2025-02-05 05:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:01:20] Production.INFO: count ==137 [2025-02-05 05:01:20] Production.ERROR: pbx CDR StartTime 2025-02-05 02:01:06 - End Time 2025-02-05 05:01:06 [2025-02-05 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405422', 'tblTempUsageDetail_20' ) start [2025-02-05 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405422', 'tblTempUsageDetail_20' ) end [2025-02-05 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405422', 'tblTempVendorCDR_20' ) start [2025-02-05 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405422', 'tblTempVendorCDR_20' ) end [2025-02-05 05:01:20] Production.INFO: ProcessCDR(1,14405422,1,1,2) [2025-02-05 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405422', 'tblTempUsageDetail_20' ) start [2025-02-05 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405422', 'tblTempUsageDetail_20' ) end [2025-02-05 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:01:23] Production.INFO: ==9734== Releasing lock... [2025-02-05 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:01:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:02:05 [end_date_ymd] => 2025-02-05 05:02:05 [RateCDR] => 1 ) [2025-02-05 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:02:05' and `end` < '2025-02-05 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:02:20] Production.INFO: count ==137 [2025-02-05 05:02:20] Production.ERROR: pbx CDR StartTime 2025-02-05 02:02:05 - End Time 2025-02-05 05:02:05 [2025-02-05 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405427', 'tblTempUsageDetail_20' ) start [2025-02-05 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405427', 'tblTempUsageDetail_20' ) end [2025-02-05 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405427', 'tblTempVendorCDR_20' ) start [2025-02-05 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405427', 'tblTempVendorCDR_20' ) end [2025-02-05 05:02:20] Production.INFO: ProcessCDR(1,14405427,1,1,2) [2025-02-05 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405427', 'tblTempUsageDetail_20' ) start [2025-02-05 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405427', 'tblTempUsageDetail_20' ) end [2025-02-05 05:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:02:24] Production.INFO: ==9841== Releasing lock... [2025-02-05 05:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:02:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:03:06 [end_date_ymd] => 2025-02-05 05:03:06 [RateCDR] => 1 ) [2025-02-05 05:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:03:06' and `end` < '2025-02-05 05:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:03:20] Production.INFO: count ==137 [2025-02-05 05:03:20] Production.ERROR: pbx CDR StartTime 2025-02-05 02:03:06 - End Time 2025-02-05 05:03:06 [2025-02-05 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405432', 'tblTempUsageDetail_20' ) start [2025-02-05 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405432', 'tblTempUsageDetail_20' ) end [2025-02-05 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405432', 'tblTempVendorCDR_20' ) start [2025-02-05 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405432', 'tblTempVendorCDR_20' ) end [2025-02-05 05:03:20] Production.INFO: ProcessCDR(1,14405432,1,1,2) [2025-02-05 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405432', 'tblTempUsageDetail_20' ) start [2025-02-05 05:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405432', 'tblTempUsageDetail_20' ) end [2025-02-05 05:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:03:24] Production.INFO: ==9929== Releasing lock... [2025-02-05 05:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:03:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:04:05 [end_date_ymd] => 2025-02-05 05:04:05 [RateCDR] => 1 ) [2025-02-05 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:04:05' and `end` < '2025-02-05 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:04:18] Production.INFO: count ==137 [2025-02-05 05:04:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:04:05 - End Time 2025-02-05 05:04:05 [2025-02-05 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405437', 'tblTempUsageDetail_20' ) start [2025-02-05 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405437', 'tblTempUsageDetail_20' ) end [2025-02-05 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405437', 'tblTempVendorCDR_20' ) start [2025-02-05 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405437', 'tblTempVendorCDR_20' ) end [2025-02-05 05:04:18] Production.INFO: ProcessCDR(1,14405437,1,1,2) [2025-02-05 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405437', 'tblTempUsageDetail_20' ) start [2025-02-05 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405437', 'tblTempUsageDetail_20' ) end [2025-02-05 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:04:22] Production.INFO: ==10015== Releasing lock... [2025-02-05 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:05:06 [end_date_ymd] => 2025-02-05 05:05:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:05:06' and `end` < '2025-02-05 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-02-05 05:05:19] Production.INFO: count ==137 [2025-02-05 05:05:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:05:06 - End Time 2025-02-05 05:05:06 [2025-02-05 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405442', 'tblTempUsageDetail_20' ) start [2025-02-05 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405442', 'tblTempUsageDetail_20' ) end [2025-02-05 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405442', 'tblTempVendorCDR_20' ) start [2025-02-05 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405442', 'tblTempVendorCDR_20' ) end [2025-02-05 05:05:19] Production.INFO: ProcessCDR(1,14405442,1,1,2) [2025-02-05 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405442', 'tblTempUsageDetail_20' ) start [2025-02-05 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405442', 'tblTempUsageDetail_20' ) end [2025-02-05 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:05:22] Production.INFO: ==10098== Releasing lock... [2025-02-05 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:05:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:06:06 [end_date_ymd] => 2025-02-05 05:06:06 [RateCDR] => 1 ) [2025-02-05 05:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:06:06' and `end` < '2025-02-05 05:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:06:19] Production.INFO: count ==137 [2025-02-05 05:06:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:06:06 - End Time 2025-02-05 05:06:06 [2025-02-05 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405447', 'tblTempUsageDetail_20' ) start [2025-02-05 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405447', 'tblTempUsageDetail_20' ) end [2025-02-05 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405447', 'tblTempVendorCDR_20' ) start [2025-02-05 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405447', 'tblTempVendorCDR_20' ) end [2025-02-05 05:06:19] Production.INFO: ProcessCDR(1,14405447,1,1,2) [2025-02-05 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405447', 'tblTempUsageDetail_20' ) start [2025-02-05 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405447', 'tblTempUsageDetail_20' ) end [2025-02-05 05:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:06:23] Production.INFO: ==10183== Releasing lock... [2025-02-05 05:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:06:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:07:06 [end_date_ymd] => 2025-02-05 05:07:06 [RateCDR] => 1 ) [2025-02-05 05:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:07:06' and `end` < '2025-02-05 05:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:07:19] Production.INFO: count ==137 [2025-02-05 05:07:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:07:06 - End Time 2025-02-05 05:07:06 [2025-02-05 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405452', 'tblTempUsageDetail_20' ) start [2025-02-05 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405452', 'tblTempUsageDetail_20' ) end [2025-02-05 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405452', 'tblTempVendorCDR_20' ) start [2025-02-05 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405452', 'tblTempVendorCDR_20' ) end [2025-02-05 05:07:19] Production.INFO: ProcessCDR(1,14405452,1,1,2) [2025-02-05 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405452', 'tblTempUsageDetail_20' ) start [2025-02-05 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405452', 'tblTempUsageDetail_20' ) end [2025-02-05 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:07:22] Production.INFO: ==10264== Releasing lock... [2025-02-05 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:07:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:08:05 [end_date_ymd] => 2025-02-05 05:08:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:08:05' and `end` < '2025-02-05 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-02-05 05:08:18] Production.INFO: count ==137 [2025-02-05 05:08:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:08:05 - End Time 2025-02-05 05:08:05 [2025-02-05 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405457', 'tblTempUsageDetail_20' ) start [2025-02-05 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405457', 'tblTempUsageDetail_20' ) end [2025-02-05 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405457', 'tblTempVendorCDR_20' ) start [2025-02-05 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405457', 'tblTempVendorCDR_20' ) end [2025-02-05 05:08:18] Production.INFO: ProcessCDR(1,14405457,1,1,2) [2025-02-05 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405457', 'tblTempUsageDetail_20' ) start [2025-02-05 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405457', 'tblTempUsageDetail_20' ) end [2025-02-05 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:08:21] Production.INFO: ==10348== Releasing lock... [2025-02-05 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:09:05 [end_date_ymd] => 2025-02-05 05:09:05 [RateCDR] => 1 ) [2025-02-05 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:09:05' and `end` < '2025-02-05 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:09:19] Production.INFO: count ==137 [2025-02-05 05:09:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:09:05 - End Time 2025-02-05 05:09:05 [2025-02-05 05:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405462', 'tblTempUsageDetail_20' ) start [2025-02-05 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405462', 'tblTempUsageDetail_20' ) end [2025-02-05 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405462', 'tblTempVendorCDR_20' ) start [2025-02-05 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405462', 'tblTempVendorCDR_20' ) end [2025-02-05 05:09:19] Production.INFO: ProcessCDR(1,14405462,1,1,2) [2025-02-05 05:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405462', 'tblTempUsageDetail_20' ) start [2025-02-05 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405462', 'tblTempUsageDetail_20' ) end [2025-02-05 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:09:22] Production.INFO: ==10477== Releasing lock... [2025-02-05 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:09:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:10:06 [end_date_ymd] => 2025-02-05 05:10:06 [RateCDR] => 1 ) [2025-02-05 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:10:06' and `end` < '2025-02-05 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:10:18] Production.INFO: count ==138 [2025-02-05 05:10:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:10:06 - End Time 2025-02-05 05:10:06 [2025-02-05 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405468', 'tblTempUsageDetail_20' ) start [2025-02-05 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405468', 'tblTempUsageDetail_20' ) end [2025-02-05 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405468', 'tblTempVendorCDR_20' ) start [2025-02-05 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405468', 'tblTempVendorCDR_20' ) end [2025-02-05 05:10:18] Production.INFO: ProcessCDR(1,14405468,1,1,2) [2025-02-05 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405468', 'tblTempUsageDetail_20' ) start [2025-02-05 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405468', 'tblTempUsageDetail_20' ) end [2025-02-05 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:10:22] Production.INFO: ==10563== Releasing lock... [2025-02-05 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:11:05 [end_date_ymd] => 2025-02-05 05:11:05 [RateCDR] => 1 ) [2025-02-05 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:11:05' and `end` < '2025-02-05 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:11:19] Production.INFO: count ==138 [2025-02-05 05:11:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:11:05 - End Time 2025-02-05 05:11:05 [2025-02-05 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405473', 'tblTempUsageDetail_20' ) start [2025-02-05 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405473', 'tblTempUsageDetail_20' ) end [2025-02-05 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405473', 'tblTempVendorCDR_20' ) start [2025-02-05 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405473', 'tblTempVendorCDR_20' ) end [2025-02-05 05:11:19] Production.INFO: ProcessCDR(1,14405473,1,1,2) [2025-02-05 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405473', 'tblTempUsageDetail_20' ) start [2025-02-05 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405473', 'tblTempUsageDetail_20' ) end [2025-02-05 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:11:22] Production.INFO: ==10666== Releasing lock... [2025-02-05 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:12:05 [end_date_ymd] => 2025-02-05 05:12:05 [RateCDR] => 1 ) [2025-02-05 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:12:05' and `end` < '2025-02-05 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:12:18] Production.INFO: count ==138 [2025-02-05 05:12:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:12:05 - End Time 2025-02-05 05:12:05 [2025-02-05 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405478', 'tblTempUsageDetail_20' ) start [2025-02-05 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405478', 'tblTempUsageDetail_20' ) end [2025-02-05 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405478', 'tblTempVendorCDR_20' ) start [2025-02-05 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405478', 'tblTempVendorCDR_20' ) end [2025-02-05 05:12:18] Production.INFO: ProcessCDR(1,14405478,1,1,2) [2025-02-05 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405478', 'tblTempUsageDetail_20' ) start [2025-02-05 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405478', 'tblTempUsageDetail_20' ) end [2025-02-05 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:12:21] Production.INFO: ==10749== Releasing lock... [2025-02-05 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:13:05 [end_date_ymd] => 2025-02-05 05:13:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:13:05' and `end` < '2025-02-05 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-02-05 05:13:18] Production.INFO: count ==138 [2025-02-05 05:13:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:13:05 - End Time 2025-02-05 05:13:05 [2025-02-05 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405483', 'tblTempUsageDetail_20' ) start [2025-02-05 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405483', 'tblTempUsageDetail_20' ) end [2025-02-05 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405483', 'tblTempVendorCDR_20' ) start [2025-02-05 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405483', 'tblTempVendorCDR_20' ) end [2025-02-05 05:13:18] Production.INFO: ProcessCDR(1,14405483,1,1,2) [2025-02-05 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405483', 'tblTempUsageDetail_20' ) start [2025-02-05 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405483', 'tblTempUsageDetail_20' ) end [2025-02-05 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:13:21] Production.INFO: ==10827== Releasing lock... [2025-02-05 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:14:06 [end_date_ymd] => 2025-02-05 05:14:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:14:06' and `end` < '2025-02-05 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-02-05 05:14:19] Production.INFO: count ==138 [2025-02-05 05:14:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:14:06 - End Time 2025-02-05 05:14:06 [2025-02-05 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405488', 'tblTempUsageDetail_20' ) start [2025-02-05 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405488', 'tblTempUsageDetail_20' ) end [2025-02-05 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405488', 'tblTempVendorCDR_20' ) start [2025-02-05 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405488', 'tblTempVendorCDR_20' ) end [2025-02-05 05:14:19] Production.INFO: ProcessCDR(1,14405488,1,1,2) [2025-02-05 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405488', 'tblTempUsageDetail_20' ) start [2025-02-05 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405488', 'tblTempUsageDetail_20' ) end [2025-02-05 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:14:22] Production.INFO: ==10901== Releasing lock... [2025-02-05 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:15:05 [end_date_ymd] => 2025-02-05 05:15:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:15:05' and `end` < '2025-02-05 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-02-05 05:15:18] Production.INFO: count ==138 [2025-02-05 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:15:05 - End Time 2025-02-05 05:15:05 [2025-02-05 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405493', 'tblTempUsageDetail_20' ) start [2025-02-05 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405493', 'tblTempUsageDetail_20' ) end [2025-02-05 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405493', 'tblTempVendorCDR_20' ) start [2025-02-05 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405493', 'tblTempVendorCDR_20' ) end [2025-02-05 05:15:18] Production.INFO: ProcessCDR(1,14405493,1,1,2) [2025-02-05 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405493', 'tblTempUsageDetail_20' ) start [2025-02-05 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405493', 'tblTempUsageDetail_20' ) end [2025-02-05 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:15:21] Production.INFO: ==10980== Releasing lock... [2025-02-05 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:16:06 [end_date_ymd] => 2025-02-05 05:16:06 [RateCDR] => 1 ) [2025-02-05 05:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:16:06' and `end` < '2025-02-05 05:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:16:19] Production.INFO: count ==138 [2025-02-05 05:16:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:16:06 - End Time 2025-02-05 05:16:06 [2025-02-05 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405498', 'tblTempUsageDetail_20' ) start [2025-02-05 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405498', 'tblTempUsageDetail_20' ) end [2025-02-05 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405498', 'tblTempVendorCDR_20' ) start [2025-02-05 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405498', 'tblTempVendorCDR_20' ) end [2025-02-05 05:16:19] Production.INFO: ProcessCDR(1,14405498,1,1,2) [2025-02-05 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405498', 'tblTempUsageDetail_20' ) start [2025-02-05 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405498', 'tblTempUsageDetail_20' ) end [2025-02-05 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:16:22] Production.INFO: ==11057== Releasing lock... [2025-02-05 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:17:05 [end_date_ymd] => 2025-02-05 05:17:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:17:05' and `end` < '2025-02-05 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-02-05 05:17:18] Production.INFO: count ==138 [2025-02-05 05:17:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:17:05 - End Time 2025-02-05 05:17:05 [2025-02-05 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405503', 'tblTempUsageDetail_20' ) start [2025-02-05 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405503', 'tblTempUsageDetail_20' ) end [2025-02-05 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405503', 'tblTempVendorCDR_20' ) start [2025-02-05 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405503', 'tblTempVendorCDR_20' ) end [2025-02-05 05:17:18] Production.INFO: ProcessCDR(1,14405503,1,1,2) [2025-02-05 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405503', 'tblTempUsageDetail_20' ) start [2025-02-05 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405503', 'tblTempUsageDetail_20' ) end [2025-02-05 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:17:21] Production.INFO: ==11129== Releasing lock... [2025-02-05 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:18:05 [end_date_ymd] => 2025-02-05 05:18:05 [RateCDR] => 1 ) [2025-02-05 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:18:05' and `end` < '2025-02-05 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:18:18] Production.INFO: count ==138 [2025-02-05 05:18:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:18:05 - End Time 2025-02-05 05:18:05 [2025-02-05 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405508', 'tblTempUsageDetail_20' ) start [2025-02-05 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405508', 'tblTempUsageDetail_20' ) end [2025-02-05 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405508', 'tblTempVendorCDR_20' ) start [2025-02-05 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405508', 'tblTempVendorCDR_20' ) end [2025-02-05 05:18:18] Production.INFO: ProcessCDR(1,14405508,1,1,2) [2025-02-05 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405508', 'tblTempUsageDetail_20' ) start [2025-02-05 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405508', 'tblTempUsageDetail_20' ) end [2025-02-05 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:18:22] Production.INFO: ==11202== Releasing lock... [2025-02-05 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:19:05 [end_date_ymd] => 2025-02-05 05:19:05 [RateCDR] => 1 ) [2025-02-05 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:19:05' and `end` < '2025-02-05 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:19:17] Production.INFO: count ==138 [2025-02-05 05:19:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:19:05 - End Time 2025-02-05 05:19:05 [2025-02-05 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405513', 'tblTempUsageDetail_20' ) start [2025-02-05 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405513', 'tblTempUsageDetail_20' ) end [2025-02-05 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405513', 'tblTempVendorCDR_20' ) start [2025-02-05 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405513', 'tblTempVendorCDR_20' ) end [2025-02-05 05:19:18] Production.INFO: ProcessCDR(1,14405513,1,1,2) [2025-02-05 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405513', 'tblTempUsageDetail_20' ) start [2025-02-05 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405513', 'tblTempUsageDetail_20' ) end [2025-02-05 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:19:20] Production.INFO: ==11283== Releasing lock... [2025-02-05 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:19:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:20:06 [end_date_ymd] => 2025-02-05 05:20:06 [RateCDR] => 1 ) [2025-02-05 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:20:06' and `end` < '2025-02-05 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:20:20] Production.INFO: count ==134 [2025-02-05 05:20:20] Production.ERROR: pbx CDR StartTime 2025-02-05 02:20:06 - End Time 2025-02-05 05:20:06 [2025-02-05 05:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405519', 'tblTempUsageDetail_20' ) start [2025-02-05 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405519', 'tblTempUsageDetail_20' ) end [2025-02-05 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405519', 'tblTempVendorCDR_20' ) start [2025-02-05 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405519', 'tblTempVendorCDR_20' ) end [2025-02-05 05:20:20] Production.INFO: ProcessCDR(1,14405519,1,1,2) [2025-02-05 05:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405519', 'tblTempUsageDetail_20' ) start [2025-02-05 05:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405519', 'tblTempUsageDetail_20' ) end [2025-02-05 05:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:20:24] Production.INFO: ==11355== Releasing lock... [2025-02-05 05:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:20:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:21:05 [end_date_ymd] => 2025-02-05 05:21:05 [RateCDR] => 1 ) [2025-02-05 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:21:05' and `end` < '2025-02-05 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:21:18] Production.INFO: count ==128 [2025-02-05 05:21:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:21:05 - End Time 2025-02-05 05:21:05 [2025-02-05 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405524', 'tblTempUsageDetail_20' ) start [2025-02-05 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405524', 'tblTempUsageDetail_20' ) end [2025-02-05 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405524', 'tblTempVendorCDR_20' ) start [2025-02-05 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405524', 'tblTempVendorCDR_20' ) end [2025-02-05 05:21:18] Production.INFO: ProcessCDR(1,14405524,1,1,2) [2025-02-05 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405524', 'tblTempUsageDetail_20' ) start [2025-02-05 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405524', 'tblTempUsageDetail_20' ) end [2025-02-05 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:21:21] Production.INFO: ==11430== Releasing lock... [2025-02-05 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:22:05 [end_date_ymd] => 2025-02-05 05:22:05 [RateCDR] => 1 ) [2025-02-05 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:22:05' and `end` < '2025-02-05 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:22:18] Production.INFO: count ==128 [2025-02-05 05:22:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:22:05 - End Time 2025-02-05 05:22:05 [2025-02-05 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405529', 'tblTempUsageDetail_20' ) start [2025-02-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405529', 'tblTempUsageDetail_20' ) end [2025-02-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405529', 'tblTempVendorCDR_20' ) start [2025-02-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405529', 'tblTempVendorCDR_20' ) end [2025-02-05 05:22:18] Production.INFO: ProcessCDR(1,14405529,1,1,2) [2025-02-05 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405529', 'tblTempUsageDetail_20' ) start [2025-02-05 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405529', 'tblTempUsageDetail_20' ) end [2025-02-05 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:22:21] Production.INFO: ==11500== Releasing lock... [2025-02-05 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:23:05 [end_date_ymd] => 2025-02-05 05:23:05 [RateCDR] => 1 ) [2025-02-05 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:23:05' and `end` < '2025-02-05 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:23:19] Production.INFO: count ==128 [2025-02-05 05:23:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:23:05 - End Time 2025-02-05 05:23:05 [2025-02-05 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405534', 'tblTempUsageDetail_20' ) start [2025-02-05 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405534', 'tblTempUsageDetail_20' ) end [2025-02-05 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405534', 'tblTempVendorCDR_20' ) start [2025-02-05 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405534', 'tblTempVendorCDR_20' ) end [2025-02-05 05:23:19] Production.INFO: ProcessCDR(1,14405534,1,1,2) [2025-02-05 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405534', 'tblTempUsageDetail_20' ) start [2025-02-05 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405534', 'tblTempUsageDetail_20' ) end [2025-02-05 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:23:22] Production.INFO: ==11573== Releasing lock... [2025-02-05 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:24:05 [end_date_ymd] => 2025-02-05 05:24:05 [RateCDR] => 1 ) [2025-02-05 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:24:05' and `end` < '2025-02-05 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:24:18] Production.INFO: count ==128 [2025-02-05 05:24:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:24:05 - End Time 2025-02-05 05:24:05 [2025-02-05 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405539', 'tblTempUsageDetail_20' ) start [2025-02-05 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405539', 'tblTempUsageDetail_20' ) end [2025-02-05 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405539', 'tblTempVendorCDR_20' ) start [2025-02-05 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405539', 'tblTempVendorCDR_20' ) end [2025-02-05 05:24:18] Production.INFO: ProcessCDR(1,14405539,1,1,2) [2025-02-05 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405539', 'tblTempUsageDetail_20' ) start [2025-02-05 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405539', 'tblTempUsageDetail_20' ) end [2025-02-05 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:24:21] Production.INFO: ==11685== Releasing lock... [2025-02-05 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:25:05 [end_date_ymd] => 2025-02-05 05:25:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:25:05' and `end` < '2025-02-05 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-02-05 05:25:18] Production.INFO: count ==128 [2025-02-05 05:25:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:25:05 - End Time 2025-02-05 05:25:05 [2025-02-05 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405544', 'tblTempUsageDetail_20' ) start [2025-02-05 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405544', 'tblTempUsageDetail_20' ) end [2025-02-05 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405544', 'tblTempVendorCDR_20' ) start [2025-02-05 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405544', 'tblTempVendorCDR_20' ) end [2025-02-05 05:25:18] Production.INFO: ProcessCDR(1,14405544,1,1,2) [2025-02-05 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405544', 'tblTempUsageDetail_20' ) start [2025-02-05 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405544', 'tblTempUsageDetail_20' ) end [2025-02-05 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:25:21] Production.INFO: ==11755== Releasing lock... [2025-02-05 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:26:05 [end_date_ymd] => 2025-02-05 05:26:05 [RateCDR] => 1 ) [2025-02-05 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:26:05' and `end` < '2025-02-05 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:26:19] Production.INFO: count ==128 [2025-02-05 05:26:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:26:05 - End Time 2025-02-05 05:26:05 [2025-02-05 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405549', 'tblTempUsageDetail_20' ) start [2025-02-05 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405549', 'tblTempUsageDetail_20' ) end [2025-02-05 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405549', 'tblTempVendorCDR_20' ) start [2025-02-05 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405549', 'tblTempVendorCDR_20' ) end [2025-02-05 05:26:19] Production.INFO: ProcessCDR(1,14405549,1,1,2) [2025-02-05 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405549', 'tblTempUsageDetail_20' ) start [2025-02-05 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405549', 'tblTempUsageDetail_20' ) end [2025-02-05 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:26:22] Production.INFO: ==11827== Releasing lock... [2025-02-05 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:26:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:27:06 [end_date_ymd] => 2025-02-05 05:27:06 [RateCDR] => 1 ) [2025-02-05 05:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:27:06' and `end` < '2025-02-05 05:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:27:19] Production.INFO: count ==128 [2025-02-05 05:27:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:27:06 - End Time 2025-02-05 05:27:06 [2025-02-05 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405554', 'tblTempUsageDetail_20' ) start [2025-02-05 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405554', 'tblTempUsageDetail_20' ) end [2025-02-05 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405554', 'tblTempVendorCDR_20' ) start [2025-02-05 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405554', 'tblTempVendorCDR_20' ) end [2025-02-05 05:27:19] Production.INFO: ProcessCDR(1,14405554,1,1,2) [2025-02-05 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405554', 'tblTempUsageDetail_20' ) start [2025-02-05 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405554', 'tblTempUsageDetail_20' ) end [2025-02-05 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:27:22] Production.INFO: ==11909== Releasing lock... [2025-02-05 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:27:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:28:05 [end_date_ymd] => 2025-02-05 05:28:05 [RateCDR] => 1 ) [2025-02-05 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:28:05' and `end` < '2025-02-05 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:28:18] Production.INFO: count ==128 [2025-02-05 05:28:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:28:05 - End Time 2025-02-05 05:28:05 [2025-02-05 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405559', 'tblTempUsageDetail_20' ) start [2025-02-05 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405559', 'tblTempUsageDetail_20' ) end [2025-02-05 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405559', 'tblTempVendorCDR_20' ) start [2025-02-05 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405559', 'tblTempVendorCDR_20' ) end [2025-02-05 05:28:18] Production.INFO: ProcessCDR(1,14405559,1,1,2) [2025-02-05 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405559', 'tblTempUsageDetail_20' ) start [2025-02-05 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405559', 'tblTempUsageDetail_20' ) end [2025-02-05 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:28:21] Production.INFO: ==11984== Releasing lock... [2025-02-05 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:29:05 [end_date_ymd] => 2025-02-05 05:29:05 [RateCDR] => 1 ) [2025-02-05 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:29:05' and `end` < '2025-02-05 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:29:18] Production.INFO: count ==128 [2025-02-05 05:29:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:29:05 - End Time 2025-02-05 05:29:05 [2025-02-05 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405564', 'tblTempUsageDetail_20' ) start [2025-02-05 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405564', 'tblTempUsageDetail_20' ) end [2025-02-05 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405564', 'tblTempVendorCDR_20' ) start [2025-02-05 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405564', 'tblTempVendorCDR_20' ) end [2025-02-05 05:29:18] Production.INFO: ProcessCDR(1,14405564,1,1,2) [2025-02-05 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405564', 'tblTempUsageDetail_20' ) start [2025-02-05 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405564', 'tblTempUsageDetail_20' ) end [2025-02-05 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:29:21] Production.INFO: ==12055== Releasing lock... [2025-02-05 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:30:06 [end_date_ymd] => 2025-02-05 05:30:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:30:06' and `end` < '2025-02-05 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-02-05 05:30:19] Production.INFO: count ==123 [2025-02-05 05:30:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:30:06 - End Time 2025-02-05 05:30:06 [2025-02-05 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405570', 'tblTempUsageDetail_20' ) start [2025-02-05 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405570', 'tblTempUsageDetail_20' ) end [2025-02-05 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405570', 'tblTempVendorCDR_20' ) start [2025-02-05 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405570', 'tblTempVendorCDR_20' ) end [2025-02-05 05:30:19] Production.INFO: ProcessCDR(1,14405570,1,1,2) [2025-02-05 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405570', 'tblTempUsageDetail_20' ) start [2025-02-05 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405570', 'tblTempUsageDetail_20' ) end [2025-02-05 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:30:22] Production.INFO: ==12139== Releasing lock... [2025-02-05 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:31:05 [end_date_ymd] => 2025-02-05 05:31:05 [RateCDR] => 1 ) [2025-02-05 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:31:05' and `end` < '2025-02-05 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:31:18] Production.INFO: count ==111 [2025-02-05 05:31:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:31:05 - End Time 2025-02-05 05:31:05 [2025-02-05 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405575', 'tblTempUsageDetail_20' ) start [2025-02-05 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405575', 'tblTempUsageDetail_20' ) end [2025-02-05 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405575', 'tblTempVendorCDR_20' ) start [2025-02-05 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405575', 'tblTempVendorCDR_20' ) end [2025-02-05 05:31:18] Production.INFO: ProcessCDR(1,14405575,1,1,2) [2025-02-05 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405575', 'tblTempUsageDetail_20' ) start [2025-02-05 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405575', 'tblTempUsageDetail_20' ) end [2025-02-05 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:31:21] Production.INFO: ==12214== Releasing lock... [2025-02-05 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:32:05 [end_date_ymd] => 2025-02-05 05:32:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:32:05' and `end` < '2025-02-05 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-02-05 05:32:18] Production.INFO: count ==110 [2025-02-05 05:32:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:32:05 - End Time 2025-02-05 05:32:05 [2025-02-05 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405580', 'tblTempUsageDetail_20' ) start [2025-02-05 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405580', 'tblTempUsageDetail_20' ) end [2025-02-05 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405580', 'tblTempVendorCDR_20' ) start [2025-02-05 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405580', 'tblTempVendorCDR_20' ) end [2025-02-05 05:32:18] Production.INFO: ProcessCDR(1,14405580,1,1,2) [2025-02-05 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405580', 'tblTempUsageDetail_20' ) start [2025-02-05 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405580', 'tblTempUsageDetail_20' ) end [2025-02-05 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:32:22] Production.INFO: ==12285== Releasing lock... [2025-02-05 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:33:05 [end_date_ymd] => 2025-02-05 05:33:05 [RateCDR] => 1 ) [2025-02-05 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:33:05' and `end` < '2025-02-05 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:33:18] Production.INFO: count ==110 [2025-02-05 05:33:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:33:05 - End Time 2025-02-05 05:33:05 [2025-02-05 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405585', 'tblTempUsageDetail_20' ) start [2025-02-05 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405585', 'tblTempUsageDetail_20' ) end [2025-02-05 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405585', 'tblTempVendorCDR_20' ) start [2025-02-05 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405585', 'tblTempVendorCDR_20' ) end [2025-02-05 05:33:18] Production.INFO: ProcessCDR(1,14405585,1,1,2) [2025-02-05 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405585', 'tblTempUsageDetail_20' ) start [2025-02-05 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405585', 'tblTempUsageDetail_20' ) end [2025-02-05 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:33:21] Production.INFO: ==12354== Releasing lock... [2025-02-05 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:34:06 [end_date_ymd] => 2025-02-05 05:34:06 [RateCDR] => 1 ) [2025-02-05 05:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:34:06' and `end` < '2025-02-05 05:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:34:19] Production.INFO: count ==110 [2025-02-05 05:34:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:34:06 - End Time 2025-02-05 05:34:06 [2025-02-05 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405590', 'tblTempUsageDetail_20' ) start [2025-02-05 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405590', 'tblTempUsageDetail_20' ) end [2025-02-05 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405590', 'tblTempVendorCDR_20' ) start [2025-02-05 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405590', 'tblTempVendorCDR_20' ) end [2025-02-05 05:34:19] Production.INFO: ProcessCDR(1,14405590,1,1,2) [2025-02-05 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405590', 'tblTempUsageDetail_20' ) start [2025-02-05 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405590', 'tblTempUsageDetail_20' ) end [2025-02-05 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:34:22] Production.INFO: ==12426== Releasing lock... [2025-02-05 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:34:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:35:05 [end_date_ymd] => 2025-02-05 05:35:05 [RateCDR] => 1 ) [2025-02-05 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:35:05' and `end` < '2025-02-05 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:35:18] Production.INFO: count ==110 [2025-02-05 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:35:05 - End Time 2025-02-05 05:35:05 [2025-02-05 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405595', 'tblTempUsageDetail_20' ) start [2025-02-05 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405595', 'tblTempUsageDetail_20' ) end [2025-02-05 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405595', 'tblTempVendorCDR_20' ) start [2025-02-05 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405595', 'tblTempVendorCDR_20' ) end [2025-02-05 05:35:18] Production.INFO: ProcessCDR(1,14405595,1,1,2) [2025-02-05 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405595', 'tblTempUsageDetail_20' ) start [2025-02-05 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405595', 'tblTempUsageDetail_20' ) end [2025-02-05 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:35:21] Production.INFO: ==12497== Releasing lock... [2025-02-05 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:36:05 [end_date_ymd] => 2025-02-05 05:36:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:36:05' and `end` < '2025-02-05 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-02-05 05:36:18] Production.INFO: count ==110 [2025-02-05 05:36:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:36:05 - End Time 2025-02-05 05:36:05 [2025-02-05 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405600', 'tblTempUsageDetail_20' ) start [2025-02-05 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405600', 'tblTempUsageDetail_20' ) end [2025-02-05 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405600', 'tblTempVendorCDR_20' ) start [2025-02-05 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405600', 'tblTempVendorCDR_20' ) end [2025-02-05 05:36:18] Production.INFO: ProcessCDR(1,14405600,1,1,2) [2025-02-05 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405600', 'tblTempUsageDetail_20' ) start [2025-02-05 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405600', 'tblTempUsageDetail_20' ) end [2025-02-05 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:36:21] Production.INFO: ==12569== Releasing lock... [2025-02-05 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:37:05 [end_date_ymd] => 2025-02-05 05:37:05 [RateCDR] => 1 ) [2025-02-05 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:37:05' and `end` < '2025-02-05 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-02-05 05:37:18] Production.INFO: count ==110 [2025-02-05 05:37:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:37:05 - End Time 2025-02-05 05:37:05 [2025-02-05 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405605', 'tblTempUsageDetail_20' ) start [2025-02-05 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405605', 'tblTempUsageDetail_20' ) end [2025-02-05 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405605', 'tblTempVendorCDR_20' ) start [2025-02-05 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405605', 'tblTempVendorCDR_20' ) end [2025-02-05 05:37:18] Production.INFO: ProcessCDR(1,14405605,1,1,2) [2025-02-05 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405605', 'tblTempUsageDetail_20' ) start [2025-02-05 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405605', 'tblTempUsageDetail_20' ) end [2025-02-05 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:37:21] Production.INFO: ==12640== Releasing lock... [2025-02-05 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:38:06 [end_date_ymd] => 2025-02-05 05:38:06 [RateCDR] => 1 ) [2025-02-05 05:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:38:06' and `end` < '2025-02-05 05:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:38:18] Production.INFO: count ==110 [2025-02-05 05:38:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:38:06 - End Time 2025-02-05 05:38:06 [2025-02-05 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405610', 'tblTempUsageDetail_20' ) start [2025-02-05 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405610', 'tblTempUsageDetail_20' ) end [2025-02-05 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405610', 'tblTempVendorCDR_20' ) start [2025-02-05 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405610', 'tblTempVendorCDR_20' ) end [2025-02-05 05:38:18] Production.INFO: ProcessCDR(1,14405610,1,1,2) [2025-02-05 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405610', 'tblTempUsageDetail_20' ) start [2025-02-05 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405610', 'tblTempUsageDetail_20' ) end [2025-02-05 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:38:21] Production.INFO: ==12720== Releasing lock... [2025-02-05 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:39:05 [end_date_ymd] => 2025-02-05 05:39:05 [RateCDR] => 1 ) [2025-02-05 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:39:05' and `end` < '2025-02-05 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:39:17] Production.INFO: count ==110 [2025-02-05 05:39:17] Production.ERROR: pbx CDR StartTime 2025-02-05 02:39:05 - End Time 2025-02-05 05:39:05 [2025-02-05 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405615', 'tblTempUsageDetail_20' ) start [2025-02-05 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405615', 'tblTempUsageDetail_20' ) end [2025-02-05 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405615', 'tblTempVendorCDR_20' ) start [2025-02-05 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405615', 'tblTempVendorCDR_20' ) end [2025-02-05 05:39:17] Production.INFO: ProcessCDR(1,14405615,1,1,2) [2025-02-05 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405615', 'tblTempUsageDetail_20' ) start [2025-02-05 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405615', 'tblTempUsageDetail_20' ) end [2025-02-05 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:39:20] Production.INFO: ==12790== Releasing lock... [2025-02-05 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:40:06 [end_date_ymd] => 2025-02-05 05:40:06 [RateCDR] => 1 ) [2025-02-05 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:40:06' and `end` < '2025-02-05 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:40:19] Production.INFO: count ==107 [2025-02-05 05:40:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:40:06 - End Time 2025-02-05 05:40:06 [2025-02-05 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405621', 'tblTempUsageDetail_20' ) start [2025-02-05 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405621', 'tblTempUsageDetail_20' ) end [2025-02-05 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405621', 'tblTempVendorCDR_20' ) start [2025-02-05 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405621', 'tblTempVendorCDR_20' ) end [2025-02-05 05:40:19] Production.INFO: ProcessCDR(1,14405621,1,1,2) [2025-02-05 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405621', 'tblTempUsageDetail_20' ) start [2025-02-05 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405621', 'tblTempUsageDetail_20' ) end [2025-02-05 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:40:22] Production.INFO: ==12905== Releasing lock... [2025-02-05 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:40:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:41:05 [end_date_ymd] => 2025-02-05 05:41:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:41:05' and `end` < '2025-02-05 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-02-05 05:41:18] Production.INFO: count ==107 [2025-02-05 05:41:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:41:05 - End Time 2025-02-05 05:41:05 [2025-02-05 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405626', 'tblTempUsageDetail_20' ) start [2025-02-05 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405626', 'tblTempUsageDetail_20' ) end [2025-02-05 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405626', 'tblTempVendorCDR_20' ) start [2025-02-05 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405626', 'tblTempVendorCDR_20' ) end [2025-02-05 05:41:18] Production.INFO: ProcessCDR(1,14405626,1,1,2) [2025-02-05 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405626', 'tblTempUsageDetail_20' ) start [2025-02-05 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405626', 'tblTempUsageDetail_20' ) end [2025-02-05 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:41:21] Production.INFO: ==12978== Releasing lock... [2025-02-05 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:41:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:42:05 [end_date_ymd] => 2025-02-05 05:42:05 [RateCDR] => 1 ) [2025-02-05 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:42:05' and `end` < '2025-02-05 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:42:18] Production.INFO: count ==107 [2025-02-05 05:42:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:42:05 - End Time 2025-02-05 05:42:05 [2025-02-05 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405631', 'tblTempUsageDetail_20' ) start [2025-02-05 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405631', 'tblTempUsageDetail_20' ) end [2025-02-05 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405631', 'tblTempVendorCDR_20' ) start [2025-02-05 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405631', 'tblTempVendorCDR_20' ) end [2025-02-05 05:42:18] Production.INFO: ProcessCDR(1,14405631,1,1,2) [2025-02-05 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405631', 'tblTempUsageDetail_20' ) start [2025-02-05 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405631', 'tblTempUsageDetail_20' ) end [2025-02-05 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:42:21] Production.INFO: ==13052== Releasing lock... [2025-02-05 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:42:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:43:05 [end_date_ymd] => 2025-02-05 05:43:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:43:05' and `end` < '2025-02-05 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-02-05 05:43:19] Production.INFO: count ==107 [2025-02-05 05:43:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:43:05 - End Time 2025-02-05 05:43:05 [2025-02-05 05:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405636', 'tblTempUsageDetail_20' ) start [2025-02-05 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405636', 'tblTempUsageDetail_20' ) end [2025-02-05 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405636', 'tblTempVendorCDR_20' ) start [2025-02-05 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405636', 'tblTempVendorCDR_20' ) end [2025-02-05 05:43:19] Production.INFO: ProcessCDR(1,14405636,1,1,2) [2025-02-05 05:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405636', 'tblTempUsageDetail_20' ) start [2025-02-05 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405636', 'tblTempUsageDetail_20' ) end [2025-02-05 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:43:22] Production.INFO: ==13136== Releasing lock... [2025-02-05 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:43:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:44:05 [end_date_ymd] => 2025-02-05 05:44:05 [RateCDR] => 1 ) [2025-02-05 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:44:05' and `end` < '2025-02-05 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:44:18] Production.INFO: count ==107 [2025-02-05 05:44:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:44:05 - End Time 2025-02-05 05:44:05 [2025-02-05 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405641', 'tblTempUsageDetail_20' ) start [2025-02-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405641', 'tblTempUsageDetail_20' ) end [2025-02-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405641', 'tblTempVendorCDR_20' ) start [2025-02-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405641', 'tblTempVendorCDR_20' ) end [2025-02-05 05:44:18] Production.INFO: ProcessCDR(1,14405641,1,1,2) [2025-02-05 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405641', 'tblTempUsageDetail_20' ) start [2025-02-05 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405641', 'tblTempUsageDetail_20' ) end [2025-02-05 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:44:21] Production.INFO: ==13215== Releasing lock... [2025-02-05 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:44:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:45:05 [end_date_ymd] => 2025-02-05 05:45:05 [RateCDR] => 1 ) [2025-02-05 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:45:05' and `end` < '2025-02-05 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:45:18] Production.INFO: count ==107 [2025-02-05 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:45:05 - End Time 2025-02-05 05:45:05 [2025-02-05 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405646', 'tblTempUsageDetail_20' ) start [2025-02-05 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405646', 'tblTempUsageDetail_20' ) end [2025-02-05 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405646', 'tblTempVendorCDR_20' ) start [2025-02-05 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405646', 'tblTempVendorCDR_20' ) end [2025-02-05 05:45:18] Production.INFO: ProcessCDR(1,14405646,1,1,2) [2025-02-05 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405646', 'tblTempUsageDetail_20' ) start [2025-02-05 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405646', 'tblTempUsageDetail_20' ) end [2025-02-05 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:45:21] Production.INFO: ==13295== Releasing lock... [2025-02-05 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:45:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:46:05 [end_date_ymd] => 2025-02-05 05:46:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:46:05' and `end` < '2025-02-05 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-02-05 05:46:18] Production.INFO: count ==107 [2025-02-05 05:46:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:46:05 - End Time 2025-02-05 05:46:05 [2025-02-05 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405651', 'tblTempUsageDetail_20' ) start [2025-02-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405651', 'tblTempUsageDetail_20' ) end [2025-02-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405651', 'tblTempVendorCDR_20' ) start [2025-02-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405651', 'tblTempVendorCDR_20' ) end [2025-02-05 05:46:18] Production.INFO: ProcessCDR(1,14405651,1,1,2) [2025-02-05 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405651', 'tblTempUsageDetail_20' ) start [2025-02-05 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405651', 'tblTempUsageDetail_20' ) end [2025-02-05 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:46:21] Production.INFO: ==13374== Releasing lock... [2025-02-05 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:46:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:47:05 [end_date_ymd] => 2025-02-05 05:47:05 [RateCDR] => 1 ) [2025-02-05 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:47:05' and `end` < '2025-02-05 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:47:19] Production.INFO: count ==107 [2025-02-05 05:47:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:47:05 - End Time 2025-02-05 05:47:05 [2025-02-05 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405656', 'tblTempUsageDetail_20' ) start [2025-02-05 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405656', 'tblTempUsageDetail_20' ) end [2025-02-05 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405656', 'tblTempVendorCDR_20' ) start [2025-02-05 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405656', 'tblTempVendorCDR_20' ) end [2025-02-05 05:47:19] Production.INFO: ProcessCDR(1,14405656,1,1,2) [2025-02-05 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405656', 'tblTempUsageDetail_20' ) start [2025-02-05 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405656', 'tblTempUsageDetail_20' ) end [2025-02-05 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:47:22] Production.INFO: ==13447== Releasing lock... [2025-02-05 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:47:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:48:05 [end_date_ymd] => 2025-02-05 05:48:05 [RateCDR] => 1 ) [2025-02-05 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:48:05' and `end` < '2025-02-05 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:48:18] Production.INFO: count ==107 [2025-02-05 05:48:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:48:05 - End Time 2025-02-05 05:48:05 [2025-02-05 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405661', 'tblTempUsageDetail_20' ) start [2025-02-05 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405661', 'tblTempUsageDetail_20' ) end [2025-02-05 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405661', 'tblTempVendorCDR_20' ) start [2025-02-05 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405661', 'tblTempVendorCDR_20' ) end [2025-02-05 05:48:18] Production.INFO: ProcessCDR(1,14405661,1,1,2) [2025-02-05 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405661', 'tblTempUsageDetail_20' ) start [2025-02-05 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405661', 'tblTempUsageDetail_20' ) end [2025-02-05 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:48:21] Production.INFO: ==13518== Releasing lock... [2025-02-05 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:48:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:49:05 [end_date_ymd] => 2025-02-05 05:49:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:49:05' and `end` < '2025-02-05 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:49:19] Production.INFO: count ==107 [2025-02-05 05:49:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:49:05 - End Time 2025-02-05 05:49:05 [2025-02-05 05:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405666', 'tblTempUsageDetail_20' ) start [2025-02-05 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405666', 'tblTempUsageDetail_20' ) end [2025-02-05 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405666', 'tblTempVendorCDR_20' ) start [2025-02-05 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405666', 'tblTempVendorCDR_20' ) end [2025-02-05 05:49:19] Production.INFO: ProcessCDR(1,14405666,1,1,2) [2025-02-05 05:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405666', 'tblTempUsageDetail_20' ) start [2025-02-05 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405666', 'tblTempUsageDetail_20' ) end [2025-02-05 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:49:22] Production.INFO: ==13591== Releasing lock... [2025-02-05 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:49:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:50:06 [end_date_ymd] => 2025-02-05 05:50:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 02:50:06' and `end` < '2025-02-05 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-02-05 05:50:19] Production.INFO: count ==103 [2025-02-05 05:50:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:50:06 - End Time 2025-02-05 05:50:06 [2025-02-05 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405672', 'tblTempUsageDetail_20' ) start [2025-02-05 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405672', 'tblTempUsageDetail_20' ) end [2025-02-05 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405672', 'tblTempVendorCDR_20' ) start [2025-02-05 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405672', 'tblTempVendorCDR_20' ) end [2025-02-05 05:50:19] Production.INFO: ProcessCDR(1,14405672,1,1,2) [2025-02-05 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405672', 'tblTempUsageDetail_20' ) start [2025-02-05 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405672', 'tblTempUsageDetail_20' ) end [2025-02-05 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:50:22] Production.INFO: ==13662== Releasing lock... [2025-02-05 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:50:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:51:06 [end_date_ymd] => 2025-02-05 05:51:06 [RateCDR] => 1 ) [2025-02-05 05:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:51:06' and `end` < '2025-02-05 05:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:51:19] Production.INFO: count ==103 [2025-02-05 05:51:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:51:06 - End Time 2025-02-05 05:51:06 [2025-02-05 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405677', 'tblTempUsageDetail_20' ) start [2025-02-05 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405677', 'tblTempUsageDetail_20' ) end [2025-02-05 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405677', 'tblTempVendorCDR_20' ) start [2025-02-05 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405677', 'tblTempVendorCDR_20' ) end [2025-02-05 05:51:19] Production.INFO: ProcessCDR(1,14405677,1,1,2) [2025-02-05 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405677', 'tblTempUsageDetail_20' ) start [2025-02-05 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405677', 'tblTempUsageDetail_20' ) end [2025-02-05 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:51:22] Production.INFO: ==13735== Releasing lock... [2025-02-05 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:51:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:52:04 [end_date_ymd] => 2025-02-05 05:52:04 [RateCDR] => 1 ) [2025-02-05 05: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-02-05 02:52:04' and `end` < '2025-02-05 05: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-02-05 05:52:18] Production.INFO: count ==103 [2025-02-05 05:52:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:52:04 - End Time 2025-02-05 05:52:04 [2025-02-05 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405682', 'tblTempUsageDetail_20' ) start [2025-02-05 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405682', 'tblTempUsageDetail_20' ) end [2025-02-05 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405682', 'tblTempVendorCDR_20' ) start [2025-02-05 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405682', 'tblTempVendorCDR_20' ) end [2025-02-05 05:52:18] Production.INFO: ProcessCDR(1,14405682,1,1,2) [2025-02-05 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405682', 'tblTempUsageDetail_20' ) start [2025-02-05 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405682', 'tblTempUsageDetail_20' ) end [2025-02-05 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:52:21] Production.INFO: ==13803== Releasing lock... [2025-02-05 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:52:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:53:05 [end_date_ymd] => 2025-02-05 05:53:05 [RateCDR] => 1 ) [2025-02-05 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:53:05' and `end` < '2025-02-05 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:53:18] Production.INFO: count ==103 [2025-02-05 05:53:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:53:05 - End Time 2025-02-05 05:53:05 [2025-02-05 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405687', 'tblTempUsageDetail_20' ) start [2025-02-05 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405687', 'tblTempUsageDetail_20' ) end [2025-02-05 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405687', 'tblTempVendorCDR_20' ) start [2025-02-05 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405687', 'tblTempVendorCDR_20' ) end [2025-02-05 05:53:18] Production.INFO: ProcessCDR(1,14405687,1,1,2) [2025-02-05 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405687', 'tblTempUsageDetail_20' ) start [2025-02-05 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405687', 'tblTempUsageDetail_20' ) end [2025-02-05 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:53:21] Production.INFO: ==13880== Releasing lock... [2025-02-05 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:53:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:54:05 [end_date_ymd] => 2025-02-05 05:54:05 [RateCDR] => 1 ) [2025-02-05 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:54:05' and `end` < '2025-02-05 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:54:18] Production.INFO: count ==103 [2025-02-05 05:54:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:54:05 - End Time 2025-02-05 05:54:05 [2025-02-05 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405692', 'tblTempUsageDetail_20' ) start [2025-02-05 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405692', 'tblTempUsageDetail_20' ) end [2025-02-05 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405692', 'tblTempVendorCDR_20' ) start [2025-02-05 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405692', 'tblTempVendorCDR_20' ) end [2025-02-05 05:54:18] Production.INFO: ProcessCDR(1,14405692,1,1,2) [2025-02-05 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405692', 'tblTempUsageDetail_20' ) start [2025-02-05 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405692', 'tblTempUsageDetail_20' ) end [2025-02-05 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:54:21] Production.INFO: ==13951== Releasing lock... [2025-02-05 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:54:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:55:05 [end_date_ymd] => 2025-02-05 05:55:05 [RateCDR] => 1 ) [2025-02-05 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:55:05' and `end` < '2025-02-05 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:55:18] Production.INFO: count ==103 [2025-02-05 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:55:05 - End Time 2025-02-05 05:55:05 [2025-02-05 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405697', 'tblTempUsageDetail_20' ) start [2025-02-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405697', 'tblTempUsageDetail_20' ) end [2025-02-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405697', 'tblTempVendorCDR_20' ) start [2025-02-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405697', 'tblTempVendorCDR_20' ) end [2025-02-05 05:55:18] Production.INFO: ProcessCDR(1,14405697,1,1,2) [2025-02-05 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405697', 'tblTempUsageDetail_20' ) start [2025-02-05 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405697', 'tblTempUsageDetail_20' ) end [2025-02-05 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:55:21] Production.INFO: ==14060== Releasing lock... [2025-02-05 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:55:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:56:06 [end_date_ymd] => 2025-02-05 05:56:06 [RateCDR] => 1 ) [2025-02-05 05:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:56:06' and `end` < '2025-02-05 05:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:56:19] Production.INFO: count ==103 [2025-02-05 05:56:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:56:06 - End Time 2025-02-05 05:56:06 [2025-02-05 05:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405702', 'tblTempUsageDetail_20' ) start [2025-02-05 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405702', 'tblTempUsageDetail_20' ) end [2025-02-05 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405702', 'tblTempVendorCDR_20' ) start [2025-02-05 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405702', 'tblTempVendorCDR_20' ) end [2025-02-05 05:56:19] Production.INFO: ProcessCDR(1,14405702,1,1,2) [2025-02-05 05:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405702', 'tblTempUsageDetail_20' ) start [2025-02-05 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405702', 'tblTempUsageDetail_20' ) end [2025-02-05 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:56:22] Production.INFO: ==14136== Releasing lock... [2025-02-05 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:56:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:57:05 [end_date_ymd] => 2025-02-05 05:57:05 [RateCDR] => 1 ) [2025-02-05 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:57:05' and `end` < '2025-02-05 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:57:18] Production.INFO: count ==103 [2025-02-05 05:57:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:57:05 - End Time 2025-02-05 05:57:05 [2025-02-05 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405707', 'tblTempUsageDetail_20' ) start [2025-02-05 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405707', 'tblTempUsageDetail_20' ) end [2025-02-05 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405707', 'tblTempVendorCDR_20' ) start [2025-02-05 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405707', 'tblTempVendorCDR_20' ) end [2025-02-05 05:57:18] Production.INFO: ProcessCDR(1,14405707,1,1,2) [2025-02-05 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405707', 'tblTempUsageDetail_20' ) start [2025-02-05 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405707', 'tblTempUsageDetail_20' ) end [2025-02-05 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:57:21] Production.INFO: ==14214== Releasing lock... [2025-02-05 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:57:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:58:05 [end_date_ymd] => 2025-02-05 05:58:05 [RateCDR] => 1 ) [2025-02-05 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:58:05' and `end` < '2025-02-05 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:58:19] Production.INFO: count ==104 [2025-02-05 05:58:19] Production.ERROR: pbx CDR StartTime 2025-02-05 02:58:05 - End Time 2025-02-05 05:58:05 [2025-02-05 05:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405712', 'tblTempUsageDetail_20' ) start [2025-02-05 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405712', 'tblTempUsageDetail_20' ) end [2025-02-05 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405712', 'tblTempVendorCDR_20' ) start [2025-02-05 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405712', 'tblTempVendorCDR_20' ) end [2025-02-05 05:58:19] Production.INFO: ProcessCDR(1,14405712,1,1,2) [2025-02-05 05:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405712', 'tblTempUsageDetail_20' ) start [2025-02-05 05:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405712', 'tblTempUsageDetail_20' ) end [2025-02-05 05:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:58:23] Production.INFO: ==14284== Releasing lock... [2025-02-05 05:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:58:23] Production.INFO: 28 MB #Memory Used# [2025-02-05 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 02:59:05 [end_date_ymd] => 2025-02-05 05:59:05 [RateCDR] => 1 ) [2025-02-05 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 02:59:05' and `end` < '2025-02-05 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 05:59:18] Production.INFO: count ==104 [2025-02-05 05:59:18] Production.ERROR: pbx CDR StartTime 2025-02-05 02:59:05 - End Time 2025-02-05 05:59:05 [2025-02-05 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405717', 'tblTempUsageDetail_20' ) start [2025-02-05 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405717', 'tblTempUsageDetail_20' ) end [2025-02-05 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405717', 'tblTempVendorCDR_20' ) start [2025-02-05 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405717', 'tblTempVendorCDR_20' ) end [2025-02-05 05:59:18] Production.INFO: ProcessCDR(1,14405717,1,1,2) [2025-02-05 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405717', 'tblTempUsageDetail_20' ) start [2025-02-05 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405717', 'tblTempUsageDetail_20' ) end [2025-02-05 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 05:59:22] Production.INFO: ==14360== Releasing lock... [2025-02-05 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 05:59:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:00:06 [end_date_ymd] => 2025-02-05 06:00:06 [RateCDR] => 1 ) [2025-02-05 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:00:06' and `end` < '2025-02-05 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:00:19] Production.INFO: count ==109 [2025-02-05 06:00:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:00:06 - End Time 2025-02-05 06:00:06 [2025-02-05 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405723', 'tblTempUsageDetail_20' ) start [2025-02-05 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405723', 'tblTempUsageDetail_20' ) end [2025-02-05 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405723', 'tblTempVendorCDR_20' ) start [2025-02-05 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405723', 'tblTempVendorCDR_20' ) end [2025-02-05 06:00:19] Production.INFO: ProcessCDR(1,14405723,1,1,2) [2025-02-05 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405723', 'tblTempUsageDetail_20' ) start [2025-02-05 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405723', 'tblTempUsageDetail_20' ) end [2025-02-05 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:00:23] Production.INFO: ==14440== Releasing lock... [2025-02-05 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:00:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:01:04 [end_date_ymd] => 2025-02-05 06:01:04 [RateCDR] => 1 ) [2025-02-05 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-02-05 03:01:04' and `end` < '2025-02-05 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-02-05 06:01:17] Production.INFO: count ==111 [2025-02-05 06:01:17] Production.ERROR: pbx CDR StartTime 2025-02-05 03:01:04 - End Time 2025-02-05 06:01:04 [2025-02-05 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405728', 'tblTempUsageDetail_20' ) start [2025-02-05 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405728', 'tblTempUsageDetail_20' ) end [2025-02-05 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405728', 'tblTempVendorCDR_20' ) start [2025-02-05 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405728', 'tblTempVendorCDR_20' ) end [2025-02-05 06:01:17] Production.INFO: ProcessCDR(1,14405728,1,1,2) [2025-02-05 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405728', 'tblTempUsageDetail_20' ) start [2025-02-05 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405728', 'tblTempUsageDetail_20' ) end [2025-02-05 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:01:20] Production.INFO: ==14534== Releasing lock... [2025-02-05 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:01:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:02:05 [end_date_ymd] => 2025-02-05 06:02:05 [RateCDR] => 1 ) [2025-02-05 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:02:05' and `end` < '2025-02-05 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:02:19] Production.INFO: count ==111 [2025-02-05 06:02:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:02:05 - End Time 2025-02-05 06:02:05 [2025-02-05 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405733', 'tblTempUsageDetail_20' ) start [2025-02-05 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405733', 'tblTempUsageDetail_20' ) end [2025-02-05 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405733', 'tblTempVendorCDR_20' ) start [2025-02-05 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405733', 'tblTempVendorCDR_20' ) end [2025-02-05 06:02:19] Production.INFO: ProcessCDR(1,14405733,1,1,2) [2025-02-05 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405733', 'tblTempUsageDetail_20' ) start [2025-02-05 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405733', 'tblTempUsageDetail_20' ) end [2025-02-05 06:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:02:23] Production.INFO: ==14607== Releasing lock... [2025-02-05 06:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:02:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:03:05 [end_date_ymd] => 2025-02-05 06:03:05 [RateCDR] => 1 ) [2025-02-05 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:03:05' and `end` < '2025-02-05 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:03:18] Production.INFO: count ==111 [2025-02-05 06:03:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:03:05 - End Time 2025-02-05 06:03:05 [2025-02-05 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405738', 'tblTempUsageDetail_20' ) start [2025-02-05 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405738', 'tblTempUsageDetail_20' ) end [2025-02-05 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405738', 'tblTempVendorCDR_20' ) start [2025-02-05 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405738', 'tblTempVendorCDR_20' ) end [2025-02-05 06:03:18] Production.INFO: ProcessCDR(1,14405738,1,1,2) [2025-02-05 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405738', 'tblTempUsageDetail_20' ) start [2025-02-05 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405738', 'tblTempUsageDetail_20' ) end [2025-02-05 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:03:22] Production.INFO: ==14677== Releasing lock... [2025-02-05 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:04:05 [end_date_ymd] => 2025-02-05 06:04:05 [RateCDR] => 1 ) [2025-02-05 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:04:05' and `end` < '2025-02-05 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:04:19] Production.INFO: count ==111 [2025-02-05 06:04:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:04:05 - End Time 2025-02-05 06:04:05 [2025-02-05 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405743', 'tblTempUsageDetail_20' ) start [2025-02-05 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405743', 'tblTempUsageDetail_20' ) end [2025-02-05 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405743', 'tblTempVendorCDR_20' ) start [2025-02-05 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405743', 'tblTempVendorCDR_20' ) end [2025-02-05 06:04:19] Production.INFO: ProcessCDR(1,14405743,1,1,2) [2025-02-05 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405743', 'tblTempUsageDetail_20' ) start [2025-02-05 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405743', 'tblTempUsageDetail_20' ) end [2025-02-05 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:04:22] Production.INFO: ==14749== Releasing lock... [2025-02-05 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:05:05 [end_date_ymd] => 2025-02-05 06:05:05 [RateCDR] => 1 ) [2025-02-05 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:05:05' and `end` < '2025-02-05 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:05:19] Production.INFO: count ==111 [2025-02-05 06:05:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:05:05 - End Time 2025-02-05 06:05:05 [2025-02-05 06:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405748', 'tblTempUsageDetail_20' ) start [2025-02-05 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405748', 'tblTempUsageDetail_20' ) end [2025-02-05 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405748', 'tblTempVendorCDR_20' ) start [2025-02-05 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405748', 'tblTempVendorCDR_20' ) end [2025-02-05 06:05:19] Production.INFO: ProcessCDR(1,14405748,1,1,2) [2025-02-05 06:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405748', 'tblTempUsageDetail_20' ) start [2025-02-05 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405748', 'tblTempUsageDetail_20' ) end [2025-02-05 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:05:22] Production.INFO: ==14820== Releasing lock... [2025-02-05 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:05:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:06:05 [end_date_ymd] => 2025-02-05 06:06:05 [RateCDR] => 1 ) [2025-02-05 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:06:05' and `end` < '2025-02-05 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:06:19] Production.INFO: count ==111 [2025-02-05 06:06:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:06:05 - End Time 2025-02-05 06:06:05 [2025-02-05 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405753', 'tblTempUsageDetail_20' ) start [2025-02-05 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405753', 'tblTempUsageDetail_20' ) end [2025-02-05 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405753', 'tblTempVendorCDR_20' ) start [2025-02-05 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405753', 'tblTempVendorCDR_20' ) end [2025-02-05 06:06:19] Production.INFO: ProcessCDR(1,14405753,1,1,2) [2025-02-05 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405753', 'tblTempUsageDetail_20' ) start [2025-02-05 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405753', 'tblTempUsageDetail_20' ) end [2025-02-05 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:06:22] Production.INFO: ==14890== Releasing lock... [2025-02-05 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:07:05 [end_date_ymd] => 2025-02-05 06:07:05 [RateCDR] => 1 ) [2025-02-05 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:07:05' and `end` < '2025-02-05 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:07:18] Production.INFO: count ==111 [2025-02-05 06:07:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:07:05 - End Time 2025-02-05 06:07:05 [2025-02-05 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405758', 'tblTempUsageDetail_20' ) start [2025-02-05 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405758', 'tblTempUsageDetail_20' ) end [2025-02-05 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405758', 'tblTempVendorCDR_20' ) start [2025-02-05 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405758', 'tblTempVendorCDR_20' ) end [2025-02-05 06:07:18] Production.INFO: ProcessCDR(1,14405758,1,1,2) [2025-02-05 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405758', 'tblTempUsageDetail_20' ) start [2025-02-05 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405758', 'tblTempUsageDetail_20' ) end [2025-02-05 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:07:21] Production.INFO: ==14986== Releasing lock... [2025-02-05 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:08:05 [end_date_ymd] => 2025-02-05 06:08:05 [RateCDR] => 1 ) [2025-02-05 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:08:05' and `end` < '2025-02-05 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:08:18] Production.INFO: count ==111 [2025-02-05 06:08:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:08:05 - End Time 2025-02-05 06:08:05 [2025-02-05 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405763', 'tblTempUsageDetail_20' ) start [2025-02-05 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405763', 'tblTempUsageDetail_20' ) end [2025-02-05 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405763', 'tblTempVendorCDR_20' ) start [2025-02-05 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405763', 'tblTempVendorCDR_20' ) end [2025-02-05 06:08:18] Production.INFO: ProcessCDR(1,14405763,1,1,2) [2025-02-05 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405763', 'tblTempUsageDetail_20' ) start [2025-02-05 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405763', 'tblTempUsageDetail_20' ) end [2025-02-05 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:08:21] Production.INFO: ==15059== Releasing lock... [2025-02-05 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:09:05 [end_date_ymd] => 2025-02-05 06:09:05 [RateCDR] => 1 ) [2025-02-05 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:09:05' and `end` < '2025-02-05 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:09:19] Production.INFO: count ==111 [2025-02-05 06:09:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:09:05 - End Time 2025-02-05 06:09:05 [2025-02-05 06:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405768', 'tblTempUsageDetail_20' ) start [2025-02-05 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405768', 'tblTempUsageDetail_20' ) end [2025-02-05 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405768', 'tblTempVendorCDR_20' ) start [2025-02-05 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405768', 'tblTempVendorCDR_20' ) end [2025-02-05 06:09:19] Production.INFO: ProcessCDR(1,14405768,1,1,2) [2025-02-05 06:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405768', 'tblTempUsageDetail_20' ) start [2025-02-05 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405768', 'tblTempUsageDetail_20' ) end [2025-02-05 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:09:22] Production.INFO: ==15132== Releasing lock... [2025-02-05 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:09:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:10:05 [end_date_ymd] => 2025-02-05 06:10:05 [RateCDR] => 1 ) [2025-02-05 06:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:10:05' and `end` < '2025-02-05 06:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:10:18] Production.INFO: count ==111 [2025-02-05 06:10:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:10:05 - End Time 2025-02-05 06:10:05 [2025-02-05 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405774', 'tblTempUsageDetail_20' ) start [2025-02-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405774', 'tblTempUsageDetail_20' ) end [2025-02-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405774', 'tblTempVendorCDR_20' ) start [2025-02-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405774', 'tblTempVendorCDR_20' ) end [2025-02-05 06:10:18] Production.INFO: ProcessCDR(1,14405774,1,1,2) [2025-02-05 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405774', 'tblTempUsageDetail_20' ) start [2025-02-05 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405774', 'tblTempUsageDetail_20' ) end [2025-02-05 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:10:21] Production.INFO: ==15206== Releasing lock... [2025-02-05 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:11:05 [end_date_ymd] => 2025-02-05 06:11:05 [RateCDR] => 1 ) [2025-02-05 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:11:05' and `end` < '2025-02-05 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:11:18] Production.INFO: count ==111 [2025-02-05 06:11:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:11:05 - End Time 2025-02-05 06:11:05 [2025-02-05 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405779', 'tblTempUsageDetail_20' ) start [2025-02-05 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405779', 'tblTempUsageDetail_20' ) end [2025-02-05 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405779', 'tblTempVendorCDR_20' ) start [2025-02-05 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405779', 'tblTempVendorCDR_20' ) end [2025-02-05 06:11:18] Production.INFO: ProcessCDR(1,14405779,1,1,2) [2025-02-05 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405779', 'tblTempUsageDetail_20' ) start [2025-02-05 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405779', 'tblTempUsageDetail_20' ) end [2025-02-05 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:11:21] Production.INFO: ==15319== Releasing lock... [2025-02-05 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:12:06 [end_date_ymd] => 2025-02-05 06:12:06 [RateCDR] => 1 ) [2025-02-05 06:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:12:06' and `end` < '2025-02-05 06:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:12:19] Production.INFO: count ==111 [2025-02-05 06:12:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:12:06 - End Time 2025-02-05 06:12:06 [2025-02-05 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405784', 'tblTempUsageDetail_20' ) start [2025-02-05 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405784', 'tblTempUsageDetail_20' ) end [2025-02-05 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405784', 'tblTempVendorCDR_20' ) start [2025-02-05 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405784', 'tblTempVendorCDR_20' ) end [2025-02-05 06:12:19] Production.INFO: ProcessCDR(1,14405784,1,1,2) [2025-02-05 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405784', 'tblTempUsageDetail_20' ) start [2025-02-05 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405784', 'tblTempUsageDetail_20' ) end [2025-02-05 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:12:22] Production.INFO: ==15391== Releasing lock... [2025-02-05 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:13:05 [end_date_ymd] => 2025-02-05 06:13:05 [RateCDR] => 1 ) [2025-02-05 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:13:05' and `end` < '2025-02-05 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:13:18] Production.INFO: count ==111 [2025-02-05 06:13:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:13:05 - End Time 2025-02-05 06:13:05 [2025-02-05 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405789', 'tblTempUsageDetail_20' ) start [2025-02-05 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405789', 'tblTempUsageDetail_20' ) end [2025-02-05 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405789', 'tblTempVendorCDR_20' ) start [2025-02-05 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405789', 'tblTempVendorCDR_20' ) end [2025-02-05 06:13:18] Production.INFO: ProcessCDR(1,14405789,1,1,2) [2025-02-05 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405789', 'tblTempUsageDetail_20' ) start [2025-02-05 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405789', 'tblTempUsageDetail_20' ) end [2025-02-05 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:13:21] Production.INFO: ==15461== Releasing lock... [2025-02-05 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:14:05 [end_date_ymd] => 2025-02-05 06:14:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 03:14:05' and `end` < '2025-02-05 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-02-05 06:14:19] Production.INFO: count ==111 [2025-02-05 06:14:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:14:05 - End Time 2025-02-05 06:14:05 [2025-02-05 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405794', 'tblTempUsageDetail_20' ) start [2025-02-05 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405794', 'tblTempUsageDetail_20' ) end [2025-02-05 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405794', 'tblTempVendorCDR_20' ) start [2025-02-05 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405794', 'tblTempVendorCDR_20' ) end [2025-02-05 06:14:19] Production.INFO: ProcessCDR(1,14405794,1,1,2) [2025-02-05 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405794', 'tblTempUsageDetail_20' ) start [2025-02-05 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405794', 'tblTempUsageDetail_20' ) end [2025-02-05 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:14:22] Production.INFO: ==15550== Releasing lock... [2025-02-05 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:15:05 [end_date_ymd] => 2025-02-05 06:15:05 [RateCDR] => 1 ) [2025-02-05 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:15:05' and `end` < '2025-02-05 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:15:17] Production.INFO: count ==111 [2025-02-05 06:15:17] Production.ERROR: pbx CDR StartTime 2025-02-05 03:15:05 - End Time 2025-02-05 06:15:05 [2025-02-05 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405799', 'tblTempUsageDetail_20' ) start [2025-02-05 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405799', 'tblTempUsageDetail_20' ) end [2025-02-05 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405799', 'tblTempVendorCDR_20' ) start [2025-02-05 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405799', 'tblTempVendorCDR_20' ) end [2025-02-05 06:15:17] Production.INFO: ProcessCDR(1,14405799,1,1,2) [2025-02-05 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405799', 'tblTempUsageDetail_20' ) start [2025-02-05 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405799', 'tblTempUsageDetail_20' ) end [2025-02-05 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:15:20] Production.INFO: ==15626== Releasing lock... [2025-02-05 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:15:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:16:05 [end_date_ymd] => 2025-02-05 06:16:05 [RateCDR] => 1 ) [2025-02-05 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:16:05' and `end` < '2025-02-05 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:16:18] Production.INFO: count ==111 [2025-02-05 06:16:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:16:05 - End Time 2025-02-05 06:16:05 [2025-02-05 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405804', 'tblTempUsageDetail_20' ) start [2025-02-05 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405804', 'tblTempUsageDetail_20' ) end [2025-02-05 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405804', 'tblTempVendorCDR_20' ) start [2025-02-05 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405804', 'tblTempVendorCDR_20' ) end [2025-02-05 06:16:18] Production.INFO: ProcessCDR(1,14405804,1,1,2) [2025-02-05 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405804', 'tblTempUsageDetail_20' ) start [2025-02-05 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405804', 'tblTempUsageDetail_20' ) end [2025-02-05 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:16:21] Production.INFO: ==15702== Releasing lock... [2025-02-05 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:17:05 [end_date_ymd] => 2025-02-05 06:17:05 [RateCDR] => 1 ) [2025-02-05 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:17:05' and `end` < '2025-02-05 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:17:18] Production.INFO: count ==111 [2025-02-05 06:17:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:17:05 - End Time 2025-02-05 06:17:05 [2025-02-05 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405809', 'tblTempUsageDetail_20' ) start [2025-02-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405809', 'tblTempUsageDetail_20' ) end [2025-02-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405809', 'tblTempVendorCDR_20' ) start [2025-02-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405809', 'tblTempVendorCDR_20' ) end [2025-02-05 06:17:18] Production.INFO: ProcessCDR(1,14405809,1,1,2) [2025-02-05 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405809', 'tblTempUsageDetail_20' ) start [2025-02-05 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405809', 'tblTempUsageDetail_20' ) end [2025-02-05 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:17:21] Production.INFO: ==15784== Releasing lock... [2025-02-05 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:18:05 [end_date_ymd] => 2025-02-05 06:18:05 [RateCDR] => 1 ) [2025-02-05 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:18:05' and `end` < '2025-02-05 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:18:19] Production.INFO: count ==111 [2025-02-05 06:18:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:18:05 - End Time 2025-02-05 06:18:05 [2025-02-05 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405814', 'tblTempUsageDetail_20' ) start [2025-02-05 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405814', 'tblTempUsageDetail_20' ) end [2025-02-05 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405814', 'tblTempVendorCDR_20' ) start [2025-02-05 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405814', 'tblTempVendorCDR_20' ) end [2025-02-05 06:18:19] Production.INFO: ProcessCDR(1,14405814,1,1,2) [2025-02-05 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405814', 'tblTempUsageDetail_20' ) start [2025-02-05 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405814', 'tblTempUsageDetail_20' ) end [2025-02-05 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:18:22] Production.INFO: ==15857== Releasing lock... [2025-02-05 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:19:05 [end_date_ymd] => 2025-02-05 06:19:05 [RateCDR] => 1 ) [2025-02-05 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:19:05' and `end` < '2025-02-05 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:19:18] Production.INFO: count ==111 [2025-02-05 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:19:05 - End Time 2025-02-05 06:19:05 [2025-02-05 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405819', 'tblTempUsageDetail_20' ) start [2025-02-05 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405819', 'tblTempUsageDetail_20' ) end [2025-02-05 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405819', 'tblTempVendorCDR_20' ) start [2025-02-05 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405819', 'tblTempVendorCDR_20' ) end [2025-02-05 06:19:18] Production.INFO: ProcessCDR(1,14405819,1,1,2) [2025-02-05 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405819', 'tblTempUsageDetail_20' ) start [2025-02-05 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405819', 'tblTempUsageDetail_20' ) end [2025-02-05 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:19:21] Production.INFO: ==15933== Releasing lock... [2025-02-05 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:20:06 [end_date_ymd] => 2025-02-05 06:20:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 03:20:06' and `end` < '2025-02-05 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-02-05 06:20:19] Production.INFO: count ==106 [2025-02-05 06:20:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:20:06 - End Time 2025-02-05 06:20:06 [2025-02-05 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405825', 'tblTempUsageDetail_20' ) start [2025-02-05 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405825', 'tblTempUsageDetail_20' ) end [2025-02-05 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405825', 'tblTempVendorCDR_20' ) start [2025-02-05 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405825', 'tblTempVendorCDR_20' ) end [2025-02-05 06:20:19] Production.INFO: ProcessCDR(1,14405825,1,1,2) [2025-02-05 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405825', 'tblTempUsageDetail_20' ) start [2025-02-05 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405825', 'tblTempUsageDetail_20' ) end [2025-02-05 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:20:22] Production.INFO: ==16014== Releasing lock... [2025-02-05 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:21:04 [end_date_ymd] => 2025-02-05 06:21:04 [RateCDR] => 1 ) [2025-02-05 06:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:21:04' and `end` < '2025-02-05 06:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:21:17] Production.INFO: count ==100 [2025-02-05 06:21:17] Production.ERROR: pbx CDR StartTime 2025-02-05 03:21:04 - End Time 2025-02-05 06:21:04 [2025-02-05 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405830', 'tblTempUsageDetail_20' ) start [2025-02-05 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405830', 'tblTempUsageDetail_20' ) end [2025-02-05 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405830', 'tblTempVendorCDR_20' ) start [2025-02-05 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405830', 'tblTempVendorCDR_20' ) end [2025-02-05 06:21:17] Production.INFO: ProcessCDR(1,14405830,1,1,2) [2025-02-05 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405830', 'tblTempUsageDetail_20' ) start [2025-02-05 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405830', 'tblTempUsageDetail_20' ) end [2025-02-05 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:21:20] Production.INFO: ==16105== Releasing lock... [2025-02-05 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:21:20] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:22:05 [end_date_ymd] => 2025-02-05 06:22:05 [RateCDR] => 1 ) [2025-02-05 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:22:05' and `end` < '2025-02-05 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:22:18] Production.INFO: count ==100 [2025-02-05 06:22:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:22:05 - End Time 2025-02-05 06:22:05 [2025-02-05 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405835', 'tblTempUsageDetail_20' ) start [2025-02-05 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405835', 'tblTempUsageDetail_20' ) end [2025-02-05 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405835', 'tblTempVendorCDR_20' ) start [2025-02-05 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405835', 'tblTempVendorCDR_20' ) end [2025-02-05 06:22:18] Production.INFO: ProcessCDR(1,14405835,1,1,2) [2025-02-05 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405835', 'tblTempUsageDetail_20' ) start [2025-02-05 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405835', 'tblTempUsageDetail_20' ) end [2025-02-05 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:22:22] Production.INFO: ==16181== Releasing lock... [2025-02-05 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:22:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:23:05 [end_date_ymd] => 2025-02-05 06:23:05 [RateCDR] => 1 ) [2025-02-05 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:23:05' and `end` < '2025-02-05 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:23:18] Production.INFO: count ==100 [2025-02-05 06:23:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:23:05 - End Time 2025-02-05 06:23:05 [2025-02-05 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405840', 'tblTempUsageDetail_20' ) start [2025-02-05 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405840', 'tblTempUsageDetail_20' ) end [2025-02-05 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405840', 'tblTempVendorCDR_20' ) start [2025-02-05 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405840', 'tblTempVendorCDR_20' ) end [2025-02-05 06:23:18] Production.INFO: ProcessCDR(1,14405840,1,1,2) [2025-02-05 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405840', 'tblTempUsageDetail_20' ) start [2025-02-05 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405840', 'tblTempUsageDetail_20' ) end [2025-02-05 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:23:21] Production.INFO: ==16252== Releasing lock... [2025-02-05 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:23:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:24:05 [end_date_ymd] => 2025-02-05 06:24:05 [RateCDR] => 1 ) [2025-02-05 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:24:05' and `end` < '2025-02-05 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:24:18] Production.INFO: count ==100 [2025-02-05 06:24:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:24:05 - End Time 2025-02-05 06:24:05 [2025-02-05 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405845', 'tblTempUsageDetail_20' ) start [2025-02-05 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405845', 'tblTempUsageDetail_20' ) end [2025-02-05 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405845', 'tblTempVendorCDR_20' ) start [2025-02-05 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405845', 'tblTempVendorCDR_20' ) end [2025-02-05 06:24:18] Production.INFO: ProcessCDR(1,14405845,1,1,2) [2025-02-05 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405845', 'tblTempUsageDetail_20' ) start [2025-02-05 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405845', 'tblTempUsageDetail_20' ) end [2025-02-05 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:24:22] Production.INFO: ==16326== Releasing lock... [2025-02-05 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:24:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:25:05 [end_date_ymd] => 2025-02-05 06:25:05 [RateCDR] => 1 ) [2025-02-05 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:25:05' and `end` < '2025-02-05 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:25:18] Production.INFO: count ==99 [2025-02-05 06:25:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:25:05 - End Time 2025-02-05 06:25:05 [2025-02-05 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405850', 'tblTempUsageDetail_20' ) start [2025-02-05 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405850', 'tblTempUsageDetail_20' ) end [2025-02-05 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405850', 'tblTempVendorCDR_20' ) start [2025-02-05 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405850', 'tblTempVendorCDR_20' ) end [2025-02-05 06:25:18] Production.INFO: ProcessCDR(1,14405850,1,1,2) [2025-02-05 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405850', 'tblTempUsageDetail_20' ) start [2025-02-05 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405850', 'tblTempUsageDetail_20' ) end [2025-02-05 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:25:21] Production.INFO: ==16399== Releasing lock... [2025-02-05 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:26:04 [end_date_ymd] => 2025-02-05 06:26:04 [RateCDR] => 1 ) [2025-02-05 06:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:26:04' and `end` < '2025-02-05 06:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:26:18] Production.INFO: count ==99 [2025-02-05 06:26:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:26:04 - End Time 2025-02-05 06:26:04 [2025-02-05 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405855', 'tblTempUsageDetail_20' ) start [2025-02-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405855', 'tblTempUsageDetail_20' ) end [2025-02-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405855', 'tblTempVendorCDR_20' ) start [2025-02-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405855', 'tblTempVendorCDR_20' ) end [2025-02-05 06:26:18] Production.INFO: ProcessCDR(1,14405855,1,1,2) [2025-02-05 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405855', 'tblTempUsageDetail_20' ) start [2025-02-05 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405855', 'tblTempUsageDetail_20' ) end [2025-02-05 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:26:21] Production.INFO: ==16511== Releasing lock... [2025-02-05 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:26:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:27:05 [end_date_ymd] => 2025-02-05 06:27:05 [RateCDR] => 1 ) [2025-02-05 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:27:05' and `end` < '2025-02-05 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:27:17] Production.INFO: count ==99 [2025-02-05 06:27:17] Production.ERROR: pbx CDR StartTime 2025-02-05 03:27:05 - End Time 2025-02-05 06:27:05 [2025-02-05 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405860', 'tblTempUsageDetail_20' ) start [2025-02-05 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405860', 'tblTempUsageDetail_20' ) end [2025-02-05 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405860', 'tblTempVendorCDR_20' ) start [2025-02-05 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405860', 'tblTempVendorCDR_20' ) end [2025-02-05 06:27:17] Production.INFO: ProcessCDR(1,14405860,1,1,2) [2025-02-05 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405860', 'tblTempUsageDetail_20' ) start [2025-02-05 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405860', 'tblTempUsageDetail_20' ) end [2025-02-05 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:27:20] Production.INFO: ==16596== Releasing lock... [2025-02-05 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:27:20] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:28:06 [end_date_ymd] => 2025-02-05 06:28:06 [RateCDR] => 1 ) [2025-02-05 06:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:28:06' and `end` < '2025-02-05 06:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:28:18] Production.INFO: count ==99 [2025-02-05 06:28:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:28:06 - End Time 2025-02-05 06:28:06 [2025-02-05 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405865', 'tblTempUsageDetail_20' ) start [2025-02-05 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405865', 'tblTempUsageDetail_20' ) end [2025-02-05 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405865', 'tblTempVendorCDR_20' ) start [2025-02-05 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405865', 'tblTempVendorCDR_20' ) end [2025-02-05 06:28:18] Production.INFO: ProcessCDR(1,14405865,1,1,2) [2025-02-05 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405865', 'tblTempUsageDetail_20' ) start [2025-02-05 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405865', 'tblTempUsageDetail_20' ) end [2025-02-05 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:28:21] Production.INFO: ==16680== Releasing lock... [2025-02-05 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:28:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:29:05 [end_date_ymd] => 2025-02-05 06:29:05 [RateCDR] => 1 ) [2025-02-05 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:29:05' and `end` < '2025-02-05 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:29:18] Production.INFO: count ==99 [2025-02-05 06:29:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:29:05 - End Time 2025-02-05 06:29:05 [2025-02-05 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405870', 'tblTempUsageDetail_20' ) start [2025-02-05 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405870', 'tblTempUsageDetail_20' ) end [2025-02-05 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405870', 'tblTempVendorCDR_20' ) start [2025-02-05 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405870', 'tblTempVendorCDR_20' ) end [2025-02-05 06:29:18] Production.INFO: ProcessCDR(1,14405870,1,1,2) [2025-02-05 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405870', 'tblTempUsageDetail_20' ) start [2025-02-05 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405870', 'tblTempUsageDetail_20' ) end [2025-02-05 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:29:21] Production.INFO: ==16753== Releasing lock... [2025-02-05 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:29:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:30:06 [end_date_ymd] => 2025-02-05 06:30:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 03:30:06' and `end` < '2025-02-05 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-02-05 06:30:19] Production.INFO: count ==99 [2025-02-05 06:30:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:30:06 - End Time 2025-02-05 06:30:06 [2025-02-05 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405876', 'tblTempUsageDetail_20' ) start [2025-02-05 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405876', 'tblTempUsageDetail_20' ) end [2025-02-05 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405876', 'tblTempVendorCDR_20' ) start [2025-02-05 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405876', 'tblTempVendorCDR_20' ) end [2025-02-05 06:30:19] Production.INFO: ProcessCDR(1,14405876,1,1,2) [2025-02-05 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405876', 'tblTempUsageDetail_20' ) start [2025-02-05 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405876', 'tblTempUsageDetail_20' ) end [2025-02-05 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:30:22] Production.INFO: ==16832== Releasing lock... [2025-02-05 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:30:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:31:05 [end_date_ymd] => 2025-02-05 06:31:05 [RateCDR] => 1 ) [2025-02-05 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:31:05' and `end` < '2025-02-05 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:31:18] Production.INFO: count ==100 [2025-02-05 06:31:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:31:05 - End Time 2025-02-05 06:31:05 [2025-02-05 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405881', 'tblTempUsageDetail_20' ) start [2025-02-05 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405881', 'tblTempUsageDetail_20' ) end [2025-02-05 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405881', 'tblTempVendorCDR_20' ) start [2025-02-05 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405881', 'tblTempVendorCDR_20' ) end [2025-02-05 06:31:18] Production.INFO: ProcessCDR(1,14405881,1,1,2) [2025-02-05 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405881', 'tblTempUsageDetail_20' ) start [2025-02-05 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405881', 'tblTempUsageDetail_20' ) end [2025-02-05 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:31:21] Production.INFO: ==16909== Releasing lock... [2025-02-05 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:31:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:32:06 [end_date_ymd] => 2025-02-05 06:32:06 [RateCDR] => 1 ) [2025-02-05 06:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:32:06' and `end` < '2025-02-05 06:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:32:19] Production.INFO: count ==100 [2025-02-05 06:32:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:32:06 - End Time 2025-02-05 06:32:06 [2025-02-05 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405886', 'tblTempUsageDetail_20' ) start [2025-02-05 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405886', 'tblTempUsageDetail_20' ) end [2025-02-05 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405886', 'tblTempVendorCDR_20' ) start [2025-02-05 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405886', 'tblTempVendorCDR_20' ) end [2025-02-05 06:32:19] Production.INFO: ProcessCDR(1,14405886,1,1,2) [2025-02-05 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405886', 'tblTempUsageDetail_20' ) start [2025-02-05 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405886', 'tblTempUsageDetail_20' ) end [2025-02-05 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:32:22] Production.INFO: ==16988== Releasing lock... [2025-02-05 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:32:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:33:04 [end_date_ymd] => 2025-02-05 06:33:04 [RateCDR] => 1 ) [2025-02-05 06:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:33:04' and `end` < '2025-02-05 06:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:33:18] Production.INFO: count ==100 [2025-02-05 06:33:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:33:04 - End Time 2025-02-05 06:33:04 [2025-02-05 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405891', 'tblTempUsageDetail_20' ) start [2025-02-05 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405891', 'tblTempUsageDetail_20' ) end [2025-02-05 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405891', 'tblTempVendorCDR_20' ) start [2025-02-05 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405891', 'tblTempVendorCDR_20' ) end [2025-02-05 06:33:18] Production.INFO: ProcessCDR(1,14405891,1,1,2) [2025-02-05 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405891', 'tblTempUsageDetail_20' ) start [2025-02-05 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405891', 'tblTempUsageDetail_20' ) end [2025-02-05 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:33:21] Production.INFO: ==17067== Releasing lock... [2025-02-05 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:34:05 [end_date_ymd] => 2025-02-05 06:34:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 03:34:05' and `end` < '2025-02-05 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-02-05 06:34:18] Production.INFO: count ==100 [2025-02-05 06:34:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:34:05 - End Time 2025-02-05 06:34:05 [2025-02-05 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405896', 'tblTempUsageDetail_20' ) start [2025-02-05 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405896', 'tblTempUsageDetail_20' ) end [2025-02-05 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405896', 'tblTempVendorCDR_20' ) start [2025-02-05 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405896', 'tblTempVendorCDR_20' ) end [2025-02-05 06:34:18] Production.INFO: ProcessCDR(1,14405896,1,1,2) [2025-02-05 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405896', 'tblTempUsageDetail_20' ) start [2025-02-05 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405896', 'tblTempUsageDetail_20' ) end [2025-02-05 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:34:22] Production.INFO: ==17159== Releasing lock... [2025-02-05 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:34:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:35:05 [end_date_ymd] => 2025-02-05 06:35:05 [RateCDR] => 1 ) [2025-02-05 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:35:05' and `end` < '2025-02-05 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:35:17] Production.INFO: count ==100 [2025-02-05 06:35:17] Production.ERROR: pbx CDR StartTime 2025-02-05 03:35:05 - End Time 2025-02-05 06:35:05 [2025-02-05 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405901', 'tblTempUsageDetail_20' ) start [2025-02-05 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405901', 'tblTempUsageDetail_20' ) end [2025-02-05 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405901', 'tblTempVendorCDR_20' ) start [2025-02-05 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405901', 'tblTempVendorCDR_20' ) end [2025-02-05 06:35:17] Production.INFO: ProcessCDR(1,14405901,1,1,2) [2025-02-05 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405901', 'tblTempUsageDetail_20' ) start [2025-02-05 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405901', 'tblTempUsageDetail_20' ) end [2025-02-05 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:35:20] Production.INFO: ==17238== Releasing lock... [2025-02-05 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:35:20] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:36:06 [end_date_ymd] => 2025-02-05 06:36:06 [RateCDR] => 1 ) [2025-02-05 06:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:36:06' and `end` < '2025-02-05 06:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:36:19] Production.INFO: count ==100 [2025-02-05 06:36:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:36:06 - End Time 2025-02-05 06:36:06 [2025-02-05 06:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405906', 'tblTempUsageDetail_20' ) start [2025-02-05 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405906', 'tblTempUsageDetail_20' ) end [2025-02-05 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405906', 'tblTempVendorCDR_20' ) start [2025-02-05 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405906', 'tblTempVendorCDR_20' ) end [2025-02-05 06:36:19] Production.INFO: ProcessCDR(1,14405906,1,1,2) [2025-02-05 06:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405906', 'tblTempUsageDetail_20' ) start [2025-02-05 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405906', 'tblTempUsageDetail_20' ) end [2025-02-05 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:36:22] Production.INFO: ==17318== Releasing lock... [2025-02-05 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:36:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:37:06 [end_date_ymd] => 2025-02-05 06:37:06 [RateCDR] => 1 ) [2025-02-05 06:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:37:06' and `end` < '2025-02-05 06:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:37:19] Production.INFO: count ==100 [2025-02-05 06:37:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:37:06 - End Time 2025-02-05 06:37:06 [2025-02-05 06:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405911', 'tblTempUsageDetail_20' ) start [2025-02-05 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405911', 'tblTempUsageDetail_20' ) end [2025-02-05 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405911', 'tblTempVendorCDR_20' ) start [2025-02-05 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405911', 'tblTempVendorCDR_20' ) end [2025-02-05 06:37:19] Production.INFO: ProcessCDR(1,14405911,1,1,2) [2025-02-05 06:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405911', 'tblTempUsageDetail_20' ) start [2025-02-05 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405911', 'tblTempUsageDetail_20' ) end [2025-02-05 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:37:22] Production.INFO: ==17400== Releasing lock... [2025-02-05 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:37:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:38:05 [end_date_ymd] => 2025-02-05 06:38:05 [RateCDR] => 1 ) [2025-02-05 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:38:05' and `end` < '2025-02-05 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:38:18] Production.INFO: count ==99 [2025-02-05 06:38:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:38:05 - End Time 2025-02-05 06:38:05 [2025-02-05 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405916', 'tblTempUsageDetail_20' ) start [2025-02-05 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405916', 'tblTempUsageDetail_20' ) end [2025-02-05 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405916', 'tblTempVendorCDR_20' ) start [2025-02-05 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405916', 'tblTempVendorCDR_20' ) end [2025-02-05 06:38:18] Production.INFO: ProcessCDR(1,14405916,1,1,2) [2025-02-05 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405916', 'tblTempUsageDetail_20' ) start [2025-02-05 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405916', 'tblTempUsageDetail_20' ) end [2025-02-05 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:38:21] Production.INFO: ==17473== Releasing lock... [2025-02-05 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:38:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:39:06 [end_date_ymd] => 2025-02-05 06:39:06 [RateCDR] => 1 ) [2025-02-05 06:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:39:06' and `end` < '2025-02-05 06:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:39:19] Production.INFO: count ==99 [2025-02-05 06:39:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:39:06 - End Time 2025-02-05 06:39:06 [2025-02-05 06:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405921', 'tblTempUsageDetail_20' ) start [2025-02-05 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405921', 'tblTempUsageDetail_20' ) end [2025-02-05 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405921', 'tblTempVendorCDR_20' ) start [2025-02-05 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405921', 'tblTempVendorCDR_20' ) end [2025-02-05 06:39:19] Production.INFO: ProcessCDR(1,14405921,1,1,2) [2025-02-05 06:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405921', 'tblTempUsageDetail_20' ) start [2025-02-05 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405921', 'tblTempUsageDetail_20' ) end [2025-02-05 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:39:22] Production.INFO: ==17552== Releasing lock... [2025-02-05 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:39:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:40:06 [end_date_ymd] => 2025-02-05 06:40:06 [RateCDR] => 1 ) [2025-02-05 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:40:06' and `end` < '2025-02-05 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:40:18] Production.INFO: count ==93 [2025-02-05 06:40:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:40:06 - End Time 2025-02-05 06:40:06 [2025-02-05 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405926', 'tblTempUsageDetail_20' ) start [2025-02-05 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405926', 'tblTempUsageDetail_20' ) end [2025-02-05 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405926', 'tblTempVendorCDR_20' ) start [2025-02-05 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405926', 'tblTempVendorCDR_20' ) end [2025-02-05 06:40:18] Production.INFO: ProcessCDR(1,14405926,1,1,2) [2025-02-05 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405926', 'tblTempUsageDetail_20' ) start [2025-02-05 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405926', 'tblTempUsageDetail_20' ) end [2025-02-05 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:40:22] Production.INFO: ==17626== Releasing lock... [2025-02-05 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:40:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:41:05 [end_date_ymd] => 2025-02-05 06:41:05 [RateCDR] => 1 ) [2025-02-05 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:41:05' and `end` < '2025-02-05 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:41:18] Production.INFO: count ==91 [2025-02-05 06:41:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:41:05 - End Time 2025-02-05 06:41:05 [2025-02-05 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405932', 'tblTempUsageDetail_20' ) start [2025-02-05 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405932', 'tblTempUsageDetail_20' ) end [2025-02-05 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405932', 'tblTempVendorCDR_20' ) start [2025-02-05 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405932', 'tblTempVendorCDR_20' ) end [2025-02-05 06:41:18] Production.INFO: ProcessCDR(1,14405932,1,1,2) [2025-02-05 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405932', 'tblTempUsageDetail_20' ) start [2025-02-05 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405932', 'tblTempUsageDetail_20' ) end [2025-02-05 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:41:21] Production.INFO: ==17702== Releasing lock... [2025-02-05 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:41:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:42:05 [end_date_ymd] => 2025-02-05 06:42:05 [RateCDR] => 1 ) [2025-02-05 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:42:05' and `end` < '2025-02-05 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:42:18] Production.INFO: count ==90 [2025-02-05 06:42:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:42:05 - End Time 2025-02-05 06:42:05 [2025-02-05 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405937', 'tblTempUsageDetail_20' ) start [2025-02-05 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405937', 'tblTempUsageDetail_20' ) end [2025-02-05 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405937', 'tblTempVendorCDR_20' ) start [2025-02-05 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405937', 'tblTempVendorCDR_20' ) end [2025-02-05 06:42:18] Production.INFO: ProcessCDR(1,14405937,1,1,2) [2025-02-05 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405937', 'tblTempUsageDetail_20' ) start [2025-02-05 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405937', 'tblTempUsageDetail_20' ) end [2025-02-05 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:42:21] Production.INFO: ==17815== Releasing lock... [2025-02-05 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:42:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:43:05 [end_date_ymd] => 2025-02-05 06:43:05 [RateCDR] => 1 ) [2025-02-05 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:43:05' and `end` < '2025-02-05 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:43:19] Production.INFO: count ==90 [2025-02-05 06:43:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:43:05 - End Time 2025-02-05 06:43:05 [2025-02-05 06:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405942', 'tblTempUsageDetail_20' ) start [2025-02-05 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405942', 'tblTempUsageDetail_20' ) end [2025-02-05 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405942', 'tblTempVendorCDR_20' ) start [2025-02-05 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405942', 'tblTempVendorCDR_20' ) end [2025-02-05 06:43:19] Production.INFO: ProcessCDR(1,14405942,1,1,2) [2025-02-05 06:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405942', 'tblTempUsageDetail_20' ) start [2025-02-05 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405942', 'tblTempUsageDetail_20' ) end [2025-02-05 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:43:22] Production.INFO: ==17890== Releasing lock... [2025-02-05 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:43:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:44:06 [end_date_ymd] => 2025-02-05 06:44:06 [RateCDR] => 1 ) [2025-02-05 06:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:44:06' and `end` < '2025-02-05 06:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:44:19] Production.INFO: count ==90 [2025-02-05 06:44:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:44:06 - End Time 2025-02-05 06:44:06 [2025-02-05 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405947', 'tblTempUsageDetail_20' ) start [2025-02-05 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405947', 'tblTempUsageDetail_20' ) end [2025-02-05 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405947', 'tblTempVendorCDR_20' ) start [2025-02-05 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405947', 'tblTempVendorCDR_20' ) end [2025-02-05 06:44:19] Production.INFO: ProcessCDR(1,14405947,1,1,2) [2025-02-05 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405947', 'tblTempUsageDetail_20' ) start [2025-02-05 06:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405947', 'tblTempUsageDetail_20' ) end [2025-02-05 06:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:44:23] Production.INFO: ==17964== Releasing lock... [2025-02-05 06:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:44:23] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:45:05 [end_date_ymd] => 2025-02-05 06:45:05 [RateCDR] => 1 ) [2025-02-05 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:45:05' and `end` < '2025-02-05 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:45:18] Production.INFO: count ==90 [2025-02-05 06:45:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:45:05 - End Time 2025-02-05 06:45:05 [2025-02-05 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405952', 'tblTempUsageDetail_20' ) start [2025-02-05 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405952', 'tblTempUsageDetail_20' ) end [2025-02-05 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405952', 'tblTempVendorCDR_20' ) start [2025-02-05 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405952', 'tblTempVendorCDR_20' ) end [2025-02-05 06:45:18] Production.INFO: ProcessCDR(1,14405952,1,1,2) [2025-02-05 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405952', 'tblTempUsageDetail_20' ) start [2025-02-05 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405952', 'tblTempUsageDetail_20' ) end [2025-02-05 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:45:21] Production.INFO: ==18036== Releasing lock... [2025-02-05 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:45:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:46:06 [end_date_ymd] => 2025-02-05 06:46:06 [RateCDR] => 1 ) [2025-02-05 06:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:46:06' and `end` < '2025-02-05 06:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:46:19] Production.INFO: count ==90 [2025-02-05 06:46:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:46:06 - End Time 2025-02-05 06:46:06 [2025-02-05 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405957', 'tblTempUsageDetail_20' ) start [2025-02-05 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405957', 'tblTempUsageDetail_20' ) end [2025-02-05 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405957', 'tblTempVendorCDR_20' ) start [2025-02-05 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405957', 'tblTempVendorCDR_20' ) end [2025-02-05 06:46:19] Production.INFO: ProcessCDR(1,14405957,1,1,2) [2025-02-05 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405957', 'tblTempUsageDetail_20' ) start [2025-02-05 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405957', 'tblTempUsageDetail_20' ) end [2025-02-05 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:46:22] Production.INFO: ==18113== Releasing lock... [2025-02-05 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:46:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:47:05 [end_date_ymd] => 2025-02-05 06:47:05 [RateCDR] => 1 ) [2025-02-05 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:47:05' and `end` < '2025-02-05 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:47:19] Production.INFO: count ==90 [2025-02-05 06:47:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:47:05 - End Time 2025-02-05 06:47:05 [2025-02-05 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405962', 'tblTempUsageDetail_20' ) start [2025-02-05 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405962', 'tblTempUsageDetail_20' ) end [2025-02-05 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405962', 'tblTempVendorCDR_20' ) start [2025-02-05 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405962', 'tblTempVendorCDR_20' ) end [2025-02-05 06:47:19] Production.INFO: ProcessCDR(1,14405962,1,1,2) [2025-02-05 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405962', 'tblTempUsageDetail_20' ) start [2025-02-05 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405962', 'tblTempUsageDetail_20' ) end [2025-02-05 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:47:22] Production.INFO: ==18184== Releasing lock... [2025-02-05 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:47:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:48:05 [end_date_ymd] => 2025-02-05 06:48:05 [RateCDR] => 1 ) [2025-02-05 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:48:05' and `end` < '2025-02-05 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:48:18] Production.INFO: count ==90 [2025-02-05 06:48:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:48:05 - End Time 2025-02-05 06:48:05 [2025-02-05 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405967', 'tblTempUsageDetail_20' ) start [2025-02-05 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405967', 'tblTempUsageDetail_20' ) end [2025-02-05 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405967', 'tblTempVendorCDR_20' ) start [2025-02-05 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405967', 'tblTempVendorCDR_20' ) end [2025-02-05 06:48:18] Production.INFO: ProcessCDR(1,14405967,1,1,2) [2025-02-05 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405967', 'tblTempUsageDetail_20' ) start [2025-02-05 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405967', 'tblTempUsageDetail_20' ) end [2025-02-05 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:48:21] Production.INFO: ==18272== Releasing lock... [2025-02-05 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:48:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:49:05 [end_date_ymd] => 2025-02-05 06:49:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 03:49:05' and `end` < '2025-02-05 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-02-05 06:49:18] Production.INFO: count ==90 [2025-02-05 06:49:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:49:05 - End Time 2025-02-05 06:49:05 [2025-02-05 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405972', 'tblTempUsageDetail_20' ) start [2025-02-05 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405972', 'tblTempUsageDetail_20' ) end [2025-02-05 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405972', 'tblTempVendorCDR_20' ) start [2025-02-05 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405972', 'tblTempVendorCDR_20' ) end [2025-02-05 06:49:18] Production.INFO: ProcessCDR(1,14405972,1,1,2) [2025-02-05 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405972', 'tblTempUsageDetail_20' ) start [2025-02-05 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405972', 'tblTempUsageDetail_20' ) end [2025-02-05 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:49:22] Production.INFO: ==18347== Releasing lock... [2025-02-05 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:49:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:50:06 [end_date_ymd] => 2025-02-05 06:50:06 [RateCDR] => 1 ) [2025-02-05 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:50:06' and `end` < '2025-02-05 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:50:20] Production.INFO: count ==96 [2025-02-05 06:50:20] Production.ERROR: pbx CDR StartTime 2025-02-05 03:50:06 - End Time 2025-02-05 06:50:06 [2025-02-05 06:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405978', 'tblTempUsageDetail_20' ) start [2025-02-05 06:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405978', 'tblTempUsageDetail_20' ) end [2025-02-05 06:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405978', 'tblTempVendorCDR_20' ) start [2025-02-05 06:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405978', 'tblTempVendorCDR_20' ) end [2025-02-05 06:50:20] Production.INFO: ProcessCDR(1,14405978,1,1,2) [2025-02-05 06:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405978', 'tblTempUsageDetail_20' ) start [2025-02-05 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405978', 'tblTempUsageDetail_20' ) end [2025-02-05 06:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:50:23] Production.INFO: ==18431== Releasing lock... [2025-02-05 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:50:23] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:51:05 [end_date_ymd] => 2025-02-05 06:51:05 [RateCDR] => 1 ) [2025-02-05 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:51:05' and `end` < '2025-02-05 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:51:18] Production.INFO: count ==104 [2025-02-05 06:51:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:51:05 - End Time 2025-02-05 06:51:05 [2025-02-05 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405983', 'tblTempUsageDetail_20' ) start [2025-02-05 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405983', 'tblTempUsageDetail_20' ) end [2025-02-05 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405983', 'tblTempVendorCDR_20' ) start [2025-02-05 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405983', 'tblTempVendorCDR_20' ) end [2025-02-05 06:51:18] Production.INFO: ProcessCDR(1,14405983,1,1,2) [2025-02-05 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405983', 'tblTempUsageDetail_20' ) start [2025-02-05 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405983', 'tblTempUsageDetail_20' ) end [2025-02-05 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:51:21] Production.INFO: ==18507== Releasing lock... [2025-02-05 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:51:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:52:05 [end_date_ymd] => 2025-02-05 06:52:05 [RateCDR] => 1 ) [2025-02-05 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:52:05' and `end` < '2025-02-05 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:52:17] Production.INFO: count ==104 [2025-02-05 06:52:17] Production.ERROR: pbx CDR StartTime 2025-02-05 03:52:05 - End Time 2025-02-05 06:52:05 [2025-02-05 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405988', 'tblTempUsageDetail_20' ) start [2025-02-05 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405988', 'tblTempUsageDetail_20' ) end [2025-02-05 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405988', 'tblTempVendorCDR_20' ) start [2025-02-05 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405988', 'tblTempVendorCDR_20' ) end [2025-02-05 06:52:17] Production.INFO: ProcessCDR(1,14405988,1,1,2) [2025-02-05 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405988', 'tblTempUsageDetail_20' ) start [2025-02-05 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405988', 'tblTempUsageDetail_20' ) end [2025-02-05 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:52:21] Production.INFO: ==18579== Releasing lock... [2025-02-05 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:52:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:53:05 [end_date_ymd] => 2025-02-05 06:53:05 [RateCDR] => 1 ) [2025-02-05 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:53:05' and `end` < '2025-02-05 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:53:18] Production.INFO: count ==104 [2025-02-05 06:53:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:53:05 - End Time 2025-02-05 06:53:05 [2025-02-05 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405993', 'tblTempUsageDetail_20' ) start [2025-02-05 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405993', 'tblTempUsageDetail_20' ) end [2025-02-05 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405993', 'tblTempVendorCDR_20' ) start [2025-02-05 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405993', 'tblTempVendorCDR_20' ) end [2025-02-05 06:53:18] Production.INFO: ProcessCDR(1,14405993,1,1,2) [2025-02-05 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405993', 'tblTempUsageDetail_20' ) start [2025-02-05 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405993', 'tblTempUsageDetail_20' ) end [2025-02-05 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:53:21] Production.INFO: ==18657== Releasing lock... [2025-02-05 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:54:05 [end_date_ymd] => 2025-02-05 06:54:05 [RateCDR] => 1 ) [2025-02-05 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:54:05' and `end` < '2025-02-05 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:54:18] Production.INFO: count ==104 [2025-02-05 06:54:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:54:05 - End Time 2025-02-05 06:54:05 [2025-02-05 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405998', 'tblTempUsageDetail_20' ) start [2025-02-05 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14405998', 'tblTempUsageDetail_20' ) end [2025-02-05 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405998', 'tblTempVendorCDR_20' ) start [2025-02-05 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14405998', 'tblTempVendorCDR_20' ) end [2025-02-05 06:54:18] Production.INFO: ProcessCDR(1,14405998,1,1,2) [2025-02-05 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14405998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14405998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14405998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14405998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405998', 'tblTempUsageDetail_20' ) start [2025-02-05 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14405998', 'tblTempUsageDetail_20' ) end [2025-02-05 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:54:21] Production.INFO: ==18732== Releasing lock... [2025-02-05 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:54:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:55:06 [end_date_ymd] => 2025-02-05 06:55:06 [RateCDR] => 1 ) [2025-02-05 06:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:55:06' and `end` < '2025-02-05 06:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:55:19] Production.INFO: count ==104 [2025-02-05 06:55:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:55:06 - End Time 2025-02-05 06:55:06 [2025-02-05 06:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406003', 'tblTempUsageDetail_20' ) start [2025-02-05 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406003', 'tblTempUsageDetail_20' ) end [2025-02-05 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406003', 'tblTempVendorCDR_20' ) start [2025-02-05 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406003', 'tblTempVendorCDR_20' ) end [2025-02-05 06:55:19] Production.INFO: ProcessCDR(1,14406003,1,1,2) [2025-02-05 06:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406003', 'tblTempUsageDetail_20' ) start [2025-02-05 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406003', 'tblTempUsageDetail_20' ) end [2025-02-05 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:55:22] Production.INFO: ==18808== Releasing lock... [2025-02-05 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:55:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:56:05 [end_date_ymd] => 2025-02-05 06:56:05 [RateCDR] => 1 ) [2025-02-05 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:56:05' and `end` < '2025-02-05 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:56:18] Production.INFO: count ==104 [2025-02-05 06:56:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:56:05 - End Time 2025-02-05 06:56:05 [2025-02-05 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406008', 'tblTempUsageDetail_20' ) start [2025-02-05 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406008', 'tblTempUsageDetail_20' ) end [2025-02-05 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406008', 'tblTempVendorCDR_20' ) start [2025-02-05 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406008', 'tblTempVendorCDR_20' ) end [2025-02-05 06:56:18] Production.INFO: ProcessCDR(1,14406008,1,1,2) [2025-02-05 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406008', 'tblTempUsageDetail_20' ) start [2025-02-05 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406008', 'tblTempUsageDetail_20' ) end [2025-02-05 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:56:21] Production.INFO: ==18884== Releasing lock... [2025-02-05 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:56:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:57:05 [end_date_ymd] => 2025-02-05 06:57:05 [RateCDR] => 1 ) [2025-02-05 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:57:05' and `end` < '2025-02-05 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:57:19] Production.INFO: count ==104 [2025-02-05 06:57:19] Production.ERROR: pbx CDR StartTime 2025-02-05 03:57:05 - End Time 2025-02-05 06:57:05 [2025-02-05 06:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406013', 'tblTempUsageDetail_20' ) start [2025-02-05 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406013', 'tblTempUsageDetail_20' ) end [2025-02-05 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406013', 'tblTempVendorCDR_20' ) start [2025-02-05 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406013', 'tblTempVendorCDR_20' ) end [2025-02-05 06:57:19] Production.INFO: ProcessCDR(1,14406013,1,1,2) [2025-02-05 06:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406013', 'tblTempUsageDetail_20' ) start [2025-02-05 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406013', 'tblTempUsageDetail_20' ) end [2025-02-05 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:57:22] Production.INFO: ==19003== Releasing lock... [2025-02-05 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:57:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:58:05 [end_date_ymd] => 2025-02-05 06:58:05 [RateCDR] => 1 ) [2025-02-05 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:58:05' and `end` < '2025-02-05 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:58:18] Production.INFO: count ==104 [2025-02-05 06:58:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:58:05 - End Time 2025-02-05 06:58:05 [2025-02-05 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406018', 'tblTempUsageDetail_20' ) start [2025-02-05 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406018', 'tblTempUsageDetail_20' ) end [2025-02-05 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406018', 'tblTempVendorCDR_20' ) start [2025-02-05 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406018', 'tblTempVendorCDR_20' ) end [2025-02-05 06:58:18] Production.INFO: ProcessCDR(1,14406018,1,1,2) [2025-02-05 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406018', 'tblTempUsageDetail_20' ) start [2025-02-05 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406018', 'tblTempUsageDetail_20' ) end [2025-02-05 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:58:22] Production.INFO: ==19076== Releasing lock... [2025-02-05 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:58:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 03:59:05 [end_date_ymd] => 2025-02-05 06:59:05 [RateCDR] => 1 ) [2025-02-05 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 03:59:05' and `end` < '2025-02-05 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 06:59:18] Production.INFO: count ==104 [2025-02-05 06:59:18] Production.ERROR: pbx CDR StartTime 2025-02-05 03:59:05 - End Time 2025-02-05 06:59:05 [2025-02-05 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406023', 'tblTempUsageDetail_20' ) start [2025-02-05 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406023', 'tblTempUsageDetail_20' ) end [2025-02-05 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406023', 'tblTempVendorCDR_20' ) start [2025-02-05 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406023', 'tblTempVendorCDR_20' ) end [2025-02-05 06:59:18] Production.INFO: ProcessCDR(1,14406023,1,1,2) [2025-02-05 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406023', 'tblTempUsageDetail_20' ) start [2025-02-05 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406023', 'tblTempUsageDetail_20' ) end [2025-02-05 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 06:59:21] Production.INFO: ==19155== Releasing lock... [2025-02-05 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:00:06 [end_date_ymd] => 2025-02-05 07:00:06 [RateCDR] => 1 ) [2025-02-05 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:00:06' and `end` < '2025-02-05 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:00:19] Production.INFO: count ==106 [2025-02-05 07:00:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:00:06 - End Time 2025-02-05 07:00:06 [2025-02-05 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406029', 'tblTempUsageDetail_20' ) start [2025-02-05 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406029', 'tblTempUsageDetail_20' ) end [2025-02-05 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406029', 'tblTempVendorCDR_20' ) start [2025-02-05 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406029', 'tblTempVendorCDR_20' ) end [2025-02-05 07:00:19] Production.INFO: ProcessCDR(1,14406029,1,1,2) [2025-02-05 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406029', 'tblTempUsageDetail_20' ) start [2025-02-05 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406029', 'tblTempUsageDetail_20' ) end [2025-02-05 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:00:22] Production.INFO: ==19236== Releasing lock... [2025-02-05 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:00:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:01:06 [end_date_ymd] => 2025-02-05 07:01:06 [RateCDR] => 1 ) [2025-02-05 07:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:01:06' and `end` < '2025-02-05 07:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:01:22] Production.INFO: count ==110 [2025-02-05 07:01:22] Production.ERROR: pbx CDR StartTime 2025-02-05 04:01:06 - End Time 2025-02-05 07:01:06 [2025-02-05 07:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406034', 'tblTempUsageDetail_20' ) start [2025-02-05 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406034', 'tblTempUsageDetail_20' ) end [2025-02-05 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406034', 'tblTempVendorCDR_20' ) start [2025-02-05 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406034', 'tblTempVendorCDR_20' ) end [2025-02-05 07:01:22] Production.INFO: ProcessCDR(1,14406034,1,1,2) [2025-02-05 07:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406034', 'tblTempUsageDetail_20' ) start [2025-02-05 07:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406034', 'tblTempUsageDetail_20' ) end [2025-02-05 07:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:01:25] Production.INFO: ==19408== Releasing lock... [2025-02-05 07:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:01:25] Production.INFO: 28 MB #Memory Used# [2025-02-05 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:02:06 [end_date_ymd] => 2025-02-05 07:02:06 [RateCDR] => 1 ) [2025-02-05 07:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:02:06' and `end` < '2025-02-05 07:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:02:20] Production.INFO: count ==110 [2025-02-05 07:02:20] Production.ERROR: pbx CDR StartTime 2025-02-05 04:02:06 - End Time 2025-02-05 07:02:06 [2025-02-05 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406039', 'tblTempUsageDetail_20' ) start [2025-02-05 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406039', 'tblTempUsageDetail_20' ) end [2025-02-05 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406039', 'tblTempVendorCDR_20' ) start [2025-02-05 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406039', 'tblTempVendorCDR_20' ) end [2025-02-05 07:02:20] Production.INFO: ProcessCDR(1,14406039,1,1,2) [2025-02-05 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406039', 'tblTempUsageDetail_20' ) start [2025-02-05 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406039', 'tblTempUsageDetail_20' ) end [2025-02-05 07:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:02:24] Production.INFO: ==19483== Releasing lock... [2025-02-05 07:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:02:24] Production.INFO: 28 MB #Memory Used# [2025-02-05 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:03:06 [end_date_ymd] => 2025-02-05 07:03:06 [RateCDR] => 1 ) [2025-02-05 07:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:03:06' and `end` < '2025-02-05 07:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:03:20] Production.INFO: count ==110 [2025-02-05 07:03:20] Production.ERROR: pbx CDR StartTime 2025-02-05 04:03:06 - End Time 2025-02-05 07:03:06 [2025-02-05 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406044', 'tblTempUsageDetail_20' ) start [2025-02-05 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406044', 'tblTempUsageDetail_20' ) end [2025-02-05 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406044', 'tblTempVendorCDR_20' ) start [2025-02-05 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406044', 'tblTempVendorCDR_20' ) end [2025-02-05 07:03:20] Production.INFO: ProcessCDR(1,14406044,1,1,2) [2025-02-05 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406044', 'tblTempUsageDetail_20' ) start [2025-02-05 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406044', 'tblTempUsageDetail_20' ) end [2025-02-05 07:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:03:24] Production.INFO: ==19559== Releasing lock... [2025-02-05 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:03:24] Production.INFO: 28 MB #Memory Used# [2025-02-05 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:04:06 [end_date_ymd] => 2025-02-05 07:04:06 [RateCDR] => 1 ) [2025-02-05 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:04:06' and `end` < '2025-02-05 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:04:19] Production.INFO: count ==110 [2025-02-05 07:04:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:04:06 - End Time 2025-02-05 07:04:06 [2025-02-05 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406049', 'tblTempUsageDetail_20' ) start [2025-02-05 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406049', 'tblTempUsageDetail_20' ) end [2025-02-05 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406049', 'tblTempVendorCDR_20' ) start [2025-02-05 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406049', 'tblTempVendorCDR_20' ) end [2025-02-05 07:04:19] Production.INFO: ProcessCDR(1,14406049,1,1,2) [2025-02-05 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406049', 'tblTempUsageDetail_20' ) start [2025-02-05 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406049', 'tblTempUsageDetail_20' ) end [2025-02-05 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:04:22] Production.INFO: ==19647== Releasing lock... [2025-02-05 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:04:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:05:05 [end_date_ymd] => 2025-02-05 07:05:05 [RateCDR] => 1 ) [2025-02-05 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:05:05' and `end` < '2025-02-05 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:05:19] Production.INFO: count ==110 [2025-02-05 07:05:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:05:05 - End Time 2025-02-05 07:05:05 [2025-02-05 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406054', 'tblTempUsageDetail_20' ) start [2025-02-05 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406054', 'tblTempUsageDetail_20' ) end [2025-02-05 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406054', 'tblTempVendorCDR_20' ) start [2025-02-05 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406054', 'tblTempVendorCDR_20' ) end [2025-02-05 07:05:19] Production.INFO: ProcessCDR(1,14406054,1,1,2) [2025-02-05 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406054', 'tblTempUsageDetail_20' ) start [2025-02-05 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406054', 'tblTempUsageDetail_20' ) end [2025-02-05 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:05:22] Production.INFO: ==19806== Releasing lock... [2025-02-05 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:05:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:06:05 [end_date_ymd] => 2025-02-05 07:06:05 [RateCDR] => 1 ) [2025-02-05 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:06:05' and `end` < '2025-02-05 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:06:19] Production.INFO: count ==110 [2025-02-05 07:06:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:06:05 - End Time 2025-02-05 07:06:05 [2025-02-05 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406059', 'tblTempUsageDetail_20' ) start [2025-02-05 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406059', 'tblTempUsageDetail_20' ) end [2025-02-05 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406059', 'tblTempVendorCDR_20' ) start [2025-02-05 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406059', 'tblTempVendorCDR_20' ) end [2025-02-05 07:06:19] Production.INFO: ProcessCDR(1,14406059,1,1,2) [2025-02-05 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406059', 'tblTempUsageDetail_20' ) start [2025-02-05 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406059', 'tblTempUsageDetail_20' ) end [2025-02-05 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:06:22] Production.INFO: ==19884== Releasing lock... [2025-02-05 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:06:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:07:05 [end_date_ymd] => 2025-02-05 07:07:05 [RateCDR] => 1 ) [2025-02-05 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:07:05' and `end` < '2025-02-05 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:07:19] Production.INFO: count ==110 [2025-02-05 07:07:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:07:05 - End Time 2025-02-05 07:07:05 [2025-02-05 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406064', 'tblTempUsageDetail_20' ) start [2025-02-05 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406064', 'tblTempUsageDetail_20' ) end [2025-02-05 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406064', 'tblTempVendorCDR_20' ) start [2025-02-05 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406064', 'tblTempVendorCDR_20' ) end [2025-02-05 07:07:19] Production.INFO: ProcessCDR(1,14406064,1,1,2) [2025-02-05 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406064', 'tblTempUsageDetail_20' ) start [2025-02-05 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406064', 'tblTempUsageDetail_20' ) end [2025-02-05 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:07:23] Production.INFO: ==19962== Releasing lock... [2025-02-05 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:07:23] Production.INFO: 28 MB #Memory Used# [2025-02-05 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:08:05 [end_date_ymd] => 2025-02-05 07:08:05 [RateCDR] => 1 ) [2025-02-05 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:08:05' and `end` < '2025-02-05 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:08:19] Production.INFO: count ==110 [2025-02-05 07:08:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:08:05 - End Time 2025-02-05 07:08:05 [2025-02-05 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406069', 'tblTempUsageDetail_20' ) start [2025-02-05 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406069', 'tblTempUsageDetail_20' ) end [2025-02-05 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406069', 'tblTempVendorCDR_20' ) start [2025-02-05 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406069', 'tblTempVendorCDR_20' ) end [2025-02-05 07:08:19] Production.INFO: ProcessCDR(1,14406069,1,1,2) [2025-02-05 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406069', 'tblTempUsageDetail_20' ) start [2025-02-05 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406069', 'tblTempUsageDetail_20' ) end [2025-02-05 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:08:22] Production.INFO: ==20119== Releasing lock... [2025-02-05 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:08:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 07:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:09:04 [end_date_ymd] => 2025-02-05 07:09:04 [RateCDR] => 1 ) [2025-02-05 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-02-05 04:09:04' and `end` < '2025-02-05 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-02-05 07:09:18] Production.INFO: count ==110 [2025-02-05 07:09:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:09:04 - End Time 2025-02-05 07:09:04 [2025-02-05 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406074', 'tblTempUsageDetail_20' ) start [2025-02-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406074', 'tblTempUsageDetail_20' ) end [2025-02-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406074', 'tblTempVendorCDR_20' ) start [2025-02-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406074', 'tblTempVendorCDR_20' ) end [2025-02-05 07:09:18] Production.INFO: ProcessCDR(1,14406074,1,1,2) [2025-02-05 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406074', 'tblTempUsageDetail_20' ) start [2025-02-05 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406074', 'tblTempUsageDetail_20' ) end [2025-02-05 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:09:21] Production.INFO: ==20191== Releasing lock... [2025-02-05 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:09:21] Production.INFO: 28 MB #Memory Used# [2025-02-05 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:10:05 [end_date_ymd] => 2025-02-05 07:10:05 [RateCDR] => 1 ) [2025-02-05 07:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:10:05' and `end` < '2025-02-05 07:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:10:19] Production.INFO: count ==110 [2025-02-05 07:10:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:10:05 - End Time 2025-02-05 07:10:05 [2025-02-05 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406079', 'tblTempUsageDetail_20' ) start [2025-02-05 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406079', 'tblTempUsageDetail_20' ) end [2025-02-05 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406079', 'tblTempVendorCDR_20' ) start [2025-02-05 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406079', 'tblTempVendorCDR_20' ) end [2025-02-05 07:10:19] Production.INFO: ProcessCDR(1,14406079,1,1,2) [2025-02-05 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406079', 'tblTempUsageDetail_20' ) start [2025-02-05 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406079', 'tblTempUsageDetail_20' ) end [2025-02-05 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:10:22] Production.INFO: ==20267== Releasing lock... [2025-02-05 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:10:22] Production.INFO: 28 MB #Memory Used# [2025-02-05 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:11:06 [end_date_ymd] => 2025-02-05 07:11:06 [RateCDR] => 1 ) [2025-02-05 07:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:11:06' and `end` < '2025-02-05 07:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:11:20] Production.INFO: count ==115 [2025-02-05 07:11:20] Production.ERROR: pbx CDR StartTime 2025-02-05 04:11:06 - End Time 2025-02-05 07:11:06 [2025-02-05 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406085', 'tblTempUsageDetail_20' ) start [2025-02-05 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406085', 'tblTempUsageDetail_20' ) end [2025-02-05 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406085', 'tblTempVendorCDR_20' ) start [2025-02-05 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406085', 'tblTempVendorCDR_20' ) end [2025-02-05 07:11:20] Production.INFO: ProcessCDR(1,14406085,1,1,2) [2025-02-05 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406085', 'tblTempUsageDetail_20' ) start [2025-02-05 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406085', 'tblTempUsageDetail_20' ) end [2025-02-05 07:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:11:24] Production.INFO: ==20345== Releasing lock... [2025-02-05 07:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:11:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:12:05 [end_date_ymd] => 2025-02-05 07:12:05 [RateCDR] => 1 ) [2025-02-05 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:12:05' and `end` < '2025-02-05 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:12:20] Production.INFO: count ==115 [2025-02-05 07:12:20] Production.ERROR: pbx CDR StartTime 2025-02-05 04:12:05 - End Time 2025-02-05 07:12:05 [2025-02-05 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406090', 'tblTempUsageDetail_20' ) start [2025-02-05 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406090', 'tblTempUsageDetail_20' ) end [2025-02-05 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406090', 'tblTempVendorCDR_20' ) start [2025-02-05 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406090', 'tblTempVendorCDR_20' ) end [2025-02-05 07:12:20] Production.INFO: ProcessCDR(1,14406090,1,1,2) [2025-02-05 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406090', 'tblTempUsageDetail_20' ) start [2025-02-05 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406090', 'tblTempUsageDetail_20' ) end [2025-02-05 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:12:23] Production.INFO: ==20504== Releasing lock... [2025-02-05 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:12:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:13:06 [end_date_ymd] => 2025-02-05 07:13:06 [RateCDR] => 1 ) [2025-02-05 07:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:13:06' and `end` < '2025-02-05 07:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:13:20] Production.INFO: count ==115 [2025-02-05 07:13:20] Production.ERROR: pbx CDR StartTime 2025-02-05 04:13:06 - End Time 2025-02-05 07:13:06 [2025-02-05 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406095', 'tblTempUsageDetail_20' ) start [2025-02-05 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406095', 'tblTempUsageDetail_20' ) end [2025-02-05 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406095', 'tblTempVendorCDR_20' ) start [2025-02-05 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406095', 'tblTempVendorCDR_20' ) end [2025-02-05 07:13:20] Production.INFO: ProcessCDR(1,14406095,1,1,2) [2025-02-05 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406095', 'tblTempUsageDetail_20' ) start [2025-02-05 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406095', 'tblTempUsageDetail_20' ) end [2025-02-05 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:13:23] Production.INFO: ==20618== Releasing lock... [2025-02-05 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:13:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:14:06 [end_date_ymd] => 2025-02-05 07:14:06 [RateCDR] => 1 ) [2025-02-05 07:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:14:06' and `end` < '2025-02-05 07:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:14:20] Production.INFO: count ==115 [2025-02-05 07:14:20] Production.ERROR: pbx CDR StartTime 2025-02-05 04:14:06 - End Time 2025-02-05 07:14:06 [2025-02-05 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406100', 'tblTempUsageDetail_20' ) start [2025-02-05 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406100', 'tblTempUsageDetail_20' ) end [2025-02-05 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406100', 'tblTempVendorCDR_20' ) start [2025-02-05 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406100', 'tblTempVendorCDR_20' ) end [2025-02-05 07:14:20] Production.INFO: ProcessCDR(1,14406100,1,1,2) [2025-02-05 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406100', 'tblTempUsageDetail_20' ) start [2025-02-05 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406100', 'tblTempUsageDetail_20' ) end [2025-02-05 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:14:23] Production.INFO: ==20694== Releasing lock... [2025-02-05 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:14:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:15:05 [end_date_ymd] => 2025-02-05 07:15:05 [RateCDR] => 1 ) [2025-02-05 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:15:05' and `end` < '2025-02-05 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:15:20] Production.INFO: count ==115 [2025-02-05 07:15:20] Production.ERROR: pbx CDR StartTime 2025-02-05 04:15:05 - End Time 2025-02-05 07:15:05 [2025-02-05 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406105', 'tblTempUsageDetail_20' ) start [2025-02-05 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406105', 'tblTempUsageDetail_20' ) end [2025-02-05 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406105', 'tblTempVendorCDR_20' ) start [2025-02-05 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406105', 'tblTempVendorCDR_20' ) end [2025-02-05 07:15:20] Production.INFO: ProcessCDR(1,14406105,1,1,2) [2025-02-05 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406105', 'tblTempUsageDetail_20' ) start [2025-02-05 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406105', 'tblTempUsageDetail_20' ) end [2025-02-05 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:15:23] Production.INFO: ==20855== Releasing lock... [2025-02-05 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:15:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:16:05 [end_date_ymd] => 2025-02-05 07:16:05 [RateCDR] => 1 ) [2025-02-05 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:16:05' and `end` < '2025-02-05 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:16:20] Production.INFO: count ==115 [2025-02-05 07:16:20] Production.ERROR: pbx CDR StartTime 2025-02-05 04:16:05 - End Time 2025-02-05 07:16:05 [2025-02-05 07:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406110', 'tblTempUsageDetail_20' ) start [2025-02-05 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406110', 'tblTempUsageDetail_20' ) end [2025-02-05 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406110', 'tblTempVendorCDR_20' ) start [2025-02-05 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406110', 'tblTempVendorCDR_20' ) end [2025-02-05 07:16:20] Production.INFO: ProcessCDR(1,14406110,1,1,2) [2025-02-05 07:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406110', 'tblTempUsageDetail_20' ) start [2025-02-05 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406110', 'tblTempUsageDetail_20' ) end [2025-02-05 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:16:23] Production.INFO: ==20937== Releasing lock... [2025-02-05 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:16:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:17:04 [end_date_ymd] => 2025-02-05 07:17:04 [RateCDR] => 1 ) [2025-02-05 07:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:17:04' and `end` < '2025-02-05 07:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:17:19] Production.INFO: count ==115 [2025-02-05 07:17:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:17:04 - End Time 2025-02-05 07:17:04 [2025-02-05 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406115', 'tblTempUsageDetail_20' ) start [2025-02-05 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406115', 'tblTempUsageDetail_20' ) end [2025-02-05 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406115', 'tblTempVendorCDR_20' ) start [2025-02-05 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406115', 'tblTempVendorCDR_20' ) end [2025-02-05 07:17:19] Production.INFO: ProcessCDR(1,14406115,1,1,2) [2025-02-05 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406115', 'tblTempUsageDetail_20' ) start [2025-02-05 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406115', 'tblTempUsageDetail_20' ) end [2025-02-05 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:17:23] Production.INFO: ==21009== Releasing lock... [2025-02-05 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:17:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:18:06 [end_date_ymd] => 2025-02-05 07:18:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 04:18:06' and `end` < '2025-02-05 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-02-05 07:18:19] Production.INFO: count ==115 [2025-02-05 07:18:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:18:06 - End Time 2025-02-05 07:18:06 [2025-02-05 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406120', 'tblTempUsageDetail_20' ) start [2025-02-05 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406120', 'tblTempUsageDetail_20' ) end [2025-02-05 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406120', 'tblTempVendorCDR_20' ) start [2025-02-05 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406120', 'tblTempVendorCDR_20' ) end [2025-02-05 07:18:19] Production.INFO: ProcessCDR(1,14406120,1,1,2) [2025-02-05 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406120', 'tblTempUsageDetail_20' ) start [2025-02-05 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406120', 'tblTempUsageDetail_20' ) end [2025-02-05 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:18:22] Production.INFO: ==21084== Releasing lock... [2025-02-05 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:19:05 [end_date_ymd] => 2025-02-05 07:19:05 [RateCDR] => 1 ) [2025-02-05 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:19:05' and `end` < '2025-02-05 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:19:19] Production.INFO: count ==115 [2025-02-05 07:19:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:19:05 - End Time 2025-02-05 07:19:05 [2025-02-05 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406125', 'tblTempUsageDetail_20' ) start [2025-02-05 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406125', 'tblTempUsageDetail_20' ) end [2025-02-05 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406125', 'tblTempVendorCDR_20' ) start [2025-02-05 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406125', 'tblTempVendorCDR_20' ) end [2025-02-05 07:19:19] Production.INFO: ProcessCDR(1,14406125,1,1,2) [2025-02-05 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406125', 'tblTempUsageDetail_20' ) start [2025-02-05 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406125', 'tblTempUsageDetail_20' ) end [2025-02-05 07:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:19:23] Production.INFO: ==21162== Releasing lock... [2025-02-05 07:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:19:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:20:07 [end_date_ymd] => 2025-02-05 07:20:07 [RateCDR] => 1 ) [2025-02-05 07: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-02-05 04:20:07' and `end` < '2025-02-05 07: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-02-05 07:20:20] Production.INFO: count ==115 [2025-02-05 07:20:20] Production.ERROR: pbx CDR StartTime 2025-02-05 04:20:07 - End Time 2025-02-05 07:20:07 [2025-02-05 07:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406131', 'tblTempUsageDetail_20' ) start [2025-02-05 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406131', 'tblTempUsageDetail_20' ) end [2025-02-05 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406131', 'tblTempVendorCDR_20' ) start [2025-02-05 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406131', 'tblTempVendorCDR_20' ) end [2025-02-05 07:20:20] Production.INFO: ProcessCDR(1,14406131,1,1,2) [2025-02-05 07:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406131', 'tblTempUsageDetail_20' ) start [2025-02-05 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406131', 'tblTempUsageDetail_20' ) end [2025-02-05 07:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:20:24] Production.INFO: ==21241== Releasing lock... [2025-02-05 07:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:20:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:21:06 [end_date_ymd] => 2025-02-05 07:21:06 [RateCDR] => 1 ) [2025-02-05 07:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:21:06' and `end` < '2025-02-05 07:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:21:20] Production.INFO: count ==115 [2025-02-05 07:21:20] Production.ERROR: pbx CDR StartTime 2025-02-05 04:21:06 - End Time 2025-02-05 07:21:06 [2025-02-05 07:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406136', 'tblTempUsageDetail_20' ) start [2025-02-05 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406136', 'tblTempUsageDetail_20' ) end [2025-02-05 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406136', 'tblTempVendorCDR_20' ) start [2025-02-05 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406136', 'tblTempVendorCDR_20' ) end [2025-02-05 07:21:20] Production.INFO: ProcessCDR(1,14406136,1,1,2) [2025-02-05 07:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406136', 'tblTempUsageDetail_20' ) start [2025-02-05 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406136', 'tblTempUsageDetail_20' ) end [2025-02-05 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:21:23] Production.INFO: ==21316== Releasing lock... [2025-02-05 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:21:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:22:06 [end_date_ymd] => 2025-02-05 07:22:06 [RateCDR] => 1 ) [2025-02-05 07:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:22:06' and `end` < '2025-02-05 07:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:22:19] Production.INFO: count ==115 [2025-02-05 07:22:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:22:06 - End Time 2025-02-05 07:22:06 [2025-02-05 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406141', 'tblTempUsageDetail_20' ) start [2025-02-05 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406141', 'tblTempUsageDetail_20' ) end [2025-02-05 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406141', 'tblTempVendorCDR_20' ) start [2025-02-05 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406141', 'tblTempVendorCDR_20' ) end [2025-02-05 07:22:19] Production.INFO: ProcessCDR(1,14406141,1,1,2) [2025-02-05 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406141', 'tblTempUsageDetail_20' ) start [2025-02-05 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406141', 'tblTempUsageDetail_20' ) end [2025-02-05 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:22:22] Production.INFO: ==21394== Releasing lock... [2025-02-05 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:22:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:23:05 [end_date_ymd] => 2025-02-05 07:23:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 04:23:05' and `end` < '2025-02-05 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-02-05 07:23:19] Production.INFO: count ==115 [2025-02-05 07:23:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:23:05 - End Time 2025-02-05 07:23:05 [2025-02-05 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406146', 'tblTempUsageDetail_20' ) start [2025-02-05 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406146', 'tblTempUsageDetail_20' ) end [2025-02-05 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406146', 'tblTempVendorCDR_20' ) start [2025-02-05 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406146', 'tblTempVendorCDR_20' ) end [2025-02-05 07:23:19] Production.INFO: ProcessCDR(1,14406146,1,1,2) [2025-02-05 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406146', 'tblTempUsageDetail_20' ) start [2025-02-05 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406146', 'tblTempUsageDetail_20' ) end [2025-02-05 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:23:22] Production.INFO: ==21471== Releasing lock... [2025-02-05 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:24:05 [end_date_ymd] => 2025-02-05 07:24:05 [RateCDR] => 1 ) [2025-02-05 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:24:05' and `end` < '2025-02-05 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:24:19] Production.INFO: count ==115 [2025-02-05 07:24:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:24:05 - End Time 2025-02-05 07:24:05 [2025-02-05 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406151', 'tblTempUsageDetail_20' ) start [2025-02-05 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406151', 'tblTempUsageDetail_20' ) end [2025-02-05 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406151', 'tblTempVendorCDR_20' ) start [2025-02-05 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406151', 'tblTempVendorCDR_20' ) end [2025-02-05 07:24:19] Production.INFO: ProcessCDR(1,14406151,1,1,2) [2025-02-05 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406151', 'tblTempUsageDetail_20' ) start [2025-02-05 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406151', 'tblTempUsageDetail_20' ) end [2025-02-05 07:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:24:23] Production.INFO: ==21548== Releasing lock... [2025-02-05 07:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:24:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:25:05 [end_date_ymd] => 2025-02-05 07:25:05 [RateCDR] => 1 ) [2025-02-05 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:25:05' and `end` < '2025-02-05 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:25:18] Production.INFO: count ==115 [2025-02-05 07:25:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:25:05 - End Time 2025-02-05 07:25:05 [2025-02-05 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406156', 'tblTempUsageDetail_20' ) start [2025-02-05 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406156', 'tblTempUsageDetail_20' ) end [2025-02-05 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406156', 'tblTempVendorCDR_20' ) start [2025-02-05 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406156', 'tblTempVendorCDR_20' ) end [2025-02-05 07:25:18] Production.INFO: ProcessCDR(1,14406156,1,1,2) [2025-02-05 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406156', 'tblTempUsageDetail_20' ) start [2025-02-05 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406156', 'tblTempUsageDetail_20' ) end [2025-02-05 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:25:22] Production.INFO: ==21621== Releasing lock... [2025-02-05 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:25:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:26:05 [end_date_ymd] => 2025-02-05 07:26:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 04:26:05' and `end` < '2025-02-05 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-02-05 07:26:18] Production.INFO: count ==120 [2025-02-05 07:26:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:26:05 - End Time 2025-02-05 07:26:05 [2025-02-05 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406161', 'tblTempUsageDetail_20' ) start [2025-02-05 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406161', 'tblTempUsageDetail_20' ) end [2025-02-05 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406161', 'tblTempVendorCDR_20' ) start [2025-02-05 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406161', 'tblTempVendorCDR_20' ) end [2025-02-05 07:26:18] Production.INFO: ProcessCDR(1,14406161,1,1,2) [2025-02-05 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406161', 'tblTempUsageDetail_20' ) start [2025-02-05 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406161', 'tblTempUsageDetail_20' ) end [2025-02-05 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:26:22] Production.INFO: ==21723== Releasing lock... [2025-02-05 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:26:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:27:06 [end_date_ymd] => 2025-02-05 07:27:06 [RateCDR] => 1 ) [2025-02-05 07:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:27:06' and `end` < '2025-02-05 07:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:27:19] Production.INFO: count ==120 [2025-02-05 07:27:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:27:06 - End Time 2025-02-05 07:27:06 [2025-02-05 07:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406166', 'tblTempUsageDetail_20' ) start [2025-02-05 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406166', 'tblTempUsageDetail_20' ) end [2025-02-05 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406166', 'tblTempVendorCDR_20' ) start [2025-02-05 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406166', 'tblTempVendorCDR_20' ) end [2025-02-05 07:27:19] Production.INFO: ProcessCDR(1,14406166,1,1,2) [2025-02-05 07:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406166', 'tblTempUsageDetail_20' ) start [2025-02-05 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406166', 'tblTempUsageDetail_20' ) end [2025-02-05 07:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:27:23] Production.INFO: ==21798== Releasing lock... [2025-02-05 07:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:27:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:28:06 [end_date_ymd] => 2025-02-05 07:28:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 04:28:06' and `end` < '2025-02-05 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-02-05 07:28:20] Production.INFO: count ==120 [2025-02-05 07:28:20] Production.ERROR: pbx CDR StartTime 2025-02-05 04:28:06 - End Time 2025-02-05 07:28:06 [2025-02-05 07:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406171', 'tblTempUsageDetail_20' ) start [2025-02-05 07:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406171', 'tblTempUsageDetail_20' ) end [2025-02-05 07:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406171', 'tblTempVendorCDR_20' ) start [2025-02-05 07:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406171', 'tblTempVendorCDR_20' ) end [2025-02-05 07:28:20] Production.INFO: ProcessCDR(1,14406171,1,1,2) [2025-02-05 07:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406171', 'tblTempUsageDetail_20' ) start [2025-02-05 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406171', 'tblTempUsageDetail_20' ) end [2025-02-05 07:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:28:23] Production.INFO: ==21913== Releasing lock... [2025-02-05 07:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:28:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:29:05 [end_date_ymd] => 2025-02-05 07:29:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 04:29:05' and `end` < '2025-02-05 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-02-05 07:29:18] Production.INFO: count ==122 [2025-02-05 07:29:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:29:05 - End Time 2025-02-05 07:29:05 [2025-02-05 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406176', 'tblTempUsageDetail_20' ) start [2025-02-05 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406176', 'tblTempUsageDetail_20' ) end [2025-02-05 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406176', 'tblTempVendorCDR_20' ) start [2025-02-05 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406176', 'tblTempVendorCDR_20' ) end [2025-02-05 07:29:18] Production.INFO: ProcessCDR(1,14406176,1,1,2) [2025-02-05 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406176', 'tblTempUsageDetail_20' ) start [2025-02-05 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406176', 'tblTempUsageDetail_20' ) end [2025-02-05 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:29:22] Production.INFO: ==21991== Releasing lock... [2025-02-05 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:29:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:30:06 [end_date_ymd] => 2025-02-05 07:30:06 [RateCDR] => 1 ) [2025-02-05 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:30:06' and `end` < '2025-02-05 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:30:19] Production.INFO: count ==119 [2025-02-05 07:30:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:30:06 - End Time 2025-02-05 07:30:06 [2025-02-05 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406181', 'tblTempUsageDetail_20' ) start [2025-02-05 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406181', 'tblTempUsageDetail_20' ) end [2025-02-05 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406181', 'tblTempVendorCDR_20' ) start [2025-02-05 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406181', 'tblTempVendorCDR_20' ) end [2025-02-05 07:30:19] Production.INFO: ProcessCDR(1,14406181,1,1,2) [2025-02-05 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406181', 'tblTempUsageDetail_20' ) start [2025-02-05 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406181', 'tblTempUsageDetail_20' ) end [2025-02-05 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:30:22] Production.INFO: ==22068== Releasing lock... [2025-02-05 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:31:06 [end_date_ymd] => 2025-02-05 07:31:06 [RateCDR] => 1 ) [2025-02-05 07:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:31:06' and `end` < '2025-02-05 07:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:31:19] Production.INFO: count ==119 [2025-02-05 07:31:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:31:06 - End Time 2025-02-05 07:31:06 [2025-02-05 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406187', 'tblTempUsageDetail_20' ) start [2025-02-05 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406187', 'tblTempUsageDetail_20' ) end [2025-02-05 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406187', 'tblTempVendorCDR_20' ) start [2025-02-05 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406187', 'tblTempVendorCDR_20' ) end [2025-02-05 07:31:19] Production.INFO: ProcessCDR(1,14406187,1,1,2) [2025-02-05 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406187', 'tblTempUsageDetail_20' ) start [2025-02-05 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406187', 'tblTempUsageDetail_20' ) end [2025-02-05 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:31:22] Production.INFO: ==22150== Releasing lock... [2025-02-05 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:32:05 [end_date_ymd] => 2025-02-05 07:32:05 [RateCDR] => 1 ) [2025-02-05 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:32:05' and `end` < '2025-02-05 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:32:18] Production.INFO: count ==119 [2025-02-05 07:32:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:32:05 - End Time 2025-02-05 07:32:05 [2025-02-05 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406192', 'tblTempUsageDetail_20' ) start [2025-02-05 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406192', 'tblTempUsageDetail_20' ) end [2025-02-05 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406192', 'tblTempVendorCDR_20' ) start [2025-02-05 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406192', 'tblTempVendorCDR_20' ) end [2025-02-05 07:32:18] Production.INFO: ProcessCDR(1,14406192,1,1,2) [2025-02-05 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406192', 'tblTempUsageDetail_20' ) start [2025-02-05 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406192', 'tblTempUsageDetail_20' ) end [2025-02-05 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:32:21] Production.INFO: ==22222== Releasing lock... [2025-02-05 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:33:06 [end_date_ymd] => 2025-02-05 07:33:06 [RateCDR] => 1 ) [2025-02-05 07:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:33:06' and `end` < '2025-02-05 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:33:19] Production.INFO: count ==119 [2025-02-05 07:33:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:33:06 - End Time 2025-02-05 07:33:06 [2025-02-05 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406197', 'tblTempUsageDetail_20' ) start [2025-02-05 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406197', 'tblTempUsageDetail_20' ) end [2025-02-05 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406197', 'tblTempVendorCDR_20' ) start [2025-02-05 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406197', 'tblTempVendorCDR_20' ) end [2025-02-05 07:33:19] Production.INFO: ProcessCDR(1,14406197,1,1,2) [2025-02-05 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406197', 'tblTempUsageDetail_20' ) start [2025-02-05 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406197', 'tblTempUsageDetail_20' ) end [2025-02-05 07:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:33:23] Production.INFO: ==22295== Releasing lock... [2025-02-05 07:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:33:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:34:05 [end_date_ymd] => 2025-02-05 07:34:05 [RateCDR] => 1 ) [2025-02-05 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:34:05' and `end` < '2025-02-05 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:34:18] Production.INFO: count ==119 [2025-02-05 07:34:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:34:05 - End Time 2025-02-05 07:34:05 [2025-02-05 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406202', 'tblTempUsageDetail_20' ) start [2025-02-05 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406202', 'tblTempUsageDetail_20' ) end [2025-02-05 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406202', 'tblTempVendorCDR_20' ) start [2025-02-05 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406202', 'tblTempVendorCDR_20' ) end [2025-02-05 07:34:18] Production.INFO: ProcessCDR(1,14406202,1,1,2) [2025-02-05 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406202', 'tblTempUsageDetail_20' ) start [2025-02-05 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406202', 'tblTempUsageDetail_20' ) end [2025-02-05 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:34:21] Production.INFO: ==22389== Releasing lock... [2025-02-05 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:35:05 [end_date_ymd] => 2025-02-05 07:35:05 [RateCDR] => 1 ) [2025-02-05 07:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:35:05' and `end` < '2025-02-05 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:35:18] Production.INFO: count ==119 [2025-02-05 07:35:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:35:05 - End Time 2025-02-05 07:35:05 [2025-02-05 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406207', 'tblTempUsageDetail_20' ) start [2025-02-05 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406207', 'tblTempUsageDetail_20' ) end [2025-02-05 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406207', 'tblTempVendorCDR_20' ) start [2025-02-05 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406207', 'tblTempVendorCDR_20' ) end [2025-02-05 07:35:18] Production.INFO: ProcessCDR(1,14406207,1,1,2) [2025-02-05 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406207', 'tblTempUsageDetail_20' ) start [2025-02-05 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406207', 'tblTempUsageDetail_20' ) end [2025-02-05 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:35:22] Production.INFO: ==22466== Releasing lock... [2025-02-05 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:35:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:36:05 [end_date_ymd] => 2025-02-05 07:36:05 [RateCDR] => 1 ) [2025-02-05 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:36:05' and `end` < '2025-02-05 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:36:18] Production.INFO: count ==119 [2025-02-05 07:36:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:36:05 - End Time 2025-02-05 07:36:05 [2025-02-05 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406212', 'tblTempUsageDetail_20' ) start [2025-02-05 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406212', 'tblTempUsageDetail_20' ) end [2025-02-05 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406212', 'tblTempVendorCDR_20' ) start [2025-02-05 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406212', 'tblTempVendorCDR_20' ) end [2025-02-05 07:36:18] Production.INFO: ProcessCDR(1,14406212,1,1,2) [2025-02-05 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406212', 'tblTempUsageDetail_20' ) start [2025-02-05 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406212', 'tblTempUsageDetail_20' ) end [2025-02-05 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:36:21] Production.INFO: ==22535== Releasing lock... [2025-02-05 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:37:06 [end_date_ymd] => 2025-02-05 07:37:06 [RateCDR] => 1 ) [2025-02-05 07:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:37:06' and `end` < '2025-02-05 07:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:37:20] Production.INFO: count ==119 [2025-02-05 07:37:20] Production.ERROR: pbx CDR StartTime 2025-02-05 04:37:06 - End Time 2025-02-05 07:37:06 [2025-02-05 07:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406217', 'tblTempUsageDetail_20' ) start [2025-02-05 07:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406217', 'tblTempUsageDetail_20' ) end [2025-02-05 07:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406217', 'tblTempVendorCDR_20' ) start [2025-02-05 07:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406217', 'tblTempVendorCDR_20' ) end [2025-02-05 07:37:20] Production.INFO: ProcessCDR(1,14406217,1,1,2) [2025-02-05 07:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406217', 'tblTempUsageDetail_20' ) start [2025-02-05 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406217', 'tblTempUsageDetail_20' ) end [2025-02-05 07:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:37:23] Production.INFO: ==22614== Releasing lock... [2025-02-05 07:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:37:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:38:05 [end_date_ymd] => 2025-02-05 07:38:05 [RateCDR] => 1 ) [2025-02-05 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:38:05' and `end` < '2025-02-05 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:38:19] Production.INFO: count ==119 [2025-02-05 07:38:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:38:05 - End Time 2025-02-05 07:38:05 [2025-02-05 07:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406222', 'tblTempUsageDetail_20' ) start [2025-02-05 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406222', 'tblTempUsageDetail_20' ) end [2025-02-05 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406222', 'tblTempVendorCDR_20' ) start [2025-02-05 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406222', 'tblTempVendorCDR_20' ) end [2025-02-05 07:38:19] Production.INFO: ProcessCDR(1,14406222,1,1,2) [2025-02-05 07:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406222', 'tblTempUsageDetail_20' ) start [2025-02-05 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406222', 'tblTempUsageDetail_20' ) end [2025-02-05 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:38:22] Production.INFO: ==22689== Releasing lock... [2025-02-05 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:39:06 [end_date_ymd] => 2025-02-05 07:39:06 [RateCDR] => 1 ) [2025-02-05 07:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:39:06' and `end` < '2025-02-05 07:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:39:18] Production.INFO: count ==124 [2025-02-05 07:39:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:39:06 - End Time 2025-02-05 07:39:06 [2025-02-05 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406227', 'tblTempUsageDetail_20' ) start [2025-02-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406227', 'tblTempUsageDetail_20' ) end [2025-02-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406227', 'tblTempVendorCDR_20' ) start [2025-02-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406227', 'tblTempVendorCDR_20' ) end [2025-02-05 07:39:18] Production.INFO: ProcessCDR(1,14406227,1,1,2) [2025-02-05 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406227', 'tblTempUsageDetail_20' ) start [2025-02-05 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406227', 'tblTempUsageDetail_20' ) end [2025-02-05 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:39:22] Production.INFO: ==22765== Releasing lock... [2025-02-05 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:40:06 [end_date_ymd] => 2025-02-05 07:40:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 04:40:06' and `end` < '2025-02-05 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-02-05 07:40:19] Production.INFO: count ==128 [2025-02-05 07:40:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:40:06 - End Time 2025-02-05 07:40:06 [2025-02-05 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406233', 'tblTempUsageDetail_20' ) start [2025-02-05 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406233', 'tblTempUsageDetail_20' ) end [2025-02-05 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406233', 'tblTempVendorCDR_20' ) start [2025-02-05 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406233', 'tblTempVendorCDR_20' ) end [2025-02-05 07:40:19] Production.INFO: ProcessCDR(1,14406233,1,1,2) [2025-02-05 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406233', 'tblTempUsageDetail_20' ) start [2025-02-05 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406233', 'tblTempUsageDetail_20' ) end [2025-02-05 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:40:22] Production.INFO: ==22840== Releasing lock... [2025-02-05 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-05 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:41:05 [end_date_ymd] => 2025-02-05 07:41:05 [RateCDR] => 1 ) [2025-02-05 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:41:05' and `end` < '2025-02-05 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:41:18] Production.INFO: count ==137 [2025-02-05 07:41:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:41:05 - End Time 2025-02-05 07:41:05 [2025-02-05 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406238', 'tblTempUsageDetail_20' ) start [2025-02-05 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406238', 'tblTempUsageDetail_20' ) end [2025-02-05 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406238', 'tblTempVendorCDR_20' ) start [2025-02-05 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406238', 'tblTempVendorCDR_20' ) end [2025-02-05 07:41:18] Production.INFO: ProcessCDR(1,14406238,1,1,2) [2025-02-05 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406238', 'tblTempUsageDetail_20' ) start [2025-02-05 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406238', 'tblTempUsageDetail_20' ) end [2025-02-05 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:41:21] Production.INFO: ==22916== Releasing lock... [2025-02-05 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:42:06 [end_date_ymd] => 2025-02-05 07:42:06 [RateCDR] => 1 ) [2025-02-05 07:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:42:06' and `end` < '2025-02-05 07:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:42:18] Production.INFO: count ==137 [2025-02-05 07:42:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:42:06 - End Time 2025-02-05 07:42:06 [2025-02-05 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406243', 'tblTempUsageDetail_20' ) start [2025-02-05 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406243', 'tblTempUsageDetail_20' ) end [2025-02-05 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406243', 'tblTempVendorCDR_20' ) start [2025-02-05 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406243', 'tblTempVendorCDR_20' ) end [2025-02-05 07:42:18] Production.INFO: ProcessCDR(1,14406243,1,1,2) [2025-02-05 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406243', 'tblTempUsageDetail_20' ) start [2025-02-05 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406243', 'tblTempUsageDetail_20' ) end [2025-02-05 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:42:21] Production.INFO: ==23001== Releasing lock... [2025-02-05 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:43:05 [end_date_ymd] => 2025-02-05 07:43:05 [RateCDR] => 1 ) [2025-02-05 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:43:05' and `end` < '2025-02-05 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:43:20] Production.INFO: count ==142 [2025-02-05 07:43:20] Production.ERROR: pbx CDR StartTime 2025-02-05 04:43:05 - End Time 2025-02-05 07:43:05 [2025-02-05 07:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406248', 'tblTempUsageDetail_20' ) start [2025-02-05 07:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406248', 'tblTempUsageDetail_20' ) end [2025-02-05 07:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406248', 'tblTempVendorCDR_20' ) start [2025-02-05 07:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406248', 'tblTempVendorCDR_20' ) end [2025-02-05 07:43:20] Production.INFO: ProcessCDR(1,14406248,1,1,2) [2025-02-05 07:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406248', 'tblTempUsageDetail_20' ) start [2025-02-05 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406248', 'tblTempUsageDetail_20' ) end [2025-02-05 07:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:43:23] Production.INFO: ==23123== Releasing lock... [2025-02-05 07:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:43:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:44:05 [end_date_ymd] => 2025-02-05 07:44:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 04:44:05' and `end` < '2025-02-05 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-02-05 07:44:18] Production.INFO: count ==142 [2025-02-05 07:44:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:44:05 - End Time 2025-02-05 07:44:05 [2025-02-05 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406253', 'tblTempUsageDetail_20' ) start [2025-02-05 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406253', 'tblTempUsageDetail_20' ) end [2025-02-05 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406253', 'tblTempVendorCDR_20' ) start [2025-02-05 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406253', 'tblTempVendorCDR_20' ) end [2025-02-05 07:44:18] Production.INFO: ProcessCDR(1,14406253,1,1,2) [2025-02-05 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406253', 'tblTempUsageDetail_20' ) start [2025-02-05 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406253', 'tblTempUsageDetail_20' ) end [2025-02-05 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:44:21] Production.INFO: ==23196== Releasing lock... [2025-02-05 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:45:05 [end_date_ymd] => 2025-02-05 07:45:05 [RateCDR] => 1 ) [2025-02-05 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:45:05' and `end` < '2025-02-05 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:45:18] Production.INFO: count ==142 [2025-02-05 07:45:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:45:05 - End Time 2025-02-05 07:45:05 [2025-02-05 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406258', 'tblTempUsageDetail_20' ) start [2025-02-05 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406258', 'tblTempUsageDetail_20' ) end [2025-02-05 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406258', 'tblTempVendorCDR_20' ) start [2025-02-05 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406258', 'tblTempVendorCDR_20' ) end [2025-02-05 07:45:18] Production.INFO: ProcessCDR(1,14406258,1,1,2) [2025-02-05 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406258', 'tblTempUsageDetail_20' ) start [2025-02-05 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406258', 'tblTempUsageDetail_20' ) end [2025-02-05 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:45:21] Production.INFO: ==23270== Releasing lock... [2025-02-05 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:46:05 [end_date_ymd] => 2025-02-05 07:46:05 [RateCDR] => 1 ) [2025-02-05 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:46:05' and `end` < '2025-02-05 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:46:19] Production.INFO: count ==142 [2025-02-05 07:46:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:46:05 - End Time 2025-02-05 07:46:05 [2025-02-05 07:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406263', 'tblTempUsageDetail_20' ) start [2025-02-05 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406263', 'tblTempUsageDetail_20' ) end [2025-02-05 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406263', 'tblTempVendorCDR_20' ) start [2025-02-05 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406263', 'tblTempVendorCDR_20' ) end [2025-02-05 07:46:19] Production.INFO: ProcessCDR(1,14406263,1,1,2) [2025-02-05 07:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406263', 'tblTempUsageDetail_20' ) start [2025-02-05 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406263', 'tblTempUsageDetail_20' ) end [2025-02-05 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:46:22] Production.INFO: ==23344== Releasing lock... [2025-02-05 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:46:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:47:05 [end_date_ymd] => 2025-02-05 07:47:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 04:47:05' and `end` < '2025-02-05 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-02-05 07:47:19] Production.INFO: count ==142 [2025-02-05 07:47:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:47:05 - End Time 2025-02-05 07:47:05 [2025-02-05 07:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406268', 'tblTempUsageDetail_20' ) start [2025-02-05 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406268', 'tblTempUsageDetail_20' ) end [2025-02-05 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406268', 'tblTempVendorCDR_20' ) start [2025-02-05 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406268', 'tblTempVendorCDR_20' ) end [2025-02-05 07:47:19] Production.INFO: ProcessCDR(1,14406268,1,1,2) [2025-02-05 07:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406268', 'tblTempUsageDetail_20' ) start [2025-02-05 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406268', 'tblTempUsageDetail_20' ) end [2025-02-05 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:47:22] Production.INFO: ==23420== Releasing lock... [2025-02-05 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:47:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:48:05 [end_date_ymd] => 2025-02-05 07:48:05 [RateCDR] => 1 ) [2025-02-05 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:48:05' and `end` < '2025-02-05 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:48:19] Production.INFO: count ==142 [2025-02-05 07:48:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:48:05 - End Time 2025-02-05 07:48:05 [2025-02-05 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406273', 'tblTempUsageDetail_20' ) start [2025-02-05 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406273', 'tblTempUsageDetail_20' ) end [2025-02-05 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406273', 'tblTempVendorCDR_20' ) start [2025-02-05 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406273', 'tblTempVendorCDR_20' ) end [2025-02-05 07:48:19] Production.INFO: ProcessCDR(1,14406273,1,1,2) [2025-02-05 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406273', 'tblTempUsageDetail_20' ) start [2025-02-05 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406273', 'tblTempUsageDetail_20' ) end [2025-02-05 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:48:22] Production.INFO: ==23494== Releasing lock... [2025-02-05 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:48:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:49:05 [end_date_ymd] => 2025-02-05 07:49:05 [RateCDR] => 1 ) [2025-02-05 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:49:05' and `end` < '2025-02-05 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:49:18] Production.INFO: count ==142 [2025-02-05 07:49:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:49:05 - End Time 2025-02-05 07:49:05 [2025-02-05 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406278', 'tblTempUsageDetail_20' ) start [2025-02-05 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406278', 'tblTempUsageDetail_20' ) end [2025-02-05 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406278', 'tblTempVendorCDR_20' ) start [2025-02-05 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406278', 'tblTempVendorCDR_20' ) end [2025-02-05 07:49:18] Production.INFO: ProcessCDR(1,14406278,1,1,2) [2025-02-05 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406278', 'tblTempUsageDetail_20' ) start [2025-02-05 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406278', 'tblTempUsageDetail_20' ) end [2025-02-05 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:49:22] Production.INFO: ==23568== Releasing lock... [2025-02-05 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:49:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:50:06 [end_date_ymd] => 2025-02-05 07:50:06 [RateCDR] => 1 ) [2025-02-05 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:50:06' and `end` < '2025-02-05 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:50:19] Production.INFO: count ==143 [2025-02-05 07:50:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:50:06 - End Time 2025-02-05 07:50:06 [2025-02-05 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406284', 'tblTempUsageDetail_20' ) start [2025-02-05 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406284', 'tblTempUsageDetail_20' ) end [2025-02-05 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406284', 'tblTempVendorCDR_20' ) start [2025-02-05 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406284', 'tblTempVendorCDR_20' ) end [2025-02-05 07:50:19] Production.INFO: ProcessCDR(1,14406284,1,1,2) [2025-02-05 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406284', 'tblTempUsageDetail_20' ) start [2025-02-05 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406284', 'tblTempUsageDetail_20' ) end [2025-02-05 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:50:23] Production.INFO: ==23643== Releasing lock... [2025-02-05 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:51:05 [end_date_ymd] => 2025-02-05 07:51:05 [RateCDR] => 1 ) [2025-02-05 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:51:05' and `end` < '2025-02-05 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:51:17] Production.INFO: count ==143 [2025-02-05 07:51:17] Production.ERROR: pbx CDR StartTime 2025-02-05 04:51:05 - End Time 2025-02-05 07:51:05 [2025-02-05 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406289', 'tblTempUsageDetail_20' ) start [2025-02-05 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406289', 'tblTempUsageDetail_20' ) end [2025-02-05 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406289', 'tblTempVendorCDR_20' ) start [2025-02-05 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406289', 'tblTempVendorCDR_20' ) end [2025-02-05 07:51:17] Production.INFO: ProcessCDR(1,14406289,1,1,2) [2025-02-05 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406289', 'tblTempUsageDetail_20' ) start [2025-02-05 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406289', 'tblTempUsageDetail_20' ) end [2025-02-05 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:51:20] Production.INFO: ==23717== Releasing lock... [2025-02-05 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:51:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:52:05 [end_date_ymd] => 2025-02-05 07:52:05 [RateCDR] => 1 ) [2025-02-05 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:52:05' and `end` < '2025-02-05 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:52:21] Production.INFO: count ==143 [2025-02-05 07:52:21] Production.ERROR: pbx CDR StartTime 2025-02-05 04:52:05 - End Time 2025-02-05 07:52:05 [2025-02-05 07:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406294', 'tblTempUsageDetail_20' ) start [2025-02-05 07:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406294', 'tblTempUsageDetail_20' ) end [2025-02-05 07:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406294', 'tblTempVendorCDR_20' ) start [2025-02-05 07:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406294', 'tblTempVendorCDR_20' ) end [2025-02-05 07:52:21] Production.INFO: ProcessCDR(1,14406294,1,1,2) [2025-02-05 07:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406294', 'tblTempUsageDetail_20' ) start [2025-02-05 07:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406294', 'tblTempUsageDetail_20' ) end [2025-02-05 07:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:52:24] Production.INFO: ==23792== Releasing lock... [2025-02-05 07:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:52:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:53:06 [end_date_ymd] => 2025-02-05 07:53:06 [RateCDR] => 1 ) [2025-02-05 07:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:53:06' and `end` < '2025-02-05 07:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:53:19] Production.INFO: count ==143 [2025-02-05 07:53:19] Production.ERROR: pbx CDR StartTime 2025-02-05 04:53:06 - End Time 2025-02-05 07:53:06 [2025-02-05 07:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406299', 'tblTempUsageDetail_20' ) start [2025-02-05 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406299', 'tblTempUsageDetail_20' ) end [2025-02-05 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406299', 'tblTempVendorCDR_20' ) start [2025-02-05 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406299', 'tblTempVendorCDR_20' ) end [2025-02-05 07:53:19] Production.INFO: ProcessCDR(1,14406299,1,1,2) [2025-02-05 07:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406299', 'tblTempUsageDetail_20' ) start [2025-02-05 07:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406299', 'tblTempUsageDetail_20' ) end [2025-02-05 07:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:53:23] Production.INFO: ==23868== Releasing lock... [2025-02-05 07:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:53:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:54:05 [end_date_ymd] => 2025-02-05 07:54:05 [RateCDR] => 1 ) [2025-02-05 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:54:05' and `end` < '2025-02-05 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:54:18] Production.INFO: count ==143 [2025-02-05 07:54:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:54:05 - End Time 2025-02-05 07:54:05 [2025-02-05 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406304', 'tblTempUsageDetail_20' ) start [2025-02-05 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406304', 'tblTempUsageDetail_20' ) end [2025-02-05 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406304', 'tblTempVendorCDR_20' ) start [2025-02-05 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406304', 'tblTempVendorCDR_20' ) end [2025-02-05 07:54:18] Production.INFO: ProcessCDR(1,14406304,1,1,2) [2025-02-05 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406304', 'tblTempUsageDetail_20' ) start [2025-02-05 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406304', 'tblTempUsageDetail_20' ) end [2025-02-05 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:54:21] Production.INFO: ==23946== Releasing lock... [2025-02-05 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:55:05 [end_date_ymd] => 2025-02-05 07:55:05 [RateCDR] => 1 ) [2025-02-05 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:55:05' and `end` < '2025-02-05 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:55:18] Production.INFO: count ==144 [2025-02-05 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:55:05 - End Time 2025-02-05 07:55:05 [2025-02-05 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406309', 'tblTempUsageDetail_20' ) start [2025-02-05 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406309', 'tblTempUsageDetail_20' ) end [2025-02-05 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406309', 'tblTempVendorCDR_20' ) start [2025-02-05 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406309', 'tblTempVendorCDR_20' ) end [2025-02-05 07:55:18] Production.INFO: ProcessCDR(1,14406309,1,1,2) [2025-02-05 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406309', 'tblTempUsageDetail_20' ) start [2025-02-05 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406309', 'tblTempUsageDetail_20' ) end [2025-02-05 07:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:55:23] Production.INFO: ==24018== Releasing lock... [2025-02-05 07:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:55:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:56:05 [end_date_ymd] => 2025-02-05 07:56:05 [RateCDR] => 1 ) [2025-02-05 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:56:05' and `end` < '2025-02-05 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:56:18] Production.INFO: count ==144 [2025-02-05 07:56:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:56:05 - End Time 2025-02-05 07:56:05 [2025-02-05 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406314', 'tblTempUsageDetail_20' ) start [2025-02-05 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406314', 'tblTempUsageDetail_20' ) end [2025-02-05 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406314', 'tblTempVendorCDR_20' ) start [2025-02-05 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406314', 'tblTempVendorCDR_20' ) end [2025-02-05 07:56:18] Production.INFO: ProcessCDR(1,14406314,1,1,2) [2025-02-05 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406314', 'tblTempUsageDetail_20' ) start [2025-02-05 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406314', 'tblTempUsageDetail_20' ) end [2025-02-05 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:56:21] Production.INFO: ==24092== Releasing lock... [2025-02-05 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:57:05 [end_date_ymd] => 2025-02-05 07:57:05 [RateCDR] => 1 ) [2025-02-05 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:57:05' and `end` < '2025-02-05 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:57:18] Production.INFO: count ==146 [2025-02-05 07:57:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:57:05 - End Time 2025-02-05 07:57:05 [2025-02-05 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406319', 'tblTempUsageDetail_20' ) start [2025-02-05 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406319', 'tblTempUsageDetail_20' ) end [2025-02-05 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406319', 'tblTempVendorCDR_20' ) start [2025-02-05 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406319', 'tblTempVendorCDR_20' ) end [2025-02-05 07:57:18] Production.INFO: ProcessCDR(1,14406319,1,1,2) [2025-02-05 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406319', 'tblTempUsageDetail_20' ) start [2025-02-05 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406319', 'tblTempUsageDetail_20' ) end [2025-02-05 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:57:21] Production.INFO: ==24166== Releasing lock... [2025-02-05 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:58:05 [end_date_ymd] => 2025-02-05 07:58:05 [RateCDR] => 1 ) [2025-02-05 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 04:58:05' and `end` < '2025-02-05 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 07:58:18] Production.INFO: count ==146 [2025-02-05 07:58:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:58:05 - End Time 2025-02-05 07:58:05 [2025-02-05 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406324', 'tblTempUsageDetail_20' ) start [2025-02-05 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406324', 'tblTempUsageDetail_20' ) end [2025-02-05 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406324', 'tblTempVendorCDR_20' ) start [2025-02-05 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406324', 'tblTempVendorCDR_20' ) end [2025-02-05 07:58:18] Production.INFO: ProcessCDR(1,14406324,1,1,2) [2025-02-05 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406324', 'tblTempUsageDetail_20' ) start [2025-02-05 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406324', 'tblTempUsageDetail_20' ) end [2025-02-05 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:58:21] Production.INFO: ==24255== Releasing lock... [2025-02-05 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 04:59:05 [end_date_ymd] => 2025-02-05 07:59:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 04:59:05' and `end` < '2025-02-05 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-02-05 07:59:18] Production.INFO: count ==152 [2025-02-05 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-05 04:59:05 - End Time 2025-02-05 07:59:05 [2025-02-05 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406329', 'tblTempUsageDetail_20' ) start [2025-02-05 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406329', 'tblTempUsageDetail_20' ) end [2025-02-05 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406329', 'tblTempVendorCDR_20' ) start [2025-02-05 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406329', 'tblTempVendorCDR_20' ) end [2025-02-05 07:59:18] Production.INFO: ProcessCDR(1,14406329,1,1,2) [2025-02-05 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406329', 'tblTempUsageDetail_20' ) start [2025-02-05 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406329', 'tblTempUsageDetail_20' ) end [2025-02-05 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 07:59:21] Production.INFO: ==24370== Releasing lock... [2025-02-05 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 07:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-05 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:00:06 [end_date_ymd] => 2025-02-05 08:00:06 [RateCDR] => 1 ) [2025-02-05 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:00:06' and `end` < '2025-02-05 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:00:18] Production.INFO: count ==165 [2025-02-05 08:00:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:00:06 - End Time 2025-02-05 08:00:06 [2025-02-05 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406335', 'tblTempUsageDetail_20' ) start [2025-02-05 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406335', 'tblTempUsageDetail_20' ) end [2025-02-05 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406335', 'tblTempVendorCDR_20' ) start [2025-02-05 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406335', 'tblTempVendorCDR_20' ) end [2025-02-05 08:00:18] Production.INFO: ProcessCDR(1,14406335,1,1,2) [2025-02-05 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406335', 'tblTempUsageDetail_20' ) start [2025-02-05 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406335', 'tblTempUsageDetail_20' ) end [2025-02-05 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:00:23] Production.INFO: ==24453== Releasing lock... [2025-02-05 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:00:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:01:05 [end_date_ymd] => 2025-02-05 08:01:05 [RateCDR] => 1 ) [2025-02-05 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:01:05' and `end` < '2025-02-05 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:01:19] Production.INFO: count ==185 [2025-02-05 08:01:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:01:05 - End Time 2025-02-05 08:01:05 [2025-02-05 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406340', 'tblTempUsageDetail_20' ) start [2025-02-05 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406340', 'tblTempUsageDetail_20' ) end [2025-02-05 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406340', 'tblTempVendorCDR_20' ) start [2025-02-05 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406340', 'tblTempVendorCDR_20' ) end [2025-02-05 08:01:19] Production.INFO: ProcessCDR(1,14406340,1,1,2) [2025-02-05 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406340', 'tblTempUsageDetail_20' ) start [2025-02-05 08:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406340', 'tblTempUsageDetail_20' ) end [2025-02-05 08:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:01:24] Production.INFO: ==24543== Releasing lock... [2025-02-05 08:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:01:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-05 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:02:05 [end_date_ymd] => 2025-02-05 08:02:05 [RateCDR] => 1 ) [2025-02-05 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:02:05' and `end` < '2025-02-05 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:02:18] Production.INFO: count ==204 [2025-02-05 08:02:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:02:05 - End Time 2025-02-05 08:02:05 [2025-02-05 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406345', 'tblTempUsageDetail_20' ) start [2025-02-05 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406345', 'tblTempUsageDetail_20' ) end [2025-02-05 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406345', 'tblTempVendorCDR_20' ) start [2025-02-05 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406345', 'tblTempVendorCDR_20' ) end [2025-02-05 08:02:18] Production.INFO: ProcessCDR(1,14406345,1,1,2) [2025-02-05 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406345', 'tblTempUsageDetail_20' ) start [2025-02-05 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406345', 'tblTempUsageDetail_20' ) end [2025-02-05 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:02:22] Production.INFO: ==24612== Releasing lock... [2025-02-05 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-05 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:03:05 [end_date_ymd] => 2025-02-05 08:03:05 [RateCDR] => 1 ) [2025-02-05 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:03:05' and `end` < '2025-02-05 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:03:18] Production.INFO: count ==225 [2025-02-05 08:03:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:03:05 - End Time 2025-02-05 08:03:05 [2025-02-05 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406350', 'tblTempUsageDetail_20' ) start [2025-02-05 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406350', 'tblTempUsageDetail_20' ) end [2025-02-05 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406350', 'tblTempVendorCDR_20' ) start [2025-02-05 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406350', 'tblTempVendorCDR_20' ) end [2025-02-05 08:03:18] Production.INFO: ProcessCDR(1,14406350,1,1,2) [2025-02-05 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406350', 'tblTempUsageDetail_20' ) start [2025-02-05 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406350', 'tblTempUsageDetail_20' ) end [2025-02-05 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:03:21] Production.INFO: ==24688== Releasing lock... [2025-02-05 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:04:06 [end_date_ymd] => 2025-02-05 08:04:06 [RateCDR] => 1 ) [2025-02-05 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:04:06' and `end` < '2025-02-05 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:04:19] Production.INFO: count ==225 [2025-02-05 08:04:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:04:06 - End Time 2025-02-05 08:04:06 [2025-02-05 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406355', 'tblTempUsageDetail_20' ) start [2025-02-05 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406355', 'tblTempUsageDetail_20' ) end [2025-02-05 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406355', 'tblTempVendorCDR_20' ) start [2025-02-05 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406355', 'tblTempVendorCDR_20' ) end [2025-02-05 08:04:19] Production.INFO: ProcessCDR(1,14406355,1,1,2) [2025-02-05 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406355', 'tblTempUsageDetail_20' ) start [2025-02-05 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406355', 'tblTempUsageDetail_20' ) end [2025-02-05 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:04:22] Production.INFO: ==24768== Releasing lock... [2025-02-05 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:05:05 [end_date_ymd] => 2025-02-05 08:05:05 [RateCDR] => 1 ) [2025-02-05 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:05:05' and `end` < '2025-02-05 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:05:18] Production.INFO: count ==234 [2025-02-05 08:05:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:05:05 - End Time 2025-02-05 08:05:05 [2025-02-05 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406360', 'tblTempUsageDetail_20' ) start [2025-02-05 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406360', 'tblTempUsageDetail_20' ) end [2025-02-05 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406360', 'tblTempVendorCDR_20' ) start [2025-02-05 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406360', 'tblTempVendorCDR_20' ) end [2025-02-05 08:05:18] Production.INFO: ProcessCDR(1,14406360,1,1,2) [2025-02-05 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406360', 'tblTempUsageDetail_20' ) start [2025-02-05 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406360', 'tblTempUsageDetail_20' ) end [2025-02-05 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:05:21] Production.INFO: ==24840== Releasing lock... [2025-02-05 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:06:06 [end_date_ymd] => 2025-02-05 08:06:06 [RateCDR] => 1 ) [2025-02-05 08:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:06:06' and `end` < '2025-02-05 08:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:06:19] Production.INFO: count ==240 [2025-02-05 08:06:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:06:06 - End Time 2025-02-05 08:06:06 [2025-02-05 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406365', 'tblTempUsageDetail_20' ) start [2025-02-05 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406365', 'tblTempUsageDetail_20' ) end [2025-02-05 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406365', 'tblTempVendorCDR_20' ) start [2025-02-05 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406365', 'tblTempVendorCDR_20' ) end [2025-02-05 08:06:19] Production.INFO: ProcessCDR(1,14406365,1,1,2) [2025-02-05 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406365', 'tblTempUsageDetail_20' ) start [2025-02-05 08:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406365', 'tblTempUsageDetail_20' ) end [2025-02-05 08:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:06:24] Production.INFO: ==24913== Releasing lock... [2025-02-05 08:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:06:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-05 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:07:05 [end_date_ymd] => 2025-02-05 08:07:05 [RateCDR] => 1 ) [2025-02-05 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:07:05' and `end` < '2025-02-05 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:07:18] Production.INFO: count ==245 [2025-02-05 08:07:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:07:05 - End Time 2025-02-05 08:07:05 [2025-02-05 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406370', 'tblTempUsageDetail_20' ) start [2025-02-05 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406370', 'tblTempUsageDetail_20' ) end [2025-02-05 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406370', 'tblTempVendorCDR_20' ) start [2025-02-05 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406370', 'tblTempVendorCDR_20' ) end [2025-02-05 08:07:18] Production.INFO: ProcessCDR(1,14406370,1,1,2) [2025-02-05 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406370', 'tblTempUsageDetail_20' ) start [2025-02-05 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406370', 'tblTempUsageDetail_20' ) end [2025-02-05 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:07:21] Production.INFO: ==24984== Releasing lock... [2025-02-05 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:08:05 [end_date_ymd] => 2025-02-05 08:08:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 05:08:05' and `end` < '2025-02-05 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-02-05 08:08:18] Production.INFO: count ==245 [2025-02-05 08:08:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:08:05 - End Time 2025-02-05 08:08:05 [2025-02-05 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406375', 'tblTempUsageDetail_20' ) start [2025-02-05 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406375', 'tblTempUsageDetail_20' ) end [2025-02-05 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406375', 'tblTempVendorCDR_20' ) start [2025-02-05 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406375', 'tblTempVendorCDR_20' ) end [2025-02-05 08:08:18] Production.INFO: ProcessCDR(1,14406375,1,1,2) [2025-02-05 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406375', 'tblTempUsageDetail_20' ) start [2025-02-05 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406375', 'tblTempUsageDetail_20' ) end [2025-02-05 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:08:21] Production.INFO: ==25061== Releasing lock... [2025-02-05 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:09:05 [end_date_ymd] => 2025-02-05 08:09:05 [RateCDR] => 1 ) [2025-02-05 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:09:05' and `end` < '2025-02-05 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:09:18] Production.INFO: count ==250 [2025-02-05 08:09:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:09:05 - End Time 2025-02-05 08:09:05 [2025-02-05 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406380', 'tblTempUsageDetail_20' ) start [2025-02-05 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406380', 'tblTempUsageDetail_20' ) end [2025-02-05 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406380', 'tblTempVendorCDR_20' ) start [2025-02-05 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406380', 'tblTempVendorCDR_20' ) end [2025-02-05 08:09:18] Production.INFO: ProcessCDR(1,14406380,1,1,2) [2025-02-05 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406380', 'tblTempUsageDetail_20' ) start [2025-02-05 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406380', 'tblTempUsageDetail_20' ) end [2025-02-05 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:09:21] Production.INFO: ==25131== Releasing lock... [2025-02-05 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:09:21] Production.INFO: 30 MB #Memory Used# [2025-02-05 08:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:10:07 [end_date_ymd] => 2025-02-05 08:10:07 [RateCDR] => 1 ) [2025-02-05 08:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:10:07' and `end` < '2025-02-05 08:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:10:19] Production.INFO: count ==256 [2025-02-05 08:10:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:10:07 - End Time 2025-02-05 08:10:07 [2025-02-05 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406386', 'tblTempUsageDetail_20' ) start [2025-02-05 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406386', 'tblTempUsageDetail_20' ) end [2025-02-05 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406386', 'tblTempVendorCDR_20' ) start [2025-02-05 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406386', 'tblTempVendorCDR_20' ) end [2025-02-05 08:10:19] Production.INFO: ProcessCDR(1,14406386,1,1,2) [2025-02-05 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406386', 'tblTempUsageDetail_20' ) start [2025-02-05 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406386', 'tblTempUsageDetail_20' ) end [2025-02-05 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:10:23] Production.INFO: ==25208== Releasing lock... [2025-02-05 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:10:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-05 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:11:05 [end_date_ymd] => 2025-02-05 08:11:05 [RateCDR] => 1 ) [2025-02-05 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:11:05' and `end` < '2025-02-05 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:11:19] Production.INFO: count ==275 [2025-02-05 08:11:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:11:05 - End Time 2025-02-05 08:11:05 [2025-02-05 08:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406391', 'tblTempUsageDetail_20' ) start [2025-02-05 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406391', 'tblTempUsageDetail_20' ) end [2025-02-05 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406391', 'tblTempVendorCDR_20' ) start [2025-02-05 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406391', 'tblTempVendorCDR_20' ) end [2025-02-05 08:11:19] Production.INFO: ProcessCDR(1,14406391,1,1,2) [2025-02-05 08:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406391', 'tblTempUsageDetail_20' ) start [2025-02-05 08:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406391', 'tblTempUsageDetail_20' ) end [2025-02-05 08:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:11:24] Production.INFO: ==25289== Releasing lock... [2025-02-05 08:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:11:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-05 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:12:06 [end_date_ymd] => 2025-02-05 08:12:06 [RateCDR] => 1 ) [2025-02-05 08:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:12:06' and `end` < '2025-02-05 08:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:12:18] Production.INFO: count ==275 [2025-02-05 08:12:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:12:06 - End Time 2025-02-05 08:12:06 [2025-02-05 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406396', 'tblTempUsageDetail_20' ) start [2025-02-05 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406396', 'tblTempUsageDetail_20' ) end [2025-02-05 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406396', 'tblTempVendorCDR_20' ) start [2025-02-05 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406396', 'tblTempVendorCDR_20' ) end [2025-02-05 08:12:18] Production.INFO: ProcessCDR(1,14406396,1,1,2) [2025-02-05 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406396', 'tblTempUsageDetail_20' ) start [2025-02-05 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406396', 'tblTempUsageDetail_20' ) end [2025-02-05 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:12:22] Production.INFO: ==25360== Releasing lock... [2025-02-05 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:12:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-05 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:13:05 [end_date_ymd] => 2025-02-05 08:13:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 05:13:05' and `end` < '2025-02-05 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-02-05 08:13:19] Production.INFO: count ==283 [2025-02-05 08:13:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:13:05 - End Time 2025-02-05 08:13:05 [2025-02-05 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406401', 'tblTempUsageDetail_20' ) start [2025-02-05 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406401', 'tblTempUsageDetail_20' ) end [2025-02-05 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406401', 'tblTempVendorCDR_20' ) start [2025-02-05 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406401', 'tblTempVendorCDR_20' ) end [2025-02-05 08:13:19] Production.INFO: ProcessCDR(1,14406401,1,1,2) [2025-02-05 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406401', 'tblTempUsageDetail_20' ) start [2025-02-05 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406401', 'tblTempUsageDetail_20' ) end [2025-02-05 08:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:13:24] Production.INFO: ==25437== Releasing lock... [2025-02-05 08:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:13:24] Production.INFO: 30 MB #Memory Used# [2025-02-05 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:14:05 [end_date_ymd] => 2025-02-05 08:14:05 [RateCDR] => 1 ) [2025-02-05 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:14:05' and `end` < '2025-02-05 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:14:19] Production.INFO: count ==288 [2025-02-05 08:14:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:14:05 - End Time 2025-02-05 08:14:05 [2025-02-05 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406406', 'tblTempUsageDetail_20' ) start [2025-02-05 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406406', 'tblTempUsageDetail_20' ) end [2025-02-05 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406406', 'tblTempVendorCDR_20' ) start [2025-02-05 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406406', 'tblTempVendorCDR_20' ) end [2025-02-05 08:14:19] Production.INFO: ProcessCDR(1,14406406,1,1,2) [2025-02-05 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406406', 'tblTempUsageDetail_20' ) start [2025-02-05 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406406', 'tblTempUsageDetail_20' ) end [2025-02-05 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:14:22] Production.INFO: ==25563== Releasing lock... [2025-02-05 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:14:22] Production.INFO: 30 MB #Memory Used# [2025-02-05 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:15:05 [end_date_ymd] => 2025-02-05 08:15:05 [RateCDR] => 1 ) [2025-02-05 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:15:05' and `end` < '2025-02-05 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:15:18] Production.INFO: count ==290 [2025-02-05 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:15:05 - End Time 2025-02-05 08:15:05 [2025-02-05 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406411', 'tblTempUsageDetail_20' ) start [2025-02-05 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406411', 'tblTempUsageDetail_20' ) end [2025-02-05 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406411', 'tblTempVendorCDR_20' ) start [2025-02-05 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406411', 'tblTempVendorCDR_20' ) end [2025-02-05 08:15:18] Production.INFO: ProcessCDR(1,14406411,1,1,2) [2025-02-05 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406411', 'tblTempUsageDetail_20' ) start [2025-02-05 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406411', 'tblTempUsageDetail_20' ) end [2025-02-05 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:15:22] Production.INFO: ==25649== Releasing lock... [2025-02-05 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:15:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-05 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:16:05 [end_date_ymd] => 2025-02-05 08:16:05 [RateCDR] => 1 ) [2025-02-05 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:16:05' and `end` < '2025-02-05 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:16:19] Production.INFO: count ==293 [2025-02-05 08:16:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:16:05 - End Time 2025-02-05 08:16:05 [2025-02-05 08:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406416', 'tblTempUsageDetail_20' ) start [2025-02-05 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406416', 'tblTempUsageDetail_20' ) end [2025-02-05 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406416', 'tblTempVendorCDR_20' ) start [2025-02-05 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406416', 'tblTempVendorCDR_20' ) end [2025-02-05 08:16:19] Production.INFO: ProcessCDR(1,14406416,1,1,2) [2025-02-05 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406416', 'tblTempUsageDetail_20' ) start [2025-02-05 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406416', 'tblTempUsageDetail_20' ) end [2025-02-05 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:16:22] Production.INFO: ==25722== Releasing lock... [2025-02-05 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:16:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-05 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:17:04 [end_date_ymd] => 2025-02-05 08:17:04 [RateCDR] => 1 ) [2025-02-05 08:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:17:04' and `end` < '2025-02-05 08:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:17:17] Production.INFO: count ==294 [2025-02-05 08:17:17] Production.ERROR: pbx CDR StartTime 2025-02-05 05:17:04 - End Time 2025-02-05 08:17:04 [2025-02-05 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406421', 'tblTempUsageDetail_20' ) start [2025-02-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406421', 'tblTempUsageDetail_20' ) end [2025-02-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406421', 'tblTempVendorCDR_20' ) start [2025-02-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406421', 'tblTempVendorCDR_20' ) end [2025-02-05 08:17:17] Production.INFO: ProcessCDR(1,14406421,1,1,2) [2025-02-05 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406421', 'tblTempUsageDetail_20' ) start [2025-02-05 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406421', 'tblTempUsageDetail_20' ) end [2025-02-05 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:17:22] Production.INFO: ==25793== Releasing lock... [2025-02-05 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-05 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:18:06 [end_date_ymd] => 2025-02-05 08:18:06 [RateCDR] => 1 ) [2025-02-05 08:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:18:06' and `end` < '2025-02-05 08:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:18:19] Production.INFO: count ==295 [2025-02-05 08:18:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:18:06 - End Time 2025-02-05 08:18:06 [2025-02-05 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406426', 'tblTempUsageDetail_20' ) start [2025-02-05 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406426', 'tblTempUsageDetail_20' ) end [2025-02-05 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406426', 'tblTempVendorCDR_20' ) start [2025-02-05 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406426', 'tblTempVendorCDR_20' ) end [2025-02-05 08:18:19] Production.INFO: ProcessCDR(1,14406426,1,1,2) [2025-02-05 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406426', 'tblTempUsageDetail_20' ) start [2025-02-05 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406426', 'tblTempUsageDetail_20' ) end [2025-02-05 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:18:22] Production.INFO: ==25875== Releasing lock... [2025-02-05 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-05 08:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:19:04 [end_date_ymd] => 2025-02-05 08:19:04 [RateCDR] => 1 ) [2025-02-05 08:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:19:04' and `end` < '2025-02-05 08:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:19:17] Production.INFO: count ==300 [2025-02-05 08:19:17] Production.ERROR: pbx CDR StartTime 2025-02-05 05:19:04 - End Time 2025-02-05 08:19:04 [2025-02-05 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406431', 'tblTempUsageDetail_20' ) start [2025-02-05 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406431', 'tblTempUsageDetail_20' ) end [2025-02-05 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406431', 'tblTempVendorCDR_20' ) start [2025-02-05 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406431', 'tblTempVendorCDR_20' ) end [2025-02-05 08:19:17] Production.INFO: ProcessCDR(1,14406431,1,1,2) [2025-02-05 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406431', 'tblTempUsageDetail_20' ) start [2025-02-05 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406431', 'tblTempUsageDetail_20' ) end [2025-02-05 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:19:21] Production.INFO: ==25950== Releasing lock... [2025-02-05 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-05 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:20:06 [end_date_ymd] => 2025-02-05 08:20:06 [RateCDR] => 1 ) [2025-02-05 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:20:06' and `end` < '2025-02-05 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:20:19] Production.INFO: count ==317 [2025-02-05 08:20:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:20:06 - End Time 2025-02-05 08:20:06 [2025-02-05 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406437', 'tblTempUsageDetail_20' ) start [2025-02-05 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406437', 'tblTempUsageDetail_20' ) end [2025-02-05 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406437', 'tblTempVendorCDR_20' ) start [2025-02-05 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406437', 'tblTempVendorCDR_20' ) end [2025-02-05 08:20:19] Production.INFO: ProcessCDR(1,14406437,1,1,2) [2025-02-05 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406437', 'tblTempUsageDetail_20' ) start [2025-02-05 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406437', 'tblTempUsageDetail_20' ) end [2025-02-05 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:20:23] Production.INFO: ==26025== Releasing lock... [2025-02-05 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:20:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-05 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:21:06 [end_date_ymd] => 2025-02-05 08:21:06 [RateCDR] => 1 ) [2025-02-05 08:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:21:06' and `end` < '2025-02-05 08:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:21:19] Production.INFO: count ==343 [2025-02-05 08:21:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:21:06 - End Time 2025-02-05 08:21:06 [2025-02-05 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406442', 'tblTempUsageDetail_20' ) start [2025-02-05 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406442', 'tblTempUsageDetail_20' ) end [2025-02-05 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406442', 'tblTempVendorCDR_20' ) start [2025-02-05 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406442', 'tblTempVendorCDR_20' ) end [2025-02-05 08:21:19] Production.INFO: ProcessCDR(1,14406442,1,1,2) [2025-02-05 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406442', 'tblTempUsageDetail_20' ) start [2025-02-05 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406442', 'tblTempUsageDetail_20' ) end [2025-02-05 08:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:21:24] Production.INFO: ==26099== Releasing lock... [2025-02-05 08:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:21:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-05 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:22:05 [end_date_ymd] => 2025-02-05 08:22:05 [RateCDR] => 1 ) [2025-02-05 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:22:05' and `end` < '2025-02-05 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:22:18] Production.INFO: count ==352 [2025-02-05 08:22:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:22:05 - End Time 2025-02-05 08:22:05 [2025-02-05 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406447', 'tblTempUsageDetail_20' ) start [2025-02-05 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406447', 'tblTempUsageDetail_20' ) end [2025-02-05 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406447', 'tblTempVendorCDR_20' ) start [2025-02-05 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406447', 'tblTempVendorCDR_20' ) end [2025-02-05 08:22:18] Production.INFO: ProcessCDR(1,14406447,1,1,2) [2025-02-05 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406447', 'tblTempUsageDetail_20' ) start [2025-02-05 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406447', 'tblTempUsageDetail_20' ) end [2025-02-05 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:22:21] Production.INFO: ==26171== Releasing lock... [2025-02-05 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:22:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-05 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:23:06 [end_date_ymd] => 2025-02-05 08:23:06 [RateCDR] => 1 ) [2025-02-05 08:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:23:06' and `end` < '2025-02-05 08:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:23:19] Production.INFO: count ==360 [2025-02-05 08:23:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:23:06 - End Time 2025-02-05 08:23:06 [2025-02-05 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406452', 'tblTempUsageDetail_20' ) start [2025-02-05 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406452', 'tblTempUsageDetail_20' ) end [2025-02-05 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406452', 'tblTempVendorCDR_20' ) start [2025-02-05 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406452', 'tblTempVendorCDR_20' ) end [2025-02-05 08:23:19] Production.INFO: ProcessCDR(1,14406452,1,1,2) [2025-02-05 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406452', 'tblTempUsageDetail_20' ) start [2025-02-05 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406452', 'tblTempUsageDetail_20' ) end [2025-02-05 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:23:22] Production.INFO: ==26246== Releasing lock... [2025-02-05 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:23:22] Production.INFO: 31 MB #Memory Used# [2025-02-05 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:24:05 [end_date_ymd] => 2025-02-05 08:24:05 [RateCDR] => 1 ) [2025-02-05 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:24:05' and `end` < '2025-02-05 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:24:18] Production.INFO: count ==371 [2025-02-05 08:24:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:24:05 - End Time 2025-02-05 08:24:05 [2025-02-05 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406457', 'tblTempUsageDetail_20' ) start [2025-02-05 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406457', 'tblTempUsageDetail_20' ) end [2025-02-05 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406457', 'tblTempVendorCDR_20' ) start [2025-02-05 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406457', 'tblTempVendorCDR_20' ) end [2025-02-05 08:24:18] Production.INFO: ProcessCDR(1,14406457,1,1,2) [2025-02-05 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406457', 'tblTempUsageDetail_20' ) start [2025-02-05 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406457', 'tblTempUsageDetail_20' ) end [2025-02-05 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:24:22] Production.INFO: ==26336== Releasing lock... [2025-02-05 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:24:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:25:05 [end_date_ymd] => 2025-02-05 08:25:05 [RateCDR] => 1 ) [2025-02-05 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:25:05' and `end` < '2025-02-05 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:25:18] Production.INFO: count ==378 [2025-02-05 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:25:05 - End Time 2025-02-05 08:25:05 [2025-02-05 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406462', 'tblTempUsageDetail_20' ) start [2025-02-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406462', 'tblTempUsageDetail_20' ) end [2025-02-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406462', 'tblTempVendorCDR_20' ) start [2025-02-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406462', 'tblTempVendorCDR_20' ) end [2025-02-05 08:25:18] Production.INFO: ProcessCDR(1,14406462,1,1,2) [2025-02-05 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406462', 'tblTempUsageDetail_20' ) start [2025-02-05 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406462', 'tblTempUsageDetail_20' ) end [2025-02-05 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:25:21] Production.INFO: ==26409== Releasing lock... [2025-02-05 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:26:04 [end_date_ymd] => 2025-02-05 08:26:04 [RateCDR] => 1 ) [2025-02-05 08:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:26:04' and `end` < '2025-02-05 08:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:26:17] Production.INFO: count ==379 [2025-02-05 08:26:17] Production.ERROR: pbx CDR StartTime 2025-02-05 05:26:04 - End Time 2025-02-05 08:26:04 [2025-02-05 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406467', 'tblTempUsageDetail_20' ) start [2025-02-05 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406467', 'tblTempUsageDetail_20' ) end [2025-02-05 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406467', 'tblTempVendorCDR_20' ) start [2025-02-05 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406467', 'tblTempVendorCDR_20' ) end [2025-02-05 08:26:17] Production.INFO: ProcessCDR(1,14406467,1,1,2) [2025-02-05 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406467', 'tblTempUsageDetail_20' ) start [2025-02-05 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406467', 'tblTempUsageDetail_20' ) end [2025-02-05 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:26:21] Production.INFO: ==26481== Releasing lock... [2025-02-05 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-05 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:27:05 [end_date_ymd] => 2025-02-05 08:27:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 05:27:05' and `end` < '2025-02-05 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-02-05 08:27:18] Production.INFO: count ==390 [2025-02-05 08:27:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:27:05 - End Time 2025-02-05 08:27:05 [2025-02-05 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406472', 'tblTempUsageDetail_20' ) start [2025-02-05 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406472', 'tblTempUsageDetail_20' ) end [2025-02-05 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406472', 'tblTempVendorCDR_20' ) start [2025-02-05 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406472', 'tblTempVendorCDR_20' ) end [2025-02-05 08:27:19] Production.INFO: ProcessCDR(1,14406472,1,1,2) [2025-02-05 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406472', 'tblTempUsageDetail_20' ) start [2025-02-05 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406472', 'tblTempUsageDetail_20' ) end [2025-02-05 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:27:22] Production.INFO: ==26554== Releasing lock... [2025-02-05 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:27:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-05 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:28:05 [end_date_ymd] => 2025-02-05 08:28:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 05:28:05' and `end` < '2025-02-05 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-02-05 08:28:19] Production.INFO: count ==395 [2025-02-05 08:28:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:28:05 - End Time 2025-02-05 08:28:05 [2025-02-05 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406477', 'tblTempUsageDetail_20' ) start [2025-02-05 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406477', 'tblTempUsageDetail_20' ) end [2025-02-05 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406477', 'tblTempVendorCDR_20' ) start [2025-02-05 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406477', 'tblTempVendorCDR_20' ) end [2025-02-05 08:28:19] Production.INFO: ProcessCDR(1,14406477,1,1,2) [2025-02-05 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406477', 'tblTempUsageDetail_20' ) start [2025-02-05 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406477', 'tblTempUsageDetail_20' ) end [2025-02-05 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:28:22] Production.INFO: ==26624== Releasing lock... [2025-02-05 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:28:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:29:05 [end_date_ymd] => 2025-02-05 08:29:05 [RateCDR] => 1 ) [2025-02-05 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:29:05' and `end` < '2025-02-05 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:29:18] Production.INFO: count ==399 [2025-02-05 08:29:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:29:05 - End Time 2025-02-05 08:29:05 [2025-02-05 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406482', 'tblTempUsageDetail_20' ) start [2025-02-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406482', 'tblTempUsageDetail_20' ) end [2025-02-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406482', 'tblTempVendorCDR_20' ) start [2025-02-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406482', 'tblTempVendorCDR_20' ) end [2025-02-05 08:29:18] Production.INFO: ProcessCDR(1,14406482,1,1,2) [2025-02-05 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406482', 'tblTempUsageDetail_20' ) start [2025-02-05 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406482', 'tblTempUsageDetail_20' ) end [2025-02-05 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:29:22] Production.INFO: ==26697== Releasing lock... [2025-02-05 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:30:06 [end_date_ymd] => 2025-02-05 08:30:06 [RateCDR] => 1 ) [2025-02-05 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:30:06' and `end` < '2025-02-05 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:30:19] Production.INFO: count ==410 [2025-02-05 08:30:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:30:06 - End Time 2025-02-05 08:30:06 [2025-02-05 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406488', 'tblTempUsageDetail_20' ) start [2025-02-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406488', 'tblTempUsageDetail_20' ) end [2025-02-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406488', 'tblTempVendorCDR_20' ) start [2025-02-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406488', 'tblTempVendorCDR_20' ) end [2025-02-05 08:30:19] Production.INFO: ProcessCDR(1,14406488,1,1,2) [2025-02-05 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406488', 'tblTempUsageDetail_20' ) start [2025-02-05 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406488', 'tblTempUsageDetail_20' ) end [2025-02-05 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:30:23] Production.INFO: ==26830== Releasing lock... [2025-02-05 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:30:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:31:05 [end_date_ymd] => 2025-02-05 08:31:05 [RateCDR] => 1 ) [2025-02-05 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:31:05' and `end` < '2025-02-05 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:31:19] Production.INFO: count ==452 [2025-02-05 08:31:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:31:05 - End Time 2025-02-05 08:31:05 [2025-02-05 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406493', 'tblTempUsageDetail_20' ) start [2025-02-05 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406493', 'tblTempUsageDetail_20' ) end [2025-02-05 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406493', 'tblTempVendorCDR_20' ) start [2025-02-05 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406493', 'tblTempVendorCDR_20' ) end [2025-02-05 08:31:19] Production.INFO: ProcessCDR(1,14406493,1,1,2) [2025-02-05 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406493', 'tblTempUsageDetail_20' ) start [2025-02-05 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406493', 'tblTempUsageDetail_20' ) end [2025-02-05 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:31:23] Production.INFO: ==26925== Releasing lock... [2025-02-05 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:31:23] Production.INFO: 32 MB #Memory Used# [2025-02-05 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:32:06 [end_date_ymd] => 2025-02-05 08:32:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 05:32:06' and `end` < '2025-02-05 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-02-05 08:32:18] Production.INFO: count ==453 [2025-02-05 08:32:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:32:06 - End Time 2025-02-05 08:32:06 [2025-02-05 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406498', 'tblTempUsageDetail_20' ) start [2025-02-05 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406498', 'tblTempUsageDetail_20' ) end [2025-02-05 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406498', 'tblTempVendorCDR_20' ) start [2025-02-05 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406498', 'tblTempVendorCDR_20' ) end [2025-02-05 08:32:19] Production.INFO: ProcessCDR(1,14406498,1,1,2) [2025-02-05 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406498', 'tblTempUsageDetail_20' ) start [2025-02-05 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406498', 'tblTempUsageDetail_20' ) end [2025-02-05 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:32:23] Production.INFO: ==27008== Releasing lock... [2025-02-05 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:32:23] Production.INFO: 32 MB #Memory Used# [2025-02-05 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:33:05 [end_date_ymd] => 2025-02-05 08:33:05 [RateCDR] => 1 ) [2025-02-05 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:33:05' and `end` < '2025-02-05 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:33:18] Production.INFO: count ==460 [2025-02-05 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:33:05 - End Time 2025-02-05 08:33:05 [2025-02-05 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406503', 'tblTempUsageDetail_20' ) start [2025-02-05 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406503', 'tblTempUsageDetail_20' ) end [2025-02-05 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406503', 'tblTempVendorCDR_20' ) start [2025-02-05 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406503', 'tblTempVendorCDR_20' ) end [2025-02-05 08:33:18] Production.INFO: ProcessCDR(1,14406503,1,1,2) [2025-02-05 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406503', 'tblTempUsageDetail_20' ) start [2025-02-05 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406503', 'tblTempUsageDetail_20' ) end [2025-02-05 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:33:22] Production.INFO: ==27077== Releasing lock... [2025-02-05 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:33:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-05 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:34:05 [end_date_ymd] => 2025-02-05 08:34:05 [RateCDR] => 1 ) [2025-02-05 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:34:05' and `end` < '2025-02-05 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:34:18] Production.INFO: count ==480 [2025-02-05 08:34:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:34:05 - End Time 2025-02-05 08:34:05 [2025-02-05 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406508', 'tblTempUsageDetail_20' ) start [2025-02-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406508', 'tblTempUsageDetail_20' ) end [2025-02-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406508', 'tblTempVendorCDR_20' ) start [2025-02-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406508', 'tblTempVendorCDR_20' ) end [2025-02-05 08:34:18] Production.INFO: ProcessCDR(1,14406508,1,1,2) [2025-02-05 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406508', 'tblTempUsageDetail_20' ) start [2025-02-05 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406508', 'tblTempUsageDetail_20' ) end [2025-02-05 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:34:22] Production.INFO: ==27152== Releasing lock... [2025-02-05 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-05 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:35:05 [end_date_ymd] => 2025-02-05 08:35:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 05:35:05' and `end` < '2025-02-05 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-02-05 08:35:18] Production.INFO: count ==493 [2025-02-05 08:35:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:35:05 - End Time 2025-02-05 08:35:05 [2025-02-05 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406513', 'tblTempUsageDetail_20' ) start [2025-02-05 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406513', 'tblTempUsageDetail_20' ) end [2025-02-05 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406513', 'tblTempVendorCDR_20' ) start [2025-02-05 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406513', 'tblTempVendorCDR_20' ) end [2025-02-05 08:35:18] Production.INFO: ProcessCDR(1,14406513,1,1,2) [2025-02-05 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406513', 'tblTempUsageDetail_20' ) start [2025-02-05 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406513', 'tblTempUsageDetail_20' ) end [2025-02-05 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:35:23] Production.INFO: ==27222== Releasing lock... [2025-02-05 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:35:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-05 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:36:05 [end_date_ymd] => 2025-02-05 08:36:05 [RateCDR] => 1 ) [2025-02-05 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:36:05' and `end` < '2025-02-05 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:36:19] Production.INFO: count ==497 [2025-02-05 08:36:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:36:05 - End Time 2025-02-05 08:36:05 [2025-02-05 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406518', 'tblTempUsageDetail_20' ) start [2025-02-05 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406518', 'tblTempUsageDetail_20' ) end [2025-02-05 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406518', 'tblTempVendorCDR_20' ) start [2025-02-05 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406518', 'tblTempVendorCDR_20' ) end [2025-02-05 08:36:19] Production.INFO: ProcessCDR(1,14406518,1,1,2) [2025-02-05 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406518', 'tblTempUsageDetail_20' ) start [2025-02-05 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406518', 'tblTempUsageDetail_20' ) end [2025-02-05 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:36:22] Production.INFO: ==27294== Releasing lock... [2025-02-05 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:36:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-05 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:37:06 [end_date_ymd] => 2025-02-05 08:37:06 [RateCDR] => 1 ) [2025-02-05 08:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:37:06' and `end` < '2025-02-05 08:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:37:18] Production.INFO: count ==503 [2025-02-05 08:37:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:37:06 - End Time 2025-02-05 08:37:06 [2025-02-05 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406523', 'tblTempUsageDetail_20' ) start [2025-02-05 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406523', 'tblTempUsageDetail_20' ) end [2025-02-05 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406523', 'tblTempVendorCDR_20' ) start [2025-02-05 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406523', 'tblTempVendorCDR_20' ) end [2025-02-05 08:37:19] Production.INFO: ProcessCDR(1,14406523,1,1,2) [2025-02-05 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406523', 'tblTempUsageDetail_20' ) start [2025-02-05 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406523', 'tblTempUsageDetail_20' ) end [2025-02-05 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:37:22] Production.INFO: ==27387== Releasing lock... [2025-02-05 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:37:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-05 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:38:05 [end_date_ymd] => 2025-02-05 08:38:05 [RateCDR] => 1 ) [2025-02-05 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:38:05' and `end` < '2025-02-05 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:38:18] Production.INFO: count ==516 [2025-02-05 08:38:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:38:05 - End Time 2025-02-05 08:38:05 [2025-02-05 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406528', 'tblTempUsageDetail_20' ) start [2025-02-05 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406528', 'tblTempUsageDetail_20' ) end [2025-02-05 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406528', 'tblTempVendorCDR_20' ) start [2025-02-05 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406528', 'tblTempVendorCDR_20' ) end [2025-02-05 08:38:18] Production.INFO: ProcessCDR(1,14406528,1,1,2) [2025-02-05 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406528', 'tblTempUsageDetail_20' ) start [2025-02-05 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406528', 'tblTempUsageDetail_20' ) end [2025-02-05 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:38:23] Production.INFO: ==27461== Releasing lock... [2025-02-05 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:38:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-05 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:39:06 [end_date_ymd] => 2025-02-05 08:39:06 [RateCDR] => 1 ) [2025-02-05 08:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:39:06' and `end` < '2025-02-05 08:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:39:19] Production.INFO: count ==541 [2025-02-05 08:39:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:39:06 - End Time 2025-02-05 08:39:06 [2025-02-05 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406533', 'tblTempUsageDetail_20' ) start [2025-02-05 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406533', 'tblTempUsageDetail_20' ) end [2025-02-05 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406533', 'tblTempVendorCDR_20' ) start [2025-02-05 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406533', 'tblTempVendorCDR_20' ) end [2025-02-05 08:39:19] Production.INFO: ProcessCDR(1,14406533,1,1,2) [2025-02-05 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406533', 'tblTempUsageDetail_20' ) start [2025-02-05 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406533', 'tblTempUsageDetail_20' ) end [2025-02-05 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:39:22] Production.INFO: ==27537== Releasing lock... [2025-02-05 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:39:22] Production.INFO: 33 MB #Memory Used# [2025-02-05 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:40:06 [end_date_ymd] => 2025-02-05 08:40:06 [RateCDR] => 1 ) [2025-02-05 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:40:06' and `end` < '2025-02-05 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:40:19] Production.INFO: count ==548 [2025-02-05 08:40:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:40:06 - End Time 2025-02-05 08:40:06 [2025-02-05 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406538', 'tblTempUsageDetail_20' ) start [2025-02-05 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406538', 'tblTempUsageDetail_20' ) end [2025-02-05 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406538', 'tblTempVendorCDR_20' ) start [2025-02-05 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406538', 'tblTempVendorCDR_20' ) end [2025-02-05 08:40:19] Production.INFO: ProcessCDR(1,14406538,1,1,2) [2025-02-05 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406538', 'tblTempUsageDetail_20' ) start [2025-02-05 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406538', 'tblTempUsageDetail_20' ) end [2025-02-05 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:40:22] Production.INFO: ==27609== Releasing lock... [2025-02-05 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:40:22] Production.INFO: 33 MB #Memory Used# [2025-02-05 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:41:06 [end_date_ymd] => 2025-02-05 08:41:06 [RateCDR] => 1 ) [2025-02-05 08:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:41:06' and `end` < '2025-02-05 08:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:41:18] Production.INFO: count ==572 [2025-02-05 08:41:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:41:06 - End Time 2025-02-05 08:41:06 [2025-02-05 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406544', 'tblTempUsageDetail_20' ) start [2025-02-05 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406544', 'tblTempUsageDetail_20' ) end [2025-02-05 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406544', 'tblTempVendorCDR_20' ) start [2025-02-05 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406544', 'tblTempVendorCDR_20' ) end [2025-02-05 08:41:19] Production.INFO: ProcessCDR(1,14406544,1,1,2) [2025-02-05 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406544', 'tblTempUsageDetail_20' ) start [2025-02-05 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406544', 'tblTempUsageDetail_20' ) end [2025-02-05 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:41:22] Production.INFO: ==27687== Releasing lock... [2025-02-05 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:41:22] Production.INFO: 33 MB #Memory Used# [2025-02-05 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:42:05 [end_date_ymd] => 2025-02-05 08:42:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 05:42:05' and `end` < '2025-02-05 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-02-05 08:42:18] Production.INFO: count ==574 [2025-02-05 08:42:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:42:05 - End Time 2025-02-05 08:42:05 [2025-02-05 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406549', 'tblTempUsageDetail_20' ) start [2025-02-05 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406549', 'tblTempUsageDetail_20' ) end [2025-02-05 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406549', 'tblTempVendorCDR_20' ) start [2025-02-05 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406549', 'tblTempVendorCDR_20' ) end [2025-02-05 08:42:18] Production.INFO: ProcessCDR(1,14406549,1,1,2) [2025-02-05 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406549', 'tblTempUsageDetail_20' ) start [2025-02-05 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406549', 'tblTempUsageDetail_20' ) end [2025-02-05 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:42:21] Production.INFO: ==27761== Releasing lock... [2025-02-05 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:42:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:43:05 [end_date_ymd] => 2025-02-05 08:43:05 [RateCDR] => 1 ) [2025-02-05 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:43:05' and `end` < '2025-02-05 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:43:18] Production.INFO: count ==578 [2025-02-05 08:43:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:43:05 - End Time 2025-02-05 08:43:05 [2025-02-05 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406554', 'tblTempUsageDetail_20' ) start [2025-02-05 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406554', 'tblTempUsageDetail_20' ) end [2025-02-05 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406554', 'tblTempVendorCDR_20' ) start [2025-02-05 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406554', 'tblTempVendorCDR_20' ) end [2025-02-05 08:43:18] Production.INFO: ProcessCDR(1,14406554,1,1,2) [2025-02-05 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406554', 'tblTempUsageDetail_20' ) start [2025-02-05 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406554', 'tblTempUsageDetail_20' ) end [2025-02-05 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:43:23] Production.INFO: ==27833== Releasing lock... [2025-02-05 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:43:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:44:05 [end_date_ymd] => 2025-02-05 08:44:05 [RateCDR] => 1 ) [2025-02-05 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:44:05' and `end` < '2025-02-05 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:44:19] Production.INFO: count ==584 [2025-02-05 08:44:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:44:05 - End Time 2025-02-05 08:44:05 [2025-02-05 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406559', 'tblTempUsageDetail_20' ) start [2025-02-05 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406559', 'tblTempUsageDetail_20' ) end [2025-02-05 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406559', 'tblTempVendorCDR_20' ) start [2025-02-05 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406559', 'tblTempVendorCDR_20' ) end [2025-02-05 08:44:19] Production.INFO: ProcessCDR(1,14406559,1,1,2) [2025-02-05 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406559', 'tblTempUsageDetail_20' ) start [2025-02-05 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406559', 'tblTempUsageDetail_20' ) end [2025-02-05 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:44:22] Production.INFO: ==27927== Releasing lock... [2025-02-05 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:45:05 [end_date_ymd] => 2025-02-05 08:45:05 [RateCDR] => 1 ) [2025-02-05 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:45:05' and `end` < '2025-02-05 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:45:18] Production.INFO: count ==587 [2025-02-05 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:45:05 - End Time 2025-02-05 08:45:05 [2025-02-05 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406564', 'tblTempUsageDetail_20' ) start [2025-02-05 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406564', 'tblTempUsageDetail_20' ) end [2025-02-05 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406564', 'tblTempVendorCDR_20' ) start [2025-02-05 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406564', 'tblTempVendorCDR_20' ) end [2025-02-05 08:45:18] Production.INFO: ProcessCDR(1,14406564,1,1,2) [2025-02-05 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406564', 'tblTempUsageDetail_20' ) start [2025-02-05 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406564', 'tblTempUsageDetail_20' ) end [2025-02-05 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:45:23] Production.INFO: ==28045== Releasing lock... [2025-02-05 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:45:23] Production.INFO: 33 MB #Memory Used# [2025-02-05 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:46:06 [end_date_ymd] => 2025-02-05 08:46:06 [RateCDR] => 1 ) [2025-02-05 08:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:46:06' and `end` < '2025-02-05 08:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:46:19] Production.INFO: count ==601 [2025-02-05 08:46:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:46:06 - End Time 2025-02-05 08:46:06 [2025-02-05 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406569', 'tblTempUsageDetail_20' ) start [2025-02-05 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406569', 'tblTempUsageDetail_20' ) end [2025-02-05 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406569', 'tblTempVendorCDR_20' ) start [2025-02-05 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406569', 'tblTempVendorCDR_20' ) end [2025-02-05 08:46:19] Production.INFO: ProcessCDR(1,14406569,1,1,2) [2025-02-05 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406569', 'tblTempUsageDetail_20' ) start [2025-02-05 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406569', 'tblTempUsageDetail_20' ) end [2025-02-05 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:46:22] Production.INFO: ==28121== Releasing lock... [2025-02-05 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:46:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:47:05 [end_date_ymd] => 2025-02-05 08:47:05 [RateCDR] => 1 ) [2025-02-05 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:47:05' and `end` < '2025-02-05 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:47:18] Production.INFO: count ==607 [2025-02-05 08:47:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:47:05 - End Time 2025-02-05 08:47:05 [2025-02-05 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406574', 'tblTempUsageDetail_20' ) start [2025-02-05 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406574', 'tblTempUsageDetail_20' ) end [2025-02-05 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406574', 'tblTempVendorCDR_20' ) start [2025-02-05 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406574', 'tblTempVendorCDR_20' ) end [2025-02-05 08:47:18] Production.INFO: ProcessCDR(1,14406574,1,1,2) [2025-02-05 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406574', 'tblTempUsageDetail_20' ) start [2025-02-05 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406574', 'tblTempUsageDetail_20' ) end [2025-02-05 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:47:22] Production.INFO: ==28206== Releasing lock... [2025-02-05 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:47:22] Production.INFO: 33 MB #Memory Used# [2025-02-05 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:48:06 [end_date_ymd] => 2025-02-05 08:48:06 [RateCDR] => 1 ) [2025-02-05 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:48:06' and `end` < '2025-02-05 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:48:18] Production.INFO: count ==620 [2025-02-05 08:48:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:48:06 - End Time 2025-02-05 08:48:06 [2025-02-05 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406579', 'tblTempUsageDetail_20' ) start [2025-02-05 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406579', 'tblTempUsageDetail_20' ) end [2025-02-05 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406579', 'tblTempVendorCDR_20' ) start [2025-02-05 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406579', 'tblTempVendorCDR_20' ) end [2025-02-05 08:48:19] Production.INFO: ProcessCDR(1,14406579,1,1,2) [2025-02-05 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406579', 'tblTempUsageDetail_20' ) start [2025-02-05 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406579', 'tblTempUsageDetail_20' ) end [2025-02-05 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:48:23] Production.INFO: ==28281== Releasing lock... [2025-02-05 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:48:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:49:05 [end_date_ymd] => 2025-02-05 08:49:05 [RateCDR] => 1 ) [2025-02-05 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:49:05' and `end` < '2025-02-05 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:49:19] Production.INFO: count ==627 [2025-02-05 08:49:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:49:05 - End Time 2025-02-05 08:49:05 [2025-02-05 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406584', 'tblTempUsageDetail_20' ) start [2025-02-05 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406584', 'tblTempUsageDetail_20' ) end [2025-02-05 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406584', 'tblTempVendorCDR_20' ) start [2025-02-05 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406584', 'tblTempVendorCDR_20' ) end [2025-02-05 08:49:19] Production.INFO: ProcessCDR(1,14406584,1,1,2) [2025-02-05 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406584', 'tblTempUsageDetail_20' ) start [2025-02-05 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406584', 'tblTempUsageDetail_20' ) end [2025-02-05 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:49:22] Production.INFO: ==28361== Releasing lock... [2025-02-05 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:49:22] Production.INFO: 33 MB #Memory Used# [2025-02-05 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:50:06 [end_date_ymd] => 2025-02-05 08:50:06 [RateCDR] => 1 ) [2025-02-05 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:50:06' and `end` < '2025-02-05 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:50:19] Production.INFO: count ==636 [2025-02-05 08:50:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:50:06 - End Time 2025-02-05 08:50:06 [2025-02-05 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406589', 'tblTempUsageDetail_20' ) start [2025-02-05 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406589', 'tblTempUsageDetail_20' ) end [2025-02-05 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406589', 'tblTempVendorCDR_20' ) start [2025-02-05 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406589', 'tblTempVendorCDR_20' ) end [2025-02-05 08:50:19] Production.INFO: ProcessCDR(1,14406589,1,1,2) [2025-02-05 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406589', 'tblTempUsageDetail_20' ) start [2025-02-05 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406589', 'tblTempUsageDetail_20' ) end [2025-02-05 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:50:22] Production.INFO: ==28435== Releasing lock... [2025-02-05 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:50:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-05 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:51:05 [end_date_ymd] => 2025-02-05 08:51:05 [RateCDR] => 1 ) [2025-02-05 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:51:05' and `end` < '2025-02-05 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:51:18] Production.INFO: count ==667 [2025-02-05 08:51:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:51:05 - End Time 2025-02-05 08:51:05 [2025-02-05 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406595', 'tblTempUsageDetail_20' ) start [2025-02-05 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406595', 'tblTempUsageDetail_20' ) end [2025-02-05 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406595', 'tblTempVendorCDR_20' ) start [2025-02-05 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406595', 'tblTempVendorCDR_20' ) end [2025-02-05 08:51:18] Production.INFO: ProcessCDR(1,14406595,1,1,2) [2025-02-05 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406595', 'tblTempUsageDetail_20' ) start [2025-02-05 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406595', 'tblTempUsageDetail_20' ) end [2025-02-05 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:51:23] Production.INFO: ==28531== Releasing lock... [2025-02-05 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:51:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-05 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:52:05 [end_date_ymd] => 2025-02-05 08:52:05 [RateCDR] => 1 ) [2025-02-05 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:52:05' and `end` < '2025-02-05 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:52:18] Production.INFO: count ==667 [2025-02-05 08:52:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:52:05 - End Time 2025-02-05 08:52:05 [2025-02-05 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406600', 'tblTempUsageDetail_20' ) start [2025-02-05 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406600', 'tblTempUsageDetail_20' ) end [2025-02-05 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406600', 'tblTempVendorCDR_20' ) start [2025-02-05 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406600', 'tblTempVendorCDR_20' ) end [2025-02-05 08:52:18] Production.INFO: ProcessCDR(1,14406600,1,1,2) [2025-02-05 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406600', 'tblTempUsageDetail_20' ) start [2025-02-05 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406600', 'tblTempUsageDetail_20' ) end [2025-02-05 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:52:22] Production.INFO: ==28612== Releasing lock... [2025-02-05 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:52:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-05 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:53:04 [end_date_ymd] => 2025-02-05 08:53:04 [RateCDR] => 1 ) [2025-02-05 08:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:53:04' and `end` < '2025-02-05 08:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:53:19] Production.INFO: count ==672 [2025-02-05 08:53:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:53:04 - End Time 2025-02-05 08:53:04 [2025-02-05 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406605', 'tblTempUsageDetail_20' ) start [2025-02-05 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406605', 'tblTempUsageDetail_20' ) end [2025-02-05 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406605', 'tblTempVendorCDR_20' ) start [2025-02-05 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406605', 'tblTempVendorCDR_20' ) end [2025-02-05 08:53:19] Production.INFO: ProcessCDR(1,14406605,1,1,2) [2025-02-05 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406605', 'tblTempUsageDetail_20' ) start [2025-02-05 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406605', 'tblTempUsageDetail_20' ) end [2025-02-05 08:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:53:24] Production.INFO: ==28690== Releasing lock... [2025-02-05 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:53:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-05 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:54:05 [end_date_ymd] => 2025-02-05 08:54:05 [RateCDR] => 1 ) [2025-02-05 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:54:05' and `end` < '2025-02-05 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:54:18] Production.INFO: count ==674 [2025-02-05 08:54:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:54:05 - End Time 2025-02-05 08:54:05 [2025-02-05 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406610', 'tblTempUsageDetail_20' ) start [2025-02-05 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406610', 'tblTempUsageDetail_20' ) end [2025-02-05 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406610', 'tblTempVendorCDR_20' ) start [2025-02-05 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406610', 'tblTempVendorCDR_20' ) end [2025-02-05 08:54:18] Production.INFO: ProcessCDR(1,14406610,1,1,2) [2025-02-05 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406610', 'tblTempUsageDetail_20' ) start [2025-02-05 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406610', 'tblTempUsageDetail_20' ) end [2025-02-05 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:54:21] Production.INFO: ==28767== Releasing lock... [2025-02-05 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:54:21] Production.INFO: 34 MB #Memory Used# [2025-02-05 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:55:05 [end_date_ymd] => 2025-02-05 08:55:05 [RateCDR] => 1 ) [2025-02-05 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:55:05' and `end` < '2025-02-05 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:55:18] Production.INFO: count ==675 [2025-02-05 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:55:05 - End Time 2025-02-05 08:55:05 [2025-02-05 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406615', 'tblTempUsageDetail_20' ) start [2025-02-05 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406615', 'tblTempUsageDetail_20' ) end [2025-02-05 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406615', 'tblTempVendorCDR_20' ) start [2025-02-05 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406615', 'tblTempVendorCDR_20' ) end [2025-02-05 08:55:18] Production.INFO: ProcessCDR(1,14406615,1,1,2) [2025-02-05 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406615', 'tblTempUsageDetail_20' ) start [2025-02-05 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406615', 'tblTempUsageDetail_20' ) end [2025-02-05 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:55:21] Production.INFO: ==28838== Releasing lock... [2025-02-05 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:55:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:56:06 [end_date_ymd] => 2025-02-05 08:56:06 [RateCDR] => 1 ) [2025-02-05 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:56:06' and `end` < '2025-02-05 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:56:19] Production.INFO: count ==676 [2025-02-05 08:56:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:56:06 - End Time 2025-02-05 08:56:06 [2025-02-05 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406620', 'tblTempUsageDetail_20' ) start [2025-02-05 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406620', 'tblTempUsageDetail_20' ) end [2025-02-05 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406620', 'tblTempVendorCDR_20' ) start [2025-02-05 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406620', 'tblTempVendorCDR_20' ) end [2025-02-05 08:56:19] Production.INFO: ProcessCDR(1,14406620,1,1,2) [2025-02-05 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406620', 'tblTempUsageDetail_20' ) start [2025-02-05 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406620', 'tblTempUsageDetail_20' ) end [2025-02-05 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:56:24] Production.INFO: ==28913== Releasing lock... [2025-02-05 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:56:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-05 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:57:06 [end_date_ymd] => 2025-02-05 08:57:06 [RateCDR] => 1 ) [2025-02-05 08:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:57:06' and `end` < '2025-02-05 08:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:57:19] Production.INFO: count ==701 [2025-02-05 08:57:19] Production.ERROR: pbx CDR StartTime 2025-02-05 05:57:06 - End Time 2025-02-05 08:57:06 [2025-02-05 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406625', 'tblTempUsageDetail_20' ) start [2025-02-05 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406625', 'tblTempUsageDetail_20' ) end [2025-02-05 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406625', 'tblTempVendorCDR_20' ) start [2025-02-05 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406625', 'tblTempVendorCDR_20' ) end [2025-02-05 08:57:19] Production.INFO: ProcessCDR(1,14406625,1,1,2) [2025-02-05 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406625', 'tblTempUsageDetail_20' ) start [2025-02-05 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406625', 'tblTempUsageDetail_20' ) end [2025-02-05 08:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:57:24] Production.INFO: ==28988== Releasing lock... [2025-02-05 08:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:57:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:58:05 [end_date_ymd] => 2025-02-05 08:58:05 [RateCDR] => 1 ) [2025-02-05 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:58:05' and `end` < '2025-02-05 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:58:19] Production.INFO: count ==728 [2025-02-05 08:58:20] Production.ERROR: pbx CDR StartTime 2025-02-05 05:58:05 - End Time 2025-02-05 08:58:05 [2025-02-05 08:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406630', 'tblTempUsageDetail_20' ) start [2025-02-05 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406630', 'tblTempUsageDetail_20' ) end [2025-02-05 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406630', 'tblTempVendorCDR_20' ) start [2025-02-05 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406630', 'tblTempVendorCDR_20' ) end [2025-02-05 08:58:20] Production.INFO: ProcessCDR(1,14406630,1,1,2) [2025-02-05 08:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406630', 'tblTempUsageDetail_20' ) start [2025-02-05 08:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406630', 'tblTempUsageDetail_20' ) end [2025-02-05 08:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:58:25] Production.INFO: ==29079== Releasing lock... [2025-02-05 08:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:58:25] Production.INFO: 34 MB #Memory Used# [2025-02-05 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 05:59:05 [end_date_ymd] => 2025-02-05 08:59:05 [RateCDR] => 1 ) [2025-02-05 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 05:59:05' and `end` < '2025-02-05 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 08:59:18] Production.INFO: count ==730 [2025-02-05 08:59:18] Production.ERROR: pbx CDR StartTime 2025-02-05 05:59:05 - End Time 2025-02-05 08:59:05 [2025-02-05 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406635', 'tblTempUsageDetail_20' ) start [2025-02-05 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406635', 'tblTempUsageDetail_20' ) end [2025-02-05 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406635', 'tblTempVendorCDR_20' ) start [2025-02-05 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406635', 'tblTempVendorCDR_20' ) end [2025-02-05 08:59:19] Production.INFO: ProcessCDR(1,14406635,1,1,2) [2025-02-05 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406635', 'tblTempUsageDetail_20' ) start [2025-02-05 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406635', 'tblTempUsageDetail_20' ) end [2025-02-05 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 08:59:23] Production.INFO: ==29149== Releasing lock... [2025-02-05 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 08:59:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-05 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:00:06 [end_date_ymd] => 2025-02-05 09:00:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 06:00:06' and `end` < '2025-02-05 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-02-05 09:00:19] Production.INFO: count ==732 [2025-02-05 09:00:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:00:06 - End Time 2025-02-05 09:00:06 [2025-02-05 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406641', 'tblTempUsageDetail_20' ) start [2025-02-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406641', 'tblTempUsageDetail_20' ) end [2025-02-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406641', 'tblTempVendorCDR_20' ) start [2025-02-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406641', 'tblTempVendorCDR_20' ) end [2025-02-05 09:00:19] Production.INFO: ProcessCDR(1,14406641,1,1,2) [2025-02-05 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406641', 'tblTempUsageDetail_20' ) start [2025-02-05 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406641', 'tblTempUsageDetail_20' ) end [2025-02-05 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:00:24] Production.INFO: ==29226== Releasing lock... [2025-02-05 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:00:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-05 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:01:06 [end_date_ymd] => 2025-02-05 09:01:06 [RateCDR] => 1 ) [2025-02-05 09:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:01:06' and `end` < '2025-02-05 09:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:01:19] Production.INFO: count ==764 [2025-02-05 09:01:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:01:06 - End Time 2025-02-05 09:01:06 [2025-02-05 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406646', 'tblTempUsageDetail_20' ) start [2025-02-05 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406646', 'tblTempUsageDetail_20' ) end [2025-02-05 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406646', 'tblTempVendorCDR_20' ) start [2025-02-05 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406646', 'tblTempVendorCDR_20' ) end [2025-02-05 09:01:19] Production.INFO: ProcessCDR(1,14406646,1,1,2) [2025-02-05 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406646', 'tblTempUsageDetail_20' ) start [2025-02-05 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406646', 'tblTempUsageDetail_20' ) end [2025-02-05 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:01:22] Production.INFO: ==29360== Releasing lock... [2025-02-05 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:01:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-05 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:02:05 [end_date_ymd] => 2025-02-05 09:02:05 [RateCDR] => 1 ) [2025-02-05 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:02:05' and `end` < '2025-02-05 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:02:18] Production.INFO: count ==769 [2025-02-05 09:02:18] Production.ERROR: pbx CDR StartTime 2025-02-05 06:02:05 - End Time 2025-02-05 09:02:05 [2025-02-05 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406651', 'tblTempUsageDetail_20' ) start [2025-02-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406651', 'tblTempUsageDetail_20' ) end [2025-02-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406651', 'tblTempVendorCDR_20' ) start [2025-02-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406651', 'tblTempVendorCDR_20' ) end [2025-02-05 09:02:18] Production.INFO: ProcessCDR(1,14406651,1,1,2) [2025-02-05 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406651', 'tblTempUsageDetail_20' ) start [2025-02-05 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406651', 'tblTempUsageDetail_20' ) end [2025-02-05 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:02:23] Production.INFO: ==29434== Releasing lock... [2025-02-05 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:02:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-05 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:03:05 [end_date_ymd] => 2025-02-05 09:03:05 [RateCDR] => 1 ) [2025-02-05 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:03:05' and `end` < '2025-02-05 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:03:18] Production.INFO: count ==775 [2025-02-05 09:03:18] Production.ERROR: pbx CDR StartTime 2025-02-05 06:03:05 - End Time 2025-02-05 09:03:05 [2025-02-05 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406656', 'tblTempUsageDetail_20' ) start [2025-02-05 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406656', 'tblTempUsageDetail_20' ) end [2025-02-05 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406656', 'tblTempVendorCDR_20' ) start [2025-02-05 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406656', 'tblTempVendorCDR_20' ) end [2025-02-05 09:03:18] Production.INFO: ProcessCDR(1,14406656,1,1,2) [2025-02-05 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406656', 'tblTempUsageDetail_20' ) start [2025-02-05 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406656', 'tblTempUsageDetail_20' ) end [2025-02-05 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:03:23] Production.INFO: ==29518== Releasing lock... [2025-02-05 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:03:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:04:05 [end_date_ymd] => 2025-02-05 09:04:05 [RateCDR] => 1 ) [2025-02-05 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:04:05' and `end` < '2025-02-05 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:04:18] Production.INFO: count ==785 [2025-02-05 09:04:18] Production.ERROR: pbx CDR StartTime 2025-02-05 06:04:05 - End Time 2025-02-05 09:04:05 [2025-02-05 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406661', 'tblTempUsageDetail_20' ) start [2025-02-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406661', 'tblTempUsageDetail_20' ) end [2025-02-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406661', 'tblTempVendorCDR_20' ) start [2025-02-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406661', 'tblTempVendorCDR_20' ) end [2025-02-05 09:04:18] Production.INFO: ProcessCDR(1,14406661,1,1,2) [2025-02-05 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406661', 'tblTempUsageDetail_20' ) start [2025-02-05 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406661', 'tblTempUsageDetail_20' ) end [2025-02-05 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:04:23] Production.INFO: ==29616== Releasing lock... [2025-02-05 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:04:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:05:05 [end_date_ymd] => 2025-02-05 09:05:05 [RateCDR] => 1 ) [2025-02-05 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:05:05' and `end` < '2025-02-05 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:05:19] Production.INFO: count ==799 [2025-02-05 09:05:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:05:05 - End Time 2025-02-05 09:05:05 [2025-02-05 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406666', 'tblTempUsageDetail_20' ) start [2025-02-05 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406666', 'tblTempUsageDetail_20' ) end [2025-02-05 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406666', 'tblTempVendorCDR_20' ) start [2025-02-05 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406666', 'tblTempVendorCDR_20' ) end [2025-02-05 09:05:19] Production.INFO: ProcessCDR(1,14406666,1,1,2) [2025-02-05 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406666', 'tblTempUsageDetail_20' ) start [2025-02-05 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406666', 'tblTempUsageDetail_20' ) end [2025-02-05 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:05:23] Production.INFO: ==29699== Releasing lock... [2025-02-05 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:05:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-05 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:06:05 [end_date_ymd] => 2025-02-05 09:06:05 [RateCDR] => 1 ) [2025-02-05 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:06:05' and `end` < '2025-02-05 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:06:18] Production.INFO: count ==828 [2025-02-05 09:06:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:06:05 - End Time 2025-02-05 09:06:05 [2025-02-05 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406671', 'tblTempUsageDetail_20' ) start [2025-02-05 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406671', 'tblTempUsageDetail_20' ) end [2025-02-05 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406671', 'tblTempVendorCDR_20' ) start [2025-02-05 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406671', 'tblTempVendorCDR_20' ) end [2025-02-05 09:06:19] Production.INFO: ProcessCDR(1,14406671,1,1,2) [2025-02-05 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406671', 'tblTempUsageDetail_20' ) start [2025-02-05 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406671', 'tblTempUsageDetail_20' ) end [2025-02-05 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:06:23] Production.INFO: ==29778== Releasing lock... [2025-02-05 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:06:23] Production.INFO: 35 MB #Memory Used# [2025-02-05 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:07:05 [end_date_ymd] => 2025-02-05 09:07:05 [RateCDR] => 1 ) [2025-02-05 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:07:05' and `end` < '2025-02-05 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:07:18] Production.INFO: count ==840 [2025-02-05 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-05 06:07:05 - End Time 2025-02-05 09:07:05 [2025-02-05 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406676', 'tblTempUsageDetail_20' ) start [2025-02-05 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406676', 'tblTempUsageDetail_20' ) end [2025-02-05 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406676', 'tblTempVendorCDR_20' ) start [2025-02-05 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406676', 'tblTempVendorCDR_20' ) end [2025-02-05 09:07:18] Production.INFO: ProcessCDR(1,14406676,1,1,2) [2025-02-05 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406676', 'tblTempUsageDetail_20' ) start [2025-02-05 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406676', 'tblTempUsageDetail_20' ) end [2025-02-05 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:07:23] Production.INFO: ==29854== Releasing lock... [2025-02-05 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:07:23] Production.INFO: 35 MB #Memory Used# [2025-02-05 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:08:05 [end_date_ymd] => 2025-02-05 09:08:05 [RateCDR] => 1 ) [2025-02-05 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:08:05' and `end` < '2025-02-05 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:08:18] Production.INFO: count ==857 [2025-02-05 09:08:18] Production.ERROR: pbx CDR StartTime 2025-02-05 06:08:05 - End Time 2025-02-05 09:08:05 [2025-02-05 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406681', 'tblTempUsageDetail_20' ) start [2025-02-05 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406681', 'tblTempUsageDetail_20' ) end [2025-02-05 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406681', 'tblTempVendorCDR_20' ) start [2025-02-05 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406681', 'tblTempVendorCDR_20' ) end [2025-02-05 09:08:18] Production.INFO: ProcessCDR(1,14406681,1,1,2) [2025-02-05 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406681', 'tblTempUsageDetail_20' ) start [2025-02-05 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406681', 'tblTempUsageDetail_20' ) end [2025-02-05 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:08:23] Production.INFO: ==29932== Releasing lock... [2025-02-05 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:08:23] Production.INFO: 35 MB #Memory Used# [2025-02-05 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:09:05 [end_date_ymd] => 2025-02-05 09:09:05 [RateCDR] => 1 ) [2025-02-05 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:09:05' and `end` < '2025-02-05 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:09:18] Production.INFO: count ==865 [2025-02-05 09:09:18] Production.ERROR: pbx CDR StartTime 2025-02-05 06:09:05 - End Time 2025-02-05 09:09:05 [2025-02-05 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406686', 'tblTempUsageDetail_20' ) start [2025-02-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406686', 'tblTempUsageDetail_20' ) end [2025-02-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406686', 'tblTempVendorCDR_20' ) start [2025-02-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406686', 'tblTempVendorCDR_20' ) end [2025-02-05 09:09:18] Production.INFO: ProcessCDR(1,14406686,1,1,2) [2025-02-05 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406686', 'tblTempUsageDetail_20' ) start [2025-02-05 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406686', 'tblTempUsageDetail_20' ) end [2025-02-05 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:09:23] Production.INFO: ==30005== Releasing lock... [2025-02-05 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:09:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-05 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:10:06 [end_date_ymd] => 2025-02-05 09:10:06 [RateCDR] => 1 ) [2025-02-05 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:10:06' and `end` < '2025-02-05 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:10:19] Production.INFO: count ==888 [2025-02-05 09:10:20] Production.ERROR: pbx CDR StartTime 2025-02-05 06:10:06 - End Time 2025-02-05 09:10:06 [2025-02-05 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406691', 'tblTempUsageDetail_20' ) start [2025-02-05 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406691', 'tblTempUsageDetail_20' ) end [2025-02-05 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406691', 'tblTempVendorCDR_20' ) start [2025-02-05 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406691', 'tblTempVendorCDR_20' ) end [2025-02-05 09:10:20] Production.INFO: ProcessCDR(1,14406691,1,1,2) [2025-02-05 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406691', 'tblTempUsageDetail_20' ) start [2025-02-05 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406691', 'tblTempUsageDetail_20' ) end [2025-02-05 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:10:25] Production.INFO: ==30083== Releasing lock... [2025-02-05 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:10:25] Production.INFO: 35.25 MB #Memory Used# [2025-02-05 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:11:05 [end_date_ymd] => 2025-02-05 09:11:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 06:11:05' and `end` < '2025-02-05 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-02-05 09:11:18] Production.INFO: count ==984 [2025-02-05 09:11:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:11:05 - End Time 2025-02-05 09:11:05 [2025-02-05 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406697', 'tblTempUsageDetail_20' ) start [2025-02-05 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406697', 'tblTempUsageDetail_20' ) end [2025-02-05 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406697', 'tblTempVendorCDR_20' ) start [2025-02-05 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406697', 'tblTempVendorCDR_20' ) end [2025-02-05 09:11:19] Production.INFO: ProcessCDR(1,14406697,1,1,2) [2025-02-05 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406697', 'tblTempUsageDetail_20' ) start [2025-02-05 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406697', 'tblTempUsageDetail_20' ) end [2025-02-05 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:11:23] Production.INFO: ==30176== Releasing lock... [2025-02-05 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:11:23] Production.INFO: 36 MB #Memory Used# [2025-02-05 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:12:05 [end_date_ymd] => 2025-02-05 09:12:05 [RateCDR] => 1 ) [2025-02-05 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:12:05' and `end` < '2025-02-05 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:12:18] Production.INFO: count ==1008 [2025-02-05 09:12:18] Production.ERROR: pbx CDR StartTime 2025-02-05 06:12:05 - End Time 2025-02-05 09:12:05 [2025-02-05 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406702', 'tblTempUsageDetail_20' ) start [2025-02-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406702', 'tblTempUsageDetail_20' ) end [2025-02-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406702', 'tblTempVendorCDR_20' ) start [2025-02-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406702', 'tblTempVendorCDR_20' ) end [2025-02-05 09:12:18] Production.INFO: ProcessCDR(1,14406702,1,1,2) [2025-02-05 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406702', 'tblTempUsageDetail_20' ) start [2025-02-05 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406702', 'tblTempUsageDetail_20' ) end [2025-02-05 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:12:23] Production.INFO: ==30253== Releasing lock... [2025-02-05 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:12:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:13:05 [end_date_ymd] => 2025-02-05 09:13:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 06:13:05' and `end` < '2025-02-05 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-02-05 09:13:18] Production.INFO: count ==1038 [2025-02-05 09:13:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:13:05 - End Time 2025-02-05 09:13:05 [2025-02-05 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406707', 'tblTempUsageDetail_20' ) start [2025-02-05 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406707', 'tblTempUsageDetail_20' ) end [2025-02-05 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406707', 'tblTempVendorCDR_20' ) start [2025-02-05 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406707', 'tblTempVendorCDR_20' ) end [2025-02-05 09:13:19] Production.INFO: ProcessCDR(1,14406707,1,1,2) [2025-02-05 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406707', 'tblTempUsageDetail_20' ) start [2025-02-05 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406707', 'tblTempUsageDetail_20' ) end [2025-02-05 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:13:24] Production.INFO: ==30345== Releasing lock... [2025-02-05 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:13:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:14:05 [end_date_ymd] => 2025-02-05 09:14:05 [RateCDR] => 1 ) [2025-02-05 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:14:05' and `end` < '2025-02-05 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:14:18] Production.INFO: count ==1059 [2025-02-05 09:14:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:14:05 - End Time 2025-02-05 09:14:05 [2025-02-05 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406712', 'tblTempUsageDetail_20' ) start [2025-02-05 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406712', 'tblTempUsageDetail_20' ) end [2025-02-05 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406712', 'tblTempVendorCDR_20' ) start [2025-02-05 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406712', 'tblTempVendorCDR_20' ) end [2025-02-05 09:14:19] Production.INFO: ProcessCDR(1,14406712,1,1,2) [2025-02-05 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406712', 'tblTempUsageDetail_20' ) start [2025-02-05 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406712', 'tblTempUsageDetail_20' ) end [2025-02-05 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:14:22] Production.INFO: ==30420== Releasing lock... [2025-02-05 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:14:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:15:05 [end_date_ymd] => 2025-02-05 09:15:05 [RateCDR] => 1 ) [2025-02-05 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:15:05' and `end` < '2025-02-05 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:15:19] Production.INFO: count ==1070 [2025-02-05 09:15:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:15:05 - End Time 2025-02-05 09:15:05 [2025-02-05 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406717', 'tblTempUsageDetail_20' ) start [2025-02-05 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406717', 'tblTempUsageDetail_20' ) end [2025-02-05 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406717', 'tblTempVendorCDR_20' ) start [2025-02-05 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406717', 'tblTempVendorCDR_20' ) end [2025-02-05 09:15:19] Production.INFO: ProcessCDR(1,14406717,1,1,2) [2025-02-05 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406717', 'tblTempUsageDetail_20' ) start [2025-02-05 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406717', 'tblTempUsageDetail_20' ) end [2025-02-05 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:15:23] Production.INFO: ==30496== Releasing lock... [2025-02-05 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:15:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-05 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:16:05 [end_date_ymd] => 2025-02-05 09:16:05 [RateCDR] => 1 ) [2025-02-05 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:16:05' and `end` < '2025-02-05 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:16:21] Production.INFO: count ==1090 [2025-02-05 09:16:22] Production.ERROR: pbx CDR StartTime 2025-02-05 06:16:05 - End Time 2025-02-05 09:16:05 [2025-02-05 09:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406722', 'tblTempUsageDetail_20' ) start [2025-02-05 09:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406722', 'tblTempUsageDetail_20' ) end [2025-02-05 09:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406722', 'tblTempVendorCDR_20' ) start [2025-02-05 09:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406722', 'tblTempVendorCDR_20' ) end [2025-02-05 09:16:22] Production.INFO: ProcessCDR(1,14406722,1,1,2) [2025-02-05 09:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406722', 'tblTempUsageDetail_20' ) start [2025-02-05 09:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406722', 'tblTempUsageDetail_20' ) end [2025-02-05 09:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:16:26] Production.INFO: ==30609== Releasing lock... [2025-02-05 09:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:16:26] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:17:05 [end_date_ymd] => 2025-02-05 09:17:05 [RateCDR] => 1 ) [2025-02-05 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:17:05' and `end` < '2025-02-05 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:17:19] Production.INFO: count ==1167 [2025-02-05 09:17:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:17:05 - End Time 2025-02-05 09:17:05 [2025-02-05 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406727', 'tblTempUsageDetail_20' ) start [2025-02-05 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406727', 'tblTempUsageDetail_20' ) end [2025-02-05 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406727', 'tblTempVendorCDR_20' ) start [2025-02-05 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406727', 'tblTempVendorCDR_20' ) end [2025-02-05 09:17:19] Production.INFO: ProcessCDR(1,14406727,1,1,2) [2025-02-05 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406727', 'tblTempUsageDetail_20' ) start [2025-02-05 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406727', 'tblTempUsageDetail_20' ) end [2025-02-05 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:17:24] Production.INFO: ==30686== Releasing lock... [2025-02-05 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:17:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-05 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:18:05 [end_date_ymd] => 2025-02-05 09:18:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 06:18:05' and `end` < '2025-02-05 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-02-05 09:18:20] Production.INFO: count ==1191 [2025-02-05 09:18:20] Production.ERROR: pbx CDR StartTime 2025-02-05 06:18:05 - End Time 2025-02-05 09:18:05 [2025-02-05 09:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406732', 'tblTempUsageDetail_20' ) start [2025-02-05 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406732', 'tblTempUsageDetail_20' ) end [2025-02-05 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406732', 'tblTempVendorCDR_20' ) start [2025-02-05 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406732', 'tblTempVendorCDR_20' ) end [2025-02-05 09:18:20] Production.INFO: ProcessCDR(1,14406732,1,1,2) [2025-02-05 09:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406732', 'tblTempUsageDetail_20' ) start [2025-02-05 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406732', 'tblTempUsageDetail_20' ) end [2025-02-05 09:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:18:25] Production.INFO: ==30759== Releasing lock... [2025-02-05 09:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:18:25] Production.INFO: 36.75 MB #Memory Used# [2025-02-05 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:19:05 [end_date_ymd] => 2025-02-05 09:19:05 [RateCDR] => 1 ) [2025-02-05 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:19:05' and `end` < '2025-02-05 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:19:23] Production.INFO: count ==1195 [2025-02-05 09:19:23] Production.ERROR: pbx CDR StartTime 2025-02-05 06:19:05 - End Time 2025-02-05 09:19:05 [2025-02-05 09:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406737', 'tblTempUsageDetail_20' ) start [2025-02-05 09:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406737', 'tblTempUsageDetail_20' ) end [2025-02-05 09:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406737', 'tblTempVendorCDR_20' ) start [2025-02-05 09:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406737', 'tblTempVendorCDR_20' ) end [2025-02-05 09:19:23] Production.INFO: ProcessCDR(1,14406737,1,1,2) [2025-02-05 09:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406737', 'tblTempUsageDetail_20' ) start [2025-02-05 09:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406737', 'tblTempUsageDetail_20' ) end [2025-02-05 09:19:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:19:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:19:28] Production.INFO: ==30836== Releasing lock... [2025-02-05 09:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:19:28] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:20:05 [end_date_ymd] => 2025-02-05 09:20:05 [RateCDR] => 1 ) [2025-02-05 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:20:05' and `end` < '2025-02-05 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:20:18] Production.INFO: count ==1210 [2025-02-05 09:20:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:20:05 - End Time 2025-02-05 09:20:05 [2025-02-05 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406743', 'tblTempUsageDetail_20' ) start [2025-02-05 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406743', 'tblTempUsageDetail_20' ) end [2025-02-05 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406743', 'tblTempVendorCDR_20' ) start [2025-02-05 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406743', 'tblTempVendorCDR_20' ) end [2025-02-05 09:20:19] Production.INFO: ProcessCDR(1,14406743,1,1,2) [2025-02-05 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406743', 'tblTempUsageDetail_20' ) start [2025-02-05 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406743', 'tblTempUsageDetail_20' ) end [2025-02-05 09:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:20:23] Production.INFO: ==30950== Releasing lock... [2025-02-05 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:20:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:21:05 [end_date_ymd] => 2025-02-05 09:21:05 [RateCDR] => 1 ) [2025-02-05 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:21:05' and `end` < '2025-02-05 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:21:18] Production.INFO: count ==1263 [2025-02-05 09:21:18] Production.ERROR: pbx CDR StartTime 2025-02-05 06:21:05 - End Time 2025-02-05 09:21:05 [2025-02-05 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406748', 'tblTempUsageDetail_20' ) start [2025-02-05 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406748', 'tblTempUsageDetail_20' ) end [2025-02-05 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406748', 'tblTempVendorCDR_20' ) start [2025-02-05 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406748', 'tblTempVendorCDR_20' ) end [2025-02-05 09:21:18] Production.INFO: ProcessCDR(1,14406748,1,1,2) [2025-02-05 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406748', 'tblTempUsageDetail_20' ) start [2025-02-05 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406748', 'tblTempUsageDetail_20' ) end [2025-02-05 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:21:23] Production.INFO: ==31031== Releasing lock... [2025-02-05 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:21:23] Production.INFO: 38 MB #Memory Used# [2025-02-05 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:22:05 [end_date_ymd] => 2025-02-05 09:22:05 [RateCDR] => 1 ) [2025-02-05 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:22:05' and `end` < '2025-02-05 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:22:19] Production.INFO: count ==1273 [2025-02-05 09:22:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:22:05 - End Time 2025-02-05 09:22:05 [2025-02-05 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406753', 'tblTempUsageDetail_20' ) start [2025-02-05 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406753', 'tblTempUsageDetail_20' ) end [2025-02-05 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406753', 'tblTempVendorCDR_20' ) start [2025-02-05 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406753', 'tblTempVendorCDR_20' ) end [2025-02-05 09:22:19] Production.INFO: ProcessCDR(1,14406753,1,1,2) [2025-02-05 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406753', 'tblTempUsageDetail_20' ) start [2025-02-05 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406753', 'tblTempUsageDetail_20' ) end [2025-02-05 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:22:24] Production.INFO: ==31108== Releasing lock... [2025-02-05 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:22:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-05 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:23:04 [end_date_ymd] => 2025-02-05 09:23:04 [RateCDR] => 1 ) [2025-02-05 09:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:23:04' and `end` < '2025-02-05 09:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:23:20] Production.INFO: count ==1278 [2025-02-05 09:23:20] Production.ERROR: pbx CDR StartTime 2025-02-05 06:23:04 - End Time 2025-02-05 09:23:04 [2025-02-05 09:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406758', 'tblTempUsageDetail_20' ) start [2025-02-05 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406758', 'tblTempUsageDetail_20' ) end [2025-02-05 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406758', 'tblTempVendorCDR_20' ) start [2025-02-05 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406758', 'tblTempVendorCDR_20' ) end [2025-02-05 09:23:20] Production.INFO: ProcessCDR(1,14406758,1,1,2) [2025-02-05 09:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406758', 'tblTempUsageDetail_20' ) start [2025-02-05 09:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406758', 'tblTempUsageDetail_20' ) end [2025-02-05 09:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:23:25] Production.INFO: ==31183== Releasing lock... [2025-02-05 09:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:23:25] Production.INFO: 38 MB #Memory Used# [2025-02-05 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:24:06 [end_date_ymd] => 2025-02-05 09:24:06 [RateCDR] => 1 ) [2025-02-05 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:24:06' and `end` < '2025-02-05 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:24:19] Production.INFO: count ==1313 [2025-02-05 09:24:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:24:06 - End Time 2025-02-05 09:24:06 [2025-02-05 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406763', 'tblTempUsageDetail_20' ) start [2025-02-05 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406763', 'tblTempUsageDetail_20' ) end [2025-02-05 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406763', 'tblTempVendorCDR_20' ) start [2025-02-05 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406763', 'tblTempVendorCDR_20' ) end [2025-02-05 09:24:19] Production.INFO: ProcessCDR(1,14406763,1,1,2) [2025-02-05 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406763', 'tblTempUsageDetail_20' ) start [2025-02-05 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406763', 'tblTempUsageDetail_20' ) end [2025-02-05 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:24:24] Production.INFO: ==31262== Releasing lock... [2025-02-05 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:24:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-05 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:25:05 [end_date_ymd] => 2025-02-05 09:25:05 [RateCDR] => 1 ) [2025-02-05 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:25:05' and `end` < '2025-02-05 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:25:22] Production.INFO: count ==1328 [2025-02-05 09:25:22] Production.ERROR: pbx CDR StartTime 2025-02-05 06:25:05 - End Time 2025-02-05 09:25:05 [2025-02-05 09:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406768', 'tblTempUsageDetail_20' ) start [2025-02-05 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406768', 'tblTempUsageDetail_20' ) end [2025-02-05 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406768', 'tblTempVendorCDR_20' ) start [2025-02-05 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406768', 'tblTempVendorCDR_20' ) end [2025-02-05 09:25:22] Production.INFO: ProcessCDR(1,14406768,1,1,2) [2025-02-05 09:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406768', 'tblTempUsageDetail_20' ) start [2025-02-05 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406768', 'tblTempUsageDetail_20' ) end [2025-02-05 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:25:27] Production.INFO: ==31334== Releasing lock... [2025-02-05 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:25:27] Production.INFO: 38 MB #Memory Used# [2025-02-05 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:26:06 [end_date_ymd] => 2025-02-05 09:26:06 [RateCDR] => 1 ) [2025-02-05 09:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:26:06' and `end` < '2025-02-05 09:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:26:20] Production.INFO: count ==1342 [2025-02-05 09:26:20] Production.ERROR: pbx CDR StartTime 2025-02-05 06:26:06 - End Time 2025-02-05 09:26:06 [2025-02-05 09:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406773', 'tblTempUsageDetail_20' ) start [2025-02-05 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406773', 'tblTempUsageDetail_20' ) end [2025-02-05 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406773', 'tblTempVendorCDR_20' ) start [2025-02-05 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406773', 'tblTempVendorCDR_20' ) end [2025-02-05 09:26:20] Production.INFO: ProcessCDR(1,14406773,1,1,2) [2025-02-05 09:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406773', 'tblTempUsageDetail_20' ) start [2025-02-05 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406773', 'tblTempUsageDetail_20' ) end [2025-02-05 09:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:26:25] Production.INFO: ==31411== Releasing lock... [2025-02-05 09:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:26:25] Production.INFO: 38.5 MB #Memory Used# [2025-02-05 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:27:05 [end_date_ymd] => 2025-02-05 09:27:05 [RateCDR] => 1 ) [2025-02-05 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:27:05' and `end` < '2025-02-05 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:27:20] Production.INFO: count ==1358 [2025-02-05 09:27:20] Production.ERROR: pbx CDR StartTime 2025-02-05 06:27:05 - End Time 2025-02-05 09:27:05 [2025-02-05 09:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406778', 'tblTempUsageDetail_20' ) start [2025-02-05 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406778', 'tblTempUsageDetail_20' ) end [2025-02-05 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406778', 'tblTempVendorCDR_20' ) start [2025-02-05 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406778', 'tblTempVendorCDR_20' ) end [2025-02-05 09:27:20] Production.INFO: ProcessCDR(1,14406778,1,1,2) [2025-02-05 09:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406778', 'tblTempUsageDetail_20' ) start [2025-02-05 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406778', 'tblTempUsageDetail_20' ) end [2025-02-05 09:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:27:25] Production.INFO: ==31488== Releasing lock... [2025-02-05 09:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:27:25] Production.INFO: 38.25 MB #Memory Used# [2025-02-05 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:28:05 [end_date_ymd] => 2025-02-05 09:28:05 [RateCDR] => 1 ) [2025-02-05 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:28:05' and `end` < '2025-02-05 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:28:21] Production.INFO: count ==1366 [2025-02-05 09:28:21] Production.ERROR: pbx CDR StartTime 2025-02-05 06:28:05 - End Time 2025-02-05 09:28:05 [2025-02-05 09:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406783', 'tblTempUsageDetail_20' ) start [2025-02-05 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406783', 'tblTempUsageDetail_20' ) end [2025-02-05 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406783', 'tblTempVendorCDR_20' ) start [2025-02-05 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406783', 'tblTempVendorCDR_20' ) end [2025-02-05 09:28:21] Production.INFO: ProcessCDR(1,14406783,1,1,2) [2025-02-05 09:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406783', 'tblTempUsageDetail_20' ) start [2025-02-05 09:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406783', 'tblTempUsageDetail_20' ) end [2025-02-05 09:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:28:26] Production.INFO: ==31564== Releasing lock... [2025-02-05 09:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:28:26] Production.INFO: 38.5 MB #Memory Used# [2025-02-05 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:29:05 [end_date_ymd] => 2025-02-05 09:29:05 [RateCDR] => 1 ) [2025-02-05 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:29:05' and `end` < '2025-02-05 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:29:18] Production.INFO: count ==1372 [2025-02-05 09:29:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:29:05 - End Time 2025-02-05 09:29:05 [2025-02-05 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406788', 'tblTempUsageDetail_20' ) start [2025-02-05 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406788', 'tblTempUsageDetail_20' ) end [2025-02-05 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406788', 'tblTempVendorCDR_20' ) start [2025-02-05 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406788', 'tblTempVendorCDR_20' ) end [2025-02-05 09:29:19] Production.INFO: ProcessCDR(1,14406788,1,1,2) [2025-02-05 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406788', 'tblTempUsageDetail_20' ) start [2025-02-05 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406788', 'tblTempUsageDetail_20' ) end [2025-02-05 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:29:23] Production.INFO: ==31635== Releasing lock... [2025-02-05 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:29:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-05 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:30:06 [end_date_ymd] => 2025-02-05 09:30:06 [RateCDR] => 1 ) [2025-02-05 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:30:06' and `end` < '2025-02-05 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:30:20] Production.INFO: count ==1393 [2025-02-05 09:30:20] Production.ERROR: pbx CDR StartTime 2025-02-05 06:30:06 - End Time 2025-02-05 09:30:06 [2025-02-05 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406794', 'tblTempUsageDetail_20' ) start [2025-02-05 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406794', 'tblTempUsageDetail_20' ) end [2025-02-05 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406794', 'tblTempVendorCDR_20' ) start [2025-02-05 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406794', 'tblTempVendorCDR_20' ) end [2025-02-05 09:30:21] Production.INFO: ProcessCDR(1,14406794,1,1,2) [2025-02-05 09:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406794', 'tblTempUsageDetail_20' ) start [2025-02-05 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406794', 'tblTempUsageDetail_20' ) end [2025-02-05 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:30:25] Production.INFO: ==31718== Releasing lock... [2025-02-05 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:30:25] Production.INFO: 38.5 MB #Memory Used# [2025-02-05 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:31:05 [end_date_ymd] => 2025-02-05 09:31:05 [RateCDR] => 1 ) [2025-02-05 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:31:05' and `end` < '2025-02-05 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:31:18] Production.INFO: count ==1456 [2025-02-05 09:31:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:31:05 - End Time 2025-02-05 09:31:05 [2025-02-05 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406799', 'tblTempUsageDetail_20' ) start [2025-02-05 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406799', 'tblTempUsageDetail_20' ) end [2025-02-05 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406799', 'tblTempVendorCDR_20' ) start [2025-02-05 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406799', 'tblTempVendorCDR_20' ) end [2025-02-05 09:31:19] Production.INFO: ProcessCDR(1,14406799,1,1,2) [2025-02-05 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406799', 'tblTempUsageDetail_20' ) start [2025-02-05 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406799', 'tblTempUsageDetail_20' ) end [2025-02-05 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:31:23] Production.INFO: ==31836== Releasing lock... [2025-02-05 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:31:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-05 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:32:06 [end_date_ymd] => 2025-02-05 09:32:06 [RateCDR] => 1 ) [2025-02-05 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:32:06' and `end` < '2025-02-05 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:32:19] Production.INFO: count ==1460 [2025-02-05 09:32:20] Production.ERROR: pbx CDR StartTime 2025-02-05 06:32:06 - End Time 2025-02-05 09:32:06 [2025-02-05 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406804', 'tblTempUsageDetail_20' ) start [2025-02-05 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406804', 'tblTempUsageDetail_20' ) end [2025-02-05 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406804', 'tblTempVendorCDR_20' ) start [2025-02-05 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406804', 'tblTempVendorCDR_20' ) end [2025-02-05 09:32:20] Production.INFO: ProcessCDR(1,14406804,1,1,2) [2025-02-05 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406804', 'tblTempUsageDetail_20' ) start [2025-02-05 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406804', 'tblTempUsageDetail_20' ) end [2025-02-05 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:32:24] Production.INFO: ==31909== Releasing lock... [2025-02-05 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:32:24] Production.INFO: 39 MB #Memory Used# [2025-02-05 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:33:05 [end_date_ymd] => 2025-02-05 09:33:05 [RateCDR] => 1 ) [2025-02-05 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:33:05' and `end` < '2025-02-05 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:33:18] Production.INFO: count ==1460 [2025-02-05 09:33:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:33:05 - End Time 2025-02-05 09:33:05 [2025-02-05 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406809', 'tblTempUsageDetail_20' ) start [2025-02-05 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406809', 'tblTempUsageDetail_20' ) end [2025-02-05 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406809', 'tblTempVendorCDR_20' ) start [2025-02-05 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406809', 'tblTempVendorCDR_20' ) end [2025-02-05 09:33:19] Production.INFO: ProcessCDR(1,14406809,1,1,2) [2025-02-05 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406809', 'tblTempUsageDetail_20' ) start [2025-02-05 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406809', 'tblTempUsageDetail_20' ) end [2025-02-05 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:33:22] Production.INFO: ==31979== Releasing lock... [2025-02-05 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:33:22] Production.INFO: 39 MB #Memory Used# [2025-02-05 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:34:05 [end_date_ymd] => 2025-02-05 09:34:05 [RateCDR] => 1 ) [2025-02-05 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:34:05' and `end` < '2025-02-05 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:34:19] Production.INFO: count ==1478 [2025-02-05 09:34:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:34:05 - End Time 2025-02-05 09:34:05 [2025-02-05 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406814', 'tblTempUsageDetail_20' ) start [2025-02-05 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406814', 'tblTempUsageDetail_20' ) end [2025-02-05 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406814', 'tblTempVendorCDR_20' ) start [2025-02-05 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406814', 'tblTempVendorCDR_20' ) end [2025-02-05 09:34:19] Production.INFO: ProcessCDR(1,14406814,1,1,2) [2025-02-05 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406814', 'tblTempUsageDetail_20' ) start [2025-02-05 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406814', 'tblTempUsageDetail_20' ) end [2025-02-05 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:34:24] Production.INFO: ==32056== Releasing lock... [2025-02-05 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:34:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-05 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:35:05 [end_date_ymd] => 2025-02-05 09:35:05 [RateCDR] => 1 ) [2025-02-05 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:35:05' and `end` < '2025-02-05 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:35:25] Production.INFO: count ==1503 [2025-02-05 09:35:25] Production.ERROR: pbx CDR StartTime 2025-02-05 06:35:05 - End Time 2025-02-05 09:35:05 [2025-02-05 09:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406819', 'tblTempUsageDetail_20' ) start [2025-02-05 09:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406819', 'tblTempUsageDetail_20' ) end [2025-02-05 09:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406819', 'tblTempVendorCDR_20' ) start [2025-02-05 09:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406819', 'tblTempVendorCDR_20' ) end [2025-02-05 09:35:25] Production.INFO: ProcessCDR(1,14406819,1,1,2) [2025-02-05 09:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406819', 'tblTempUsageDetail_20' ) start [2025-02-05 09:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406819', 'tblTempUsageDetail_20' ) end [2025-02-05 09:35:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:35:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:35:30] Production.INFO: ==32130== Releasing lock... [2025-02-05 09:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:35:30] Production.INFO: 39.5 MB #Memory Used# [2025-02-05 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:36:05 [end_date_ymd] => 2025-02-05 09:36:05 [RateCDR] => 1 ) [2025-02-05 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:36:05' and `end` < '2025-02-05 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:36:22] Production.INFO: count ==1520 [2025-02-05 09:36:23] Production.ERROR: pbx CDR StartTime 2025-02-05 06:36:05 - End Time 2025-02-05 09:36:05 [2025-02-05 09:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406824', 'tblTempUsageDetail_20' ) start [2025-02-05 09:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406824', 'tblTempUsageDetail_20' ) end [2025-02-05 09:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406824', 'tblTempVendorCDR_20' ) start [2025-02-05 09:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406824', 'tblTempVendorCDR_20' ) end [2025-02-05 09:36:23] Production.INFO: ProcessCDR(1,14406824,1,1,2) [2025-02-05 09:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406824', 'tblTempUsageDetail_20' ) start [2025-02-05 09:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406824', 'tblTempUsageDetail_20' ) end [2025-02-05 09:36:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:36:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:36:28] Production.INFO: ==32209== Releasing lock... [2025-02-05 09:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:36:28] Production.INFO: 39.5 MB #Memory Used# [2025-02-05 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:37:06 [end_date_ymd] => 2025-02-05 09:37:06 [RateCDR] => 1 ) [2025-02-05 09:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:37:06' and `end` < '2025-02-05 09:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:37:21] Production.INFO: count ==1545 [2025-02-05 09:37:21] Production.ERROR: pbx CDR StartTime 2025-02-05 06:37:06 - End Time 2025-02-05 09:37:06 [2025-02-05 09:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406829', 'tblTempUsageDetail_20' ) start [2025-02-05 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406829', 'tblTempUsageDetail_20' ) end [2025-02-05 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406829', 'tblTempVendorCDR_20' ) start [2025-02-05 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406829', 'tblTempVendorCDR_20' ) end [2025-02-05 09:37:21] Production.INFO: ProcessCDR(1,14406829,1,1,2) [2025-02-05 09:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406829', 'tblTempUsageDetail_20' ) start [2025-02-05 09:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406829', 'tblTempUsageDetail_20' ) end [2025-02-05 09:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:37:26] Production.INFO: ==32295== Releasing lock... [2025-02-05 09:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:37:26] Production.INFO: 39.75 MB #Memory Used# [2025-02-05 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:38:05 [end_date_ymd] => 2025-02-05 09:38:05 [RateCDR] => 1 ) [2025-02-05 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:38:05' and `end` < '2025-02-05 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:38:20] Production.INFO: count ==1550 [2025-02-05 09:38:21] Production.ERROR: pbx CDR StartTime 2025-02-05 06:38:05 - End Time 2025-02-05 09:38:05 [2025-02-05 09:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406834', 'tblTempUsageDetail_20' ) start [2025-02-05 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406834', 'tblTempUsageDetail_20' ) end [2025-02-05 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406834', 'tblTempVendorCDR_20' ) start [2025-02-05 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406834', 'tblTempVendorCDR_20' ) end [2025-02-05 09:38:21] Production.INFO: ProcessCDR(1,14406834,1,1,2) [2025-02-05 09:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406834', 'tblTempUsageDetail_20' ) start [2025-02-05 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406834', 'tblTempUsageDetail_20' ) end [2025-02-05 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:38:25] Production.INFO: ==32369== Releasing lock... [2025-02-05 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:38:25] Production.INFO: 39.75 MB #Memory Used# [2025-02-05 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:39:05 [end_date_ymd] => 2025-02-05 09:39:05 [RateCDR] => 1 ) [2025-02-05 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:39:05' and `end` < '2025-02-05 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:39:20] Production.INFO: count ==1558 [2025-02-05 09:39:21] Production.ERROR: pbx CDR StartTime 2025-02-05 06:39:05 - End Time 2025-02-05 09:39:05 [2025-02-05 09:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406839', 'tblTempUsageDetail_20' ) start [2025-02-05 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406839', 'tblTempUsageDetail_20' ) end [2025-02-05 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406839', 'tblTempVendorCDR_20' ) start [2025-02-05 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406839', 'tblTempVendorCDR_20' ) end [2025-02-05 09:39:21] Production.INFO: ProcessCDR(1,14406839,1,1,2) [2025-02-05 09:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406839', 'tblTempUsageDetail_20' ) start [2025-02-05 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406839', 'tblTempUsageDetail_20' ) end [2025-02-05 09:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:39:25] Production.INFO: ==32445== Releasing lock... [2025-02-05 09:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:39:25] Production.INFO: 39.75 MB #Memory Used# [2025-02-05 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:40:05 [end_date_ymd] => 2025-02-05 09:40:05 [RateCDR] => 1 ) [2025-02-05 09:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:40:05' and `end` < '2025-02-05 09:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:40:19] Production.INFO: count ==1585 [2025-02-05 09:40:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:40:05 - End Time 2025-02-05 09:40:05 [2025-02-05 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406845', 'tblTempUsageDetail_20' ) start [2025-02-05 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406845', 'tblTempUsageDetail_20' ) end [2025-02-05 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406845', 'tblTempVendorCDR_20' ) start [2025-02-05 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406845', 'tblTempVendorCDR_20' ) end [2025-02-05 09:40:20] Production.INFO: ProcessCDR(1,14406845,1,1,2) [2025-02-05 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406845', 'tblTempUsageDetail_20' ) start [2025-02-05 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406845', 'tblTempUsageDetail_20' ) end [2025-02-05 09:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:40:23] Production.INFO: ==32528== Releasing lock... [2025-02-05 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:40:23] Production.INFO: 40 MB #Memory Used# [2025-02-05 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:41:05 [end_date_ymd] => 2025-02-05 09:41:05 [RateCDR] => 1 ) [2025-02-05 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:41:05' and `end` < '2025-02-05 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:41:22] Production.INFO: count ==1685 [2025-02-05 09:41:22] Production.ERROR: pbx CDR StartTime 2025-02-05 06:41:05 - End Time 2025-02-05 09:41:05 [2025-02-05 09:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406850', 'tblTempUsageDetail_20' ) start [2025-02-05 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406850', 'tblTempUsageDetail_20' ) end [2025-02-05 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406850', 'tblTempVendorCDR_20' ) start [2025-02-05 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406850', 'tblTempVendorCDR_20' ) end [2025-02-05 09:41:22] Production.INFO: ProcessCDR(1,14406850,1,1,2) [2025-02-05 09:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406850', 'tblTempUsageDetail_20' ) start [2025-02-05 09:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406850', 'tblTempUsageDetail_20' ) end [2025-02-05 09:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:41:27] Production.INFO: ==32601== Releasing lock... [2025-02-05 09:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:41:27] Production.INFO: 40.75 MB #Memory Used# [2025-02-05 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:42:05 [end_date_ymd] => 2025-02-05 09:42:05 [RateCDR] => 1 ) [2025-02-05 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:42:05' and `end` < '2025-02-05 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:42:23] Production.INFO: count ==1705 [2025-02-05 09:42:23] Production.ERROR: pbx CDR StartTime 2025-02-05 06:42:05 - End Time 2025-02-05 09:42:05 [2025-02-05 09:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406855', 'tblTempUsageDetail_20' ) start [2025-02-05 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406855', 'tblTempUsageDetail_20' ) end [2025-02-05 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406855', 'tblTempVendorCDR_20' ) start [2025-02-05 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406855', 'tblTempVendorCDR_20' ) end [2025-02-05 09:42:23] Production.INFO: ProcessCDR(1,14406855,1,1,2) [2025-02-05 09:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406855', 'tblTempUsageDetail_20' ) start [2025-02-05 09:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406855', 'tblTempUsageDetail_20' ) end [2025-02-05 09:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:42:28] Production.INFO: ==32670== Releasing lock... [2025-02-05 09:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:42:28] Production.INFO: 40.75 MB #Memory Used# [2025-02-05 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:43:06 [end_date_ymd] => 2025-02-05 09:43:06 [RateCDR] => 1 ) [2025-02-05 09:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:43:06' and `end` < '2025-02-05 09:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:43:26] Production.INFO: count ==1748 [2025-02-05 09:43:26] Production.ERROR: pbx CDR StartTime 2025-02-05 06:43:06 - End Time 2025-02-05 09:43:06 [2025-02-05 09:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406860', 'tblTempUsageDetail_20' ) start [2025-02-05 09:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406860', 'tblTempUsageDetail_20' ) end [2025-02-05 09:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406860', 'tblTempVendorCDR_20' ) start [2025-02-05 09:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406860', 'tblTempVendorCDR_20' ) end [2025-02-05 09:43:26] Production.INFO: ProcessCDR(1,14406860,1,1,2) [2025-02-05 09:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406860', 'tblTempUsageDetail_20' ) start [2025-02-05 09:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406860', 'tblTempUsageDetail_20' ) end [2025-02-05 09:43:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:43:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:43:32] Production.INFO: ==32743== Releasing lock... [2025-02-05 09:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:43:32] Production.INFO: 41.25 MB #Memory Used# [2025-02-05 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:44:06 [end_date_ymd] => 2025-02-05 09:44:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 06:44:06' and `end` < '2025-02-05 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-02-05 09:44:22] Production.INFO: count ==1761 [2025-02-05 09:44:23] Production.ERROR: pbx CDR StartTime 2025-02-05 06:44:06 - End Time 2025-02-05 09:44:06 [2025-02-05 09:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406865', 'tblTempUsageDetail_20' ) start [2025-02-05 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406865', 'tblTempUsageDetail_20' ) end [2025-02-05 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406865', 'tblTempVendorCDR_20' ) start [2025-02-05 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406865', 'tblTempVendorCDR_20' ) end [2025-02-05 09:44:23] Production.INFO: ProcessCDR(1,14406865,1,1,2) [2025-02-05 09:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406865', 'tblTempUsageDetail_20' ) start [2025-02-05 09:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406865', 'tblTempUsageDetail_20' ) end [2025-02-05 09:44:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:44:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:44:28] Production.INFO: ==366== Releasing lock... [2025-02-05 09:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:44:28] Production.INFO: 41.25 MB #Memory Used# [2025-02-05 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:45:05 [end_date_ymd] => 2025-02-05 09:45:05 [RateCDR] => 1 ) [2025-02-05 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:45:05' and `end` < '2025-02-05 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:45:23] Production.INFO: count ==1763 [2025-02-05 09:45:24] Production.ERROR: pbx CDR StartTime 2025-02-05 06:45:05 - End Time 2025-02-05 09:45:05 [2025-02-05 09:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406870', 'tblTempUsageDetail_20' ) start [2025-02-05 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406870', 'tblTempUsageDetail_20' ) end [2025-02-05 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406870', 'tblTempVendorCDR_20' ) start [2025-02-05 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406870', 'tblTempVendorCDR_20' ) end [2025-02-05 09:45:24] Production.INFO: ProcessCDR(1,14406870,1,1,2) [2025-02-05 09:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406870', 'tblTempUsageDetail_20' ) start [2025-02-05 09:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406870', 'tblTempUsageDetail_20' ) end [2025-02-05 09:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:45:27] Production.INFO: ==443== Releasing lock... [2025-02-05 09:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:45:27] Production.INFO: 41.25 MB #Memory Used# [2025-02-05 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:46:05 [end_date_ymd] => 2025-02-05 09:46:05 [RateCDR] => 1 ) [2025-02-05 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:46:05' and `end` < '2025-02-05 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:46:18] Production.INFO: count ==1768 [2025-02-05 09:46:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:46:05 - End Time 2025-02-05 09:46:05 [2025-02-05 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406875', 'tblTempUsageDetail_20' ) start [2025-02-05 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406875', 'tblTempUsageDetail_20' ) end [2025-02-05 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406875', 'tblTempVendorCDR_20' ) start [2025-02-05 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406875', 'tblTempVendorCDR_20' ) end [2025-02-05 09:46:19] Production.INFO: ProcessCDR(1,14406875,1,1,2) [2025-02-05 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406875', 'tblTempUsageDetail_20' ) start [2025-02-05 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406875', 'tblTempUsageDetail_20' ) end [2025-02-05 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:46:24] Production.INFO: ==519== Releasing lock... [2025-02-05 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:46:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-05 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:47:05 [end_date_ymd] => 2025-02-05 09:47:05 [RateCDR] => 1 ) [2025-02-05 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:47:05' and `end` < '2025-02-05 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:47:18] Production.INFO: count ==1781 [2025-02-05 09:47:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:47:05 - End Time 2025-02-05 09:47:05 [2025-02-05 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406880', 'tblTempUsageDetail_20' ) start [2025-02-05 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406880', 'tblTempUsageDetail_20' ) end [2025-02-05 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406880', 'tblTempVendorCDR_20' ) start [2025-02-05 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406880', 'tblTempVendorCDR_20' ) end [2025-02-05 09:47:19] Production.INFO: ProcessCDR(1,14406880,1,1,2) [2025-02-05 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406880', 'tblTempUsageDetail_20' ) start [2025-02-05 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406880', 'tblTempUsageDetail_20' ) end [2025-02-05 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:47:24] Production.INFO: ==641== Releasing lock... [2025-02-05 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:47:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-05 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:48:06 [end_date_ymd] => 2025-02-05 09:48:06 [RateCDR] => 1 ) [2025-02-05 09:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:48:06' and `end` < '2025-02-05 09:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:48:19] Production.INFO: count ==1802 [2025-02-05 09:48:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:48:06 - End Time 2025-02-05 09:48:06 [2025-02-05 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406885', 'tblTempUsageDetail_20' ) start [2025-02-05 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406885', 'tblTempUsageDetail_20' ) end [2025-02-05 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406885', 'tblTempVendorCDR_20' ) start [2025-02-05 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406885', 'tblTempVendorCDR_20' ) end [2025-02-05 09:48:20] Production.INFO: ProcessCDR(1,14406885,1,1,2) [2025-02-05 09:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406885', 'tblTempUsageDetail_20' ) start [2025-02-05 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406885', 'tblTempUsageDetail_20' ) end [2025-02-05 09:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:48:25] Production.INFO: ==735== Releasing lock... [2025-02-05 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:48:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-05 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:49:05 [end_date_ymd] => 2025-02-05 09:49:05 [RateCDR] => 1 ) [2025-02-05 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:49:05' and `end` < '2025-02-05 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:49:18] Production.INFO: count ==1804 [2025-02-05 09:49:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:49:05 - End Time 2025-02-05 09:49:05 [2025-02-05 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406890', 'tblTempUsageDetail_20' ) start [2025-02-05 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406890', 'tblTempUsageDetail_20' ) end [2025-02-05 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406890', 'tblTempVendorCDR_20' ) start [2025-02-05 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406890', 'tblTempVendorCDR_20' ) end [2025-02-05 09:49:19] Production.INFO: ProcessCDR(1,14406890,1,1,2) [2025-02-05 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406890', 'tblTempUsageDetail_20' ) start [2025-02-05 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406890', 'tblTempUsageDetail_20' ) end [2025-02-05 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:49:24] Production.INFO: ==816== Releasing lock... [2025-02-05 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:49:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-05 09:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:50:07 [end_date_ymd] => 2025-02-05 09:50:07 [RateCDR] => 1 ) [2025-02-05 09:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:50:07' and `end` < '2025-02-05 09:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:50:21] Production.INFO: count ==1829 [2025-02-05 09:50:21] Production.ERROR: pbx CDR StartTime 2025-02-05 06:50:07 - End Time 2025-02-05 09:50:07 [2025-02-05 09:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406896', 'tblTempUsageDetail_20' ) start [2025-02-05 09:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406896', 'tblTempUsageDetail_20' ) end [2025-02-05 09:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406896', 'tblTempVendorCDR_20' ) start [2025-02-05 09:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406896', 'tblTempVendorCDR_20' ) end [2025-02-05 09:50:22] Production.INFO: ProcessCDR(1,14406896,1,1,2) [2025-02-05 09:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406896', 'tblTempUsageDetail_20' ) start [2025-02-05 09:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406896', 'tblTempUsageDetail_20' ) end [2025-02-05 09:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:50:27] Production.INFO: ==897== Releasing lock... [2025-02-05 09:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:50:27] Production.INFO: 41.75 MB #Memory Used# [2025-02-05 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:51:06 [end_date_ymd] => 2025-02-05 09:51:06 [RateCDR] => 1 ) [2025-02-05 09:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:51:06' and `end` < '2025-02-05 09:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:51:20] Production.INFO: count ==1921 [2025-02-05 09:51:21] Production.ERROR: pbx CDR StartTime 2025-02-05 06:51:06 - End Time 2025-02-05 09:51:06 [2025-02-05 09:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406901', 'tblTempUsageDetail_20' ) start [2025-02-05 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406901', 'tblTempUsageDetail_20' ) end [2025-02-05 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406901', 'tblTempVendorCDR_20' ) start [2025-02-05 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406901', 'tblTempVendorCDR_20' ) end [2025-02-05 09:51:21] Production.INFO: ProcessCDR(1,14406901,1,1,2) [2025-02-05 09:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406901', 'tblTempUsageDetail_20' ) start [2025-02-05 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406901', 'tblTempUsageDetail_20' ) end [2025-02-05 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:51:25] Production.INFO: ==974== Releasing lock... [2025-02-05 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:51:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-05 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:52:06 [end_date_ymd] => 2025-02-05 09:52:06 [RateCDR] => 1 ) [2025-02-05 09:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:52:06' and `end` < '2025-02-05 09:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:52:20] Production.INFO: count ==1930 [2025-02-05 09:52:21] Production.ERROR: pbx CDR StartTime 2025-02-05 06:52:06 - End Time 2025-02-05 09:52:06 [2025-02-05 09:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406906', 'tblTempUsageDetail_20' ) start [2025-02-05 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406906', 'tblTempUsageDetail_20' ) end [2025-02-05 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406906', 'tblTempVendorCDR_20' ) start [2025-02-05 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406906', 'tblTempVendorCDR_20' ) end [2025-02-05 09:52:21] Production.INFO: ProcessCDR(1,14406906,1,1,2) [2025-02-05 09:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406906', 'tblTempUsageDetail_20' ) start [2025-02-05 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406906', 'tblTempUsageDetail_20' ) end [2025-02-05 09:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:52:26] Production.INFO: ==1045== Releasing lock... [2025-02-05 09:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:52:26] Production.INFO: 42.5 MB #Memory Used# [2025-02-05 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:53:06 [end_date_ymd] => 2025-02-05 09:53:06 [RateCDR] => 1 ) [2025-02-05 09:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:53:06' and `end` < '2025-02-05 09:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:53:19] Production.INFO: count ==1941 [2025-02-05 09:53:20] Production.ERROR: pbx CDR StartTime 2025-02-05 06:53:06 - End Time 2025-02-05 09:53:06 [2025-02-05 09:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406911', 'tblTempUsageDetail_20' ) start [2025-02-05 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406911', 'tblTempUsageDetail_20' ) end [2025-02-05 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406911', 'tblTempVendorCDR_20' ) start [2025-02-05 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406911', 'tblTempVendorCDR_20' ) end [2025-02-05 09:53:20] Production.INFO: ProcessCDR(1,14406911,1,1,2) [2025-02-05 09:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406911', 'tblTempUsageDetail_20' ) start [2025-02-05 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406911', 'tblTempUsageDetail_20' ) end [2025-02-05 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:53:25] Production.INFO: ==1140== Releasing lock... [2025-02-05 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:53:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-05 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:54:05 [end_date_ymd] => 2025-02-05 09:54:05 [RateCDR] => 1 ) [2025-02-05 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:54:05' and `end` < '2025-02-05 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:54:18] Production.INFO: count ==1968 [2025-02-05 09:54:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:54:05 - End Time 2025-02-05 09:54:05 [2025-02-05 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406916', 'tblTempUsageDetail_20' ) start [2025-02-05 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406916', 'tblTempUsageDetail_20' ) end [2025-02-05 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406916', 'tblTempVendorCDR_20' ) start [2025-02-05 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406916', 'tblTempVendorCDR_20' ) end [2025-02-05 09:54:19] Production.INFO: ProcessCDR(1,14406916,1,1,2) [2025-02-05 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406916', 'tblTempUsageDetail_20' ) start [2025-02-05 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406916', 'tblTempUsageDetail_20' ) end [2025-02-05 09:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:54:23] Production.INFO: ==1239== Releasing lock... [2025-02-05 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:54:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-05 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:55:06 [end_date_ymd] => 2025-02-05 09:55:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 06:55:06' and `end` < '2025-02-05 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-02-05 09:55:21] Production.INFO: count ==1977 [2025-02-05 09:55:22] Production.ERROR: pbx CDR StartTime 2025-02-05 06:55:06 - End Time 2025-02-05 09:55:06 [2025-02-05 09:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406921', 'tblTempUsageDetail_20' ) start [2025-02-05 09:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406921', 'tblTempUsageDetail_20' ) end [2025-02-05 09:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406921', 'tblTempVendorCDR_20' ) start [2025-02-05 09:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406921', 'tblTempVendorCDR_20' ) end [2025-02-05 09:55:22] Production.INFO: ProcessCDR(1,14406921,1,1,2) [2025-02-05 09:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406921', 'tblTempUsageDetail_20' ) start [2025-02-05 09:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406921', 'tblTempUsageDetail_20' ) end [2025-02-05 09:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:55:27] Production.INFO: ==1322== Releasing lock... [2025-02-05 09:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:55:27] Production.INFO: 43.25 MB #Memory Used# [2025-02-05 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:56:06 [end_date_ymd] => 2025-02-05 09:56:06 [RateCDR] => 1 ) [2025-02-05 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:56:06' and `end` < '2025-02-05 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:56:20] Production.INFO: count ==1993 [2025-02-05 09:56:21] Production.ERROR: pbx CDR StartTime 2025-02-05 06:56:06 - End Time 2025-02-05 09:56:06 [2025-02-05 09:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406926', 'tblTempUsageDetail_20' ) start [2025-02-05 09:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406926', 'tblTempUsageDetail_20' ) end [2025-02-05 09:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406926', 'tblTempVendorCDR_20' ) start [2025-02-05 09:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406926', 'tblTempVendorCDR_20' ) end [2025-02-05 09:56:21] Production.INFO: ProcessCDR(1,14406926,1,1,2) [2025-02-05 09:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406926', 'tblTempUsageDetail_20' ) start [2025-02-05 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406926', 'tblTempUsageDetail_20' ) end [2025-02-05 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:56:24] Production.INFO: ==1393== Releasing lock... [2025-02-05 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:56:24] Production.INFO: 43 MB #Memory Used# [2025-02-05 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:57:06 [end_date_ymd] => 2025-02-05 09:57:06 [RateCDR] => 1 ) [2025-02-05 09:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:57:06' and `end` < '2025-02-05 09:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:57:19] Production.INFO: count ==1998 [2025-02-05 09:57:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:57:06 - End Time 2025-02-05 09:57:06 [2025-02-05 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406931', 'tblTempUsageDetail_20' ) start [2025-02-05 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406931', 'tblTempUsageDetail_20' ) end [2025-02-05 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406931', 'tblTempVendorCDR_20' ) start [2025-02-05 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406931', 'tblTempVendorCDR_20' ) end [2025-02-05 09:57:19] Production.INFO: ProcessCDR(1,14406931,1,1,2) [2025-02-05 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406931', 'tblTempUsageDetail_20' ) start [2025-02-05 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406931', 'tblTempUsageDetail_20' ) end [2025-02-05 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:57:24] Production.INFO: ==1469== Releasing lock... [2025-02-05 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:57:24] Production.INFO: 43 MB #Memory Used# [2025-02-05 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:58:05 [end_date_ymd] => 2025-02-05 09:58:05 [RateCDR] => 1 ) [2025-02-05 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:58:05' and `end` < '2025-02-05 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:58:20] Production.INFO: count ==2010 [2025-02-05 09:58:21] Production.ERROR: pbx CDR StartTime 2025-02-05 06:58:05 - End Time 2025-02-05 09:58:05 [2025-02-05 09:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406936', 'tblTempUsageDetail_20' ) start [2025-02-05 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406936', 'tblTempUsageDetail_20' ) end [2025-02-05 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406936', 'tblTempVendorCDR_20' ) start [2025-02-05 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406936', 'tblTempVendorCDR_20' ) end [2025-02-05 09:58:21] Production.INFO: ProcessCDR(1,14406936,1,1,2) [2025-02-05 09:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406936', 'tblTempUsageDetail_20' ) start [2025-02-05 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406936', 'tblTempUsageDetail_20' ) end [2025-02-05 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:58:25] Production.INFO: ==1581== Releasing lock... [2025-02-05 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:58:25] Production.INFO: 43.25 MB #Memory Used# [2025-02-05 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 06:59:05 [end_date_ymd] => 2025-02-05 09:59:05 [RateCDR] => 1 ) [2025-02-05 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 06:59:05' and `end` < '2025-02-05 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 09:59:18] Production.INFO: count ==2014 [2025-02-05 09:59:19] Production.ERROR: pbx CDR StartTime 2025-02-05 06:59:05 - End Time 2025-02-05 09:59:05 [2025-02-05 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406941', 'tblTempUsageDetail_20' ) start [2025-02-05 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406941', 'tblTempUsageDetail_20' ) end [2025-02-05 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406941', 'tblTempVendorCDR_20' ) start [2025-02-05 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406941', 'tblTempVendorCDR_20' ) end [2025-02-05 09:59:19] Production.INFO: ProcessCDR(1,14406941,1,1,2) [2025-02-05 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406941', 'tblTempUsageDetail_20' ) start [2025-02-05 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406941', 'tblTempUsageDetail_20' ) end [2025-02-05 09:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 09:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 09:59:22] Production.INFO: ==1653== Releasing lock... [2025-02-05 09:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 09:59:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-05 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:00:06 [end_date_ymd] => 2025-02-05 10:00:06 [RateCDR] => 1 ) [2025-02-05 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:00:06' and `end` < '2025-02-05 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:00:19] Production.INFO: count ==2021 [2025-02-05 10:00:20] Production.ERROR: pbx CDR StartTime 2025-02-05 07:00:06 - End Time 2025-02-05 10:00:06 [2025-02-05 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406946', 'tblTempUsageDetail_20' ) start [2025-02-05 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406946', 'tblTempUsageDetail_20' ) end [2025-02-05 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406946', 'tblTempVendorCDR_20' ) start [2025-02-05 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406946', 'tblTempVendorCDR_20' ) end [2025-02-05 10:00:20] Production.INFO: ProcessCDR(1,14406946,1,1,2) [2025-02-05 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406946', 'tblTempUsageDetail_20' ) start [2025-02-05 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406946', 'tblTempUsageDetail_20' ) end [2025-02-05 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:00:24] Production.INFO: ==1731== Releasing lock... [2025-02-05 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:00:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-05 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:01:06 [end_date_ymd] => 2025-02-05 10:01:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 07:01:06' and `end` < '2025-02-05 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-02-05 10:01:19] Production.INFO: count ==2110 [2025-02-05 10:01:20] Production.ERROR: pbx CDR StartTime 2025-02-05 07:01:06 - End Time 2025-02-05 10:01:06 [2025-02-05 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406952', 'tblTempUsageDetail_20' ) start [2025-02-05 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406952', 'tblTempUsageDetail_20' ) end [2025-02-05 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406952', 'tblTempVendorCDR_20' ) start [2025-02-05 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406952', 'tblTempVendorCDR_20' ) end [2025-02-05 10:01:20] Production.INFO: ProcessCDR(1,14406952,1,1,2) [2025-02-05 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406952', 'tblTempUsageDetail_20' ) start [2025-02-05 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406952', 'tblTempUsageDetail_20' ) end [2025-02-05 10:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:01:25] Production.INFO: ==1827== Releasing lock... [2025-02-05 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:01:25] Production.INFO: 44 MB #Memory Used# [2025-02-05 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:02:06 [end_date_ymd] => 2025-02-05 10:02:06 [RateCDR] => 1 ) [2025-02-05 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:02:06' and `end` < '2025-02-05 10:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:02:19] Production.INFO: count ==2126 [2025-02-05 10:02:20] Production.ERROR: pbx CDR StartTime 2025-02-05 07:02:06 - End Time 2025-02-05 10:02:06 [2025-02-05 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406957', 'tblTempUsageDetail_20' ) start [2025-02-05 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406957', 'tblTempUsageDetail_20' ) end [2025-02-05 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406957', 'tblTempVendorCDR_20' ) start [2025-02-05 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406957', 'tblTempVendorCDR_20' ) end [2025-02-05 10:02:20] Production.INFO: ProcessCDR(1,14406957,1,1,2) [2025-02-05 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406957', 'tblTempUsageDetail_20' ) start [2025-02-05 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406957', 'tblTempUsageDetail_20' ) end [2025-02-05 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:02:25] Production.INFO: ==1941== Releasing lock... [2025-02-05 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:02:25] Production.INFO: 44.25 MB #Memory Used# [2025-02-05 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:03:05 [end_date_ymd] => 2025-02-05 10:03:05 [RateCDR] => 1 ) [2025-02-05 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:03:05' and `end` < '2025-02-05 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:03:21] Production.INFO: count ==2131 [2025-02-05 10:03:21] Production.ERROR: pbx CDR StartTime 2025-02-05 07:03:05 - End Time 2025-02-05 10:03:05 [2025-02-05 10:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406962', 'tblTempUsageDetail_20' ) start [2025-02-05 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406962', 'tblTempUsageDetail_20' ) end [2025-02-05 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406962', 'tblTempVendorCDR_20' ) start [2025-02-05 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406962', 'tblTempVendorCDR_20' ) end [2025-02-05 10:03:21] Production.INFO: ProcessCDR(1,14406962,1,1,2) [2025-02-05 10:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406962', 'tblTempUsageDetail_20' ) start [2025-02-05 10:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406962', 'tblTempUsageDetail_20' ) end [2025-02-05 10:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:03:27] Production.INFO: ==2016== Releasing lock... [2025-02-05 10:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:03:27] Production.INFO: 44 MB #Memory Used# [2025-02-05 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:04:05 [end_date_ymd] => 2025-02-05 10:04:05 [RateCDR] => 1 ) [2025-02-05 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:04:05' and `end` < '2025-02-05 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:04:20] Production.INFO: count ==2143 [2025-02-05 10:04:21] Production.ERROR: pbx CDR StartTime 2025-02-05 07:04:05 - End Time 2025-02-05 10:04:05 [2025-02-05 10:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406967', 'tblTempUsageDetail_20' ) start [2025-02-05 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406967', 'tblTempUsageDetail_20' ) end [2025-02-05 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406967', 'tblTempVendorCDR_20' ) start [2025-02-05 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406967', 'tblTempVendorCDR_20' ) end [2025-02-05 10:04:21] Production.INFO: ProcessCDR(1,14406967,1,1,2) [2025-02-05 10:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406967', 'tblTempUsageDetail_20' ) start [2025-02-05 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406967', 'tblTempUsageDetail_20' ) end [2025-02-05 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:04:26] Production.INFO: ==2089== Releasing lock... [2025-02-05 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:04:26] Production.INFO: 44.25 MB #Memory Used# [2025-02-05 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:05:05 [end_date_ymd] => 2025-02-05 10:05:05 [RateCDR] => 1 ) [2025-02-05 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:05:05' and `end` < '2025-02-05 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:05:20] Production.INFO: count ==2152 [2025-02-05 10:05:20] Production.ERROR: pbx CDR StartTime 2025-02-05 07:05:05 - End Time 2025-02-05 10:05:05 [2025-02-05 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406972', 'tblTempUsageDetail_20' ) start [2025-02-05 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406972', 'tblTempUsageDetail_20' ) end [2025-02-05 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406972', 'tblTempVendorCDR_20' ) start [2025-02-05 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406972', 'tblTempVendorCDR_20' ) end [2025-02-05 10:05:21] Production.INFO: ProcessCDR(1,14406972,1,1,2) [2025-02-05 10:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406972', 'tblTempUsageDetail_20' ) start [2025-02-05 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406972', 'tblTempUsageDetail_20' ) end [2025-02-05 10:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:05:26] Production.INFO: ==2160== Releasing lock... [2025-02-05 10:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:05:26] Production.INFO: 44.25 MB #Memory Used# [2025-02-05 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:06:05 [end_date_ymd] => 2025-02-05 10:06:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 07:06:05' and `end` < '2025-02-05 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-02-05 10:06:20] Production.INFO: count ==2169 [2025-02-05 10:06:21] Production.ERROR: pbx CDR StartTime 2025-02-05 07:06:05 - End Time 2025-02-05 10:06:05 [2025-02-05 10:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406977', 'tblTempUsageDetail_20' ) start [2025-02-05 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406977', 'tblTempUsageDetail_20' ) end [2025-02-05 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406977', 'tblTempVendorCDR_20' ) start [2025-02-05 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406977', 'tblTempVendorCDR_20' ) end [2025-02-05 10:06:21] Production.INFO: ProcessCDR(1,14406977,1,1,2) [2025-02-05 10:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406977', 'tblTempUsageDetail_20' ) start [2025-02-05 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406977', 'tblTempUsageDetail_20' ) end [2025-02-05 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:06:26] Production.INFO: ==2235== Releasing lock... [2025-02-05 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:06:26] Production.INFO: 44.5 MB #Memory Used# [2025-02-05 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:07:05 [end_date_ymd] => 2025-02-05 10:07:05 [RateCDR] => 1 ) [2025-02-05 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:07:05' and `end` < '2025-02-05 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:07:19] Production.INFO: count ==2184 [2025-02-05 10:07:20] Production.ERROR: pbx CDR StartTime 2025-02-05 07:07:05 - End Time 2025-02-05 10:07:05 [2025-02-05 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406982', 'tblTempUsageDetail_20' ) start [2025-02-05 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406982', 'tblTempUsageDetail_20' ) end [2025-02-05 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406982', 'tblTempVendorCDR_20' ) start [2025-02-05 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406982', 'tblTempVendorCDR_20' ) end [2025-02-05 10:07:20] Production.INFO: ProcessCDR(1,14406982,1,1,2) [2025-02-05 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406982', 'tblTempUsageDetail_20' ) start [2025-02-05 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406982', 'tblTempUsageDetail_20' ) end [2025-02-05 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:07:25] Production.INFO: ==2306== Releasing lock... [2025-02-05 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:07:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-05 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:08:06 [end_date_ymd] => 2025-02-05 10:08:06 [RateCDR] => 1 ) [2025-02-05 10:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:08:06' and `end` < '2025-02-05 10:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:08:22] Production.INFO: count ==2206 [2025-02-05 10:08:23] Production.ERROR: pbx CDR StartTime 2025-02-05 07:08:06 - End Time 2025-02-05 10:08:06 [2025-02-05 10:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406987', 'tblTempUsageDetail_20' ) start [2025-02-05 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406987', 'tblTempUsageDetail_20' ) end [2025-02-05 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406987', 'tblTempVendorCDR_20' ) start [2025-02-05 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406987', 'tblTempVendorCDR_20' ) end [2025-02-05 10:08:23] Production.INFO: ProcessCDR(1,14406987,1,1,2) [2025-02-05 10:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406987', 'tblTempUsageDetail_20' ) start [2025-02-05 10:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406987', 'tblTempUsageDetail_20' ) end [2025-02-05 10:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:08:28] Production.INFO: ==2379== Releasing lock... [2025-02-05 10:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:08:28] Production.INFO: 44.5 MB #Memory Used# [2025-02-05 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:09:05 [end_date_ymd] => 2025-02-05 10:09:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 07:09:05' and `end` < '2025-02-05 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-02-05 10:09:22] Production.INFO: count ==2215 [2025-02-05 10:09:23] Production.ERROR: pbx CDR StartTime 2025-02-05 07:09:05 - End Time 2025-02-05 10:09:05 [2025-02-05 10:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406992', 'tblTempUsageDetail_20' ) start [2025-02-05 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406992', 'tblTempUsageDetail_20' ) end [2025-02-05 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406992', 'tblTempVendorCDR_20' ) start [2025-02-05 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406992', 'tblTempVendorCDR_20' ) end [2025-02-05 10:09:23] Production.INFO: ProcessCDR(1,14406992,1,1,2) [2025-02-05 10:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406992', 'tblTempUsageDetail_20' ) start [2025-02-05 10:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406992', 'tblTempUsageDetail_20' ) end [2025-02-05 10:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:09:28] Production.INFO: ==2457== Releasing lock... [2025-02-05 10:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:09:28] Production.INFO: 44.75 MB #Memory Used# [2025-02-05 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:10:06 [end_date_ymd] => 2025-02-05 10:10:06 [RateCDR] => 1 ) [2025-02-05 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:10:06' and `end` < '2025-02-05 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:10:25] Production.INFO: count ==2227 [2025-02-05 10:10:26] Production.ERROR: pbx CDR StartTime 2025-02-05 07:10:06 - End Time 2025-02-05 10:10:06 [2025-02-05 10:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406997', 'tblTempUsageDetail_20' ) start [2025-02-05 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14406997', 'tblTempUsageDetail_20' ) end [2025-02-05 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406997', 'tblTempVendorCDR_20' ) start [2025-02-05 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14406997', 'tblTempVendorCDR_20' ) end [2025-02-05 10:10:26] Production.INFO: ProcessCDR(1,14406997,1,1,2) [2025-02-05 10:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14406997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14406997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14406997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14406997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406997', 'tblTempUsageDetail_20' ) start [2025-02-05 10:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14406997', 'tblTempUsageDetail_20' ) end [2025-02-05 10:10:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:10:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:10:31] Production.INFO: ==2540== Releasing lock... [2025-02-05 10:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:10:31] Production.INFO: 45.25 MB #Memory Used# [2025-02-05 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:11:05 [end_date_ymd] => 2025-02-05 10:11:05 [RateCDR] => 1 ) [2025-02-05 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:11:05' and `end` < '2025-02-05 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:11:24] Production.INFO: count ==2334 [2025-02-05 10:11:25] Production.ERROR: pbx CDR StartTime 2025-02-05 07:11:05 - End Time 2025-02-05 10:11:05 [2025-02-05 10:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407003', 'tblTempUsageDetail_20' ) start [2025-02-05 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407003', 'tblTempUsageDetail_20' ) end [2025-02-05 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407003', 'tblTempVendorCDR_20' ) start [2025-02-05 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407003', 'tblTempVendorCDR_20' ) end [2025-02-05 10:11:25] Production.INFO: ProcessCDR(1,14407003,1,1,2) [2025-02-05 10:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407003', 'tblTempUsageDetail_20' ) start [2025-02-05 10:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407003', 'tblTempUsageDetail_20' ) end [2025-02-05 10:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:11:30] Production.INFO: ==2621== Releasing lock... [2025-02-05 10:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:11:30] Production.INFO: 45.5 MB #Memory Used# [2025-02-05 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:12:05 [end_date_ymd] => 2025-02-05 10:12:05 [RateCDR] => 1 ) [2025-02-05 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:12:05' and `end` < '2025-02-05 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:12:24] Production.INFO: count ==2363 [2025-02-05 10:12:25] Production.ERROR: pbx CDR StartTime 2025-02-05 07:12:05 - End Time 2025-02-05 10:12:05 [2025-02-05 10:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407008', 'tblTempUsageDetail_20' ) start [2025-02-05 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407008', 'tblTempUsageDetail_20' ) end [2025-02-05 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407008', 'tblTempVendorCDR_20' ) start [2025-02-05 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407008', 'tblTempVendorCDR_20' ) end [2025-02-05 10:12:25] Production.INFO: ProcessCDR(1,14407008,1,1,2) [2025-02-05 10:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407008', 'tblTempUsageDetail_20' ) start [2025-02-05 10:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407008', 'tblTempUsageDetail_20' ) end [2025-02-05 10:12:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:12:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:12:30] Production.INFO: ==2693== Releasing lock... [2025-02-05 10:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:12:30] Production.INFO: 45.75 MB #Memory Used# [2025-02-05 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:13:05 [end_date_ymd] => 2025-02-05 10:13:05 [RateCDR] => 1 ) [2025-02-05 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:13:05' and `end` < '2025-02-05 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:13:23] Production.INFO: count ==2368 [2025-02-05 10:13:24] Production.ERROR: pbx CDR StartTime 2025-02-05 07:13:05 - End Time 2025-02-05 10:13:05 [2025-02-05 10:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407013', 'tblTempUsageDetail_20' ) start [2025-02-05 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407013', 'tblTempUsageDetail_20' ) end [2025-02-05 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407013', 'tblTempVendorCDR_20' ) start [2025-02-05 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407013', 'tblTempVendorCDR_20' ) end [2025-02-05 10:13:24] Production.INFO: ProcessCDR(1,14407013,1,1,2) [2025-02-05 10:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407013', 'tblTempUsageDetail_20' ) start [2025-02-05 10:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407013', 'tblTempUsageDetail_20' ) end [2025-02-05 10:13:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:13:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:13:28] Production.INFO: ==2771== Releasing lock... [2025-02-05 10:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:13:28] Production.INFO: 45.5 MB #Memory Used# [2025-02-05 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:14:05 [end_date_ymd] => 2025-02-05 10:14:05 [RateCDR] => 1 ) [2025-02-05 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:14:05' and `end` < '2025-02-05 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:14:21] Production.INFO: count ==2375 [2025-02-05 10:14:22] Production.ERROR: pbx CDR StartTime 2025-02-05 07:14:05 - End Time 2025-02-05 10:14:05 [2025-02-05 10:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407018', 'tblTempUsageDetail_20' ) start [2025-02-05 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407018', 'tblTempUsageDetail_20' ) end [2025-02-05 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407018', 'tblTempVendorCDR_20' ) start [2025-02-05 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407018', 'tblTempVendorCDR_20' ) end [2025-02-05 10:14:22] Production.INFO: ProcessCDR(1,14407018,1,1,2) [2025-02-05 10:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407018', 'tblTempUsageDetail_20' ) start [2025-02-05 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407018', 'tblTempUsageDetail_20' ) end [2025-02-05 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:14:25] Production.INFO: ==2854== Releasing lock... [2025-02-05 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:14:25] Production.INFO: 46 MB #Memory Used# [2025-02-05 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:15:05 [end_date_ymd] => 2025-02-05 10:15:05 [RateCDR] => 1 ) [2025-02-05 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:15:05' and `end` < '2025-02-05 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:15:20] Production.INFO: count ==2384 [2025-02-05 10:15:21] Production.ERROR: pbx CDR StartTime 2025-02-05 07:15:05 - End Time 2025-02-05 10:15:05 [2025-02-05 10:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407023', 'tblTempUsageDetail_20' ) start [2025-02-05 10:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407023', 'tblTempUsageDetail_20' ) end [2025-02-05 10:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407023', 'tblTempVendorCDR_20' ) start [2025-02-05 10:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407023', 'tblTempVendorCDR_20' ) end [2025-02-05 10:15:21] Production.INFO: ProcessCDR(1,14407023,1,1,2) [2025-02-05 10:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407023', 'tblTempUsageDetail_20' ) start [2025-02-05 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407023', 'tblTempUsageDetail_20' ) end [2025-02-05 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:15:25] Production.INFO: ==2928== Releasing lock... [2025-02-05 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:15:25] Production.INFO: 46 MB #Memory Used# [2025-02-05 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:16:05 [end_date_ymd] => 2025-02-05 10:16:05 [RateCDR] => 1 ) [2025-02-05 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:16:05' and `end` < '2025-02-05 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:16:32] Production.INFO: count ==2393 [2025-02-05 10:16:33] Production.ERROR: pbx CDR StartTime 2025-02-05 07:16:05 - End Time 2025-02-05 10:16:05 [2025-02-05 10:16:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407028', 'tblTempUsageDetail_20' ) start [2025-02-05 10:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407028', 'tblTempUsageDetail_20' ) end [2025-02-05 10:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407028', 'tblTempVendorCDR_20' ) start [2025-02-05 10:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407028', 'tblTempVendorCDR_20' ) end [2025-02-05 10:16:33] Production.INFO: ProcessCDR(1,14407028,1,1,2) [2025-02-05 10:16:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:16:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:16:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:16:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407028', 'tblTempUsageDetail_20' ) start [2025-02-05 10:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407028', 'tblTempUsageDetail_20' ) end [2025-02-05 10:16:37] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:16:37] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:16:37] Production.INFO: ==3001== Releasing lock... [2025-02-05 10:16:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:16:37] Production.INFO: 46 MB #Memory Used# [2025-02-05 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:17:05 [end_date_ymd] => 2025-02-05 10:17:05 [RateCDR] => 1 ) [2025-02-05 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:17:05' and `end` < '2025-02-05 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:17:22] Production.INFO: count ==2420 [2025-02-05 10:17:23] Production.ERROR: pbx CDR StartTime 2025-02-05 07:17:05 - End Time 2025-02-05 10:17:05 [2025-02-05 10:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407033', 'tblTempUsageDetail_20' ) start [2025-02-05 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407033', 'tblTempUsageDetail_20' ) end [2025-02-05 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407033', 'tblTempVendorCDR_20' ) start [2025-02-05 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407033', 'tblTempVendorCDR_20' ) end [2025-02-05 10:17:23] Production.INFO: ProcessCDR(1,14407033,1,1,2) [2025-02-05 10:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407033', 'tblTempUsageDetail_20' ) start [2025-02-05 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407033', 'tblTempUsageDetail_20' ) end [2025-02-05 10:17:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:17:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:17:28] Production.INFO: ==3079== Releasing lock... [2025-02-05 10:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:17:28] Production.INFO: 46.25 MB #Memory Used# [2025-02-05 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:18:06 [end_date_ymd] => 2025-02-05 10:18:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 07:18:06' and `end` < '2025-02-05 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-02-05 10:18:22] Production.INFO: count ==2448 [2025-02-05 10:18:23] Production.ERROR: pbx CDR StartTime 2025-02-05 07:18:06 - End Time 2025-02-05 10:18:06 [2025-02-05 10:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407038', 'tblTempUsageDetail_20' ) start [2025-02-05 10:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407038', 'tblTempUsageDetail_20' ) end [2025-02-05 10:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407038', 'tblTempVendorCDR_20' ) start [2025-02-05 10:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407038', 'tblTempVendorCDR_20' ) end [2025-02-05 10:18:23] Production.INFO: ProcessCDR(1,14407038,1,1,2) [2025-02-05 10:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407038', 'tblTempUsageDetail_20' ) start [2025-02-05 10:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407038', 'tblTempUsageDetail_20' ) end [2025-02-05 10:18:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:18:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:18:28] Production.INFO: ==3192== Releasing lock... [2025-02-05 10:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:18:28] Production.INFO: 46.5 MB #Memory Used# [2025-02-05 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:19:05 [end_date_ymd] => 2025-02-05 10:19:05 [RateCDR] => 1 ) [2025-02-05 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:19:05' and `end` < '2025-02-05 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:19:21] Production.INFO: count ==2459 [2025-02-05 10:19:21] Production.ERROR: pbx CDR StartTime 2025-02-05 07:19:05 - End Time 2025-02-05 10:19:05 [2025-02-05 10:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407043', 'tblTempUsageDetail_20' ) start [2025-02-05 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407043', 'tblTempUsageDetail_20' ) end [2025-02-05 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407043', 'tblTempVendorCDR_20' ) start [2025-02-05 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407043', 'tblTempVendorCDR_20' ) end [2025-02-05 10:19:22] Production.INFO: ProcessCDR(1,14407043,1,1,2) [2025-02-05 10:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407043', 'tblTempUsageDetail_20' ) start [2025-02-05 10:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407043', 'tblTempUsageDetail_20' ) end [2025-02-05 10:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:19:27] Production.INFO: ==3268== Releasing lock... [2025-02-05 10:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:19:27] Production.INFO: 46.5 MB #Memory Used# [2025-02-05 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:20:06 [end_date_ymd] => 2025-02-05 10:20:06 [RateCDR] => 1 ) [2025-02-05 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:20:06' and `end` < '2025-02-05 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:20:27] Production.INFO: count ==2477 [2025-02-05 10:20:27] Production.ERROR: pbx CDR StartTime 2025-02-05 07:20:06 - End Time 2025-02-05 10:20:06 [2025-02-05 10:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407048', 'tblTempUsageDetail_20' ) start [2025-02-05 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407048', 'tblTempUsageDetail_20' ) end [2025-02-05 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407048', 'tblTempVendorCDR_20' ) start [2025-02-05 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407048', 'tblTempVendorCDR_20' ) end [2025-02-05 10:20:28] Production.INFO: ProcessCDR(1,14407048,1,1,2) [2025-02-05 10:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407048', 'tblTempUsageDetail_20' ) start [2025-02-05 10:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407048', 'tblTempUsageDetail_20' ) end [2025-02-05 10:20:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:20:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:20:32] Production.INFO: ==3354== Releasing lock... [2025-02-05 10:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:20:32] Production.INFO: 46.75 MB #Memory Used# [2025-02-05 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:21:05 [end_date_ymd] => 2025-02-05 10:21:05 [RateCDR] => 1 ) [2025-02-05 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:21:05' and `end` < '2025-02-05 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:21:22] Production.INFO: count ==2597 [2025-02-05 10:21:23] Production.ERROR: pbx CDR StartTime 2025-02-05 07:21:05 - End Time 2025-02-05 10:21:05 [2025-02-05 10:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407054', 'tblTempUsageDetail_20' ) start [2025-02-05 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407054', 'tblTempUsageDetail_20' ) end [2025-02-05 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407054', 'tblTempVendorCDR_20' ) start [2025-02-05 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407054', 'tblTempVendorCDR_20' ) end [2025-02-05 10:21:23] Production.INFO: ProcessCDR(1,14407054,1,1,2) [2025-02-05 10:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407054', 'tblTempUsageDetail_20' ) start [2025-02-05 10:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407054', 'tblTempUsageDetail_20' ) end [2025-02-05 10:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:21:27] Production.INFO: ==3435== Releasing lock... [2025-02-05 10:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:21:27] Production.INFO: 47.5 MB #Memory Used# [2025-02-05 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:22:05 [end_date_ymd] => 2025-02-05 10:22:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 07:22:05' and `end` < '2025-02-05 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-02-05 10:22:20] Production.INFO: count ==2607 [2025-02-05 10:22:21] Production.ERROR: pbx CDR StartTime 2025-02-05 07:22:05 - End Time 2025-02-05 10:22:05 [2025-02-05 10:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407059', 'tblTempUsageDetail_20' ) start [2025-02-05 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407059', 'tblTempUsageDetail_20' ) end [2025-02-05 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407059', 'tblTempVendorCDR_20' ) start [2025-02-05 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407059', 'tblTempVendorCDR_20' ) end [2025-02-05 10:22:21] Production.INFO: ProcessCDR(1,14407059,1,1,2) [2025-02-05 10:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407059', 'tblTempUsageDetail_20' ) start [2025-02-05 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407059', 'tblTempUsageDetail_20' ) end [2025-02-05 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:22:25] Production.INFO: ==3513== Releasing lock... [2025-02-05 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:22:25] Production.INFO: 47.75 MB #Memory Used# [2025-02-05 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:23:05 [end_date_ymd] => 2025-02-05 10:23:05 [RateCDR] => 1 ) [2025-02-05 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:23:05' and `end` < '2025-02-05 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:23:20] Production.INFO: count ==2623 [2025-02-05 10:23:21] Production.ERROR: pbx CDR StartTime 2025-02-05 07:23:05 - End Time 2025-02-05 10:23:05 [2025-02-05 10:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407064', 'tblTempUsageDetail_20' ) start [2025-02-05 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407064', 'tblTempUsageDetail_20' ) end [2025-02-05 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407064', 'tblTempVendorCDR_20' ) start [2025-02-05 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407064', 'tblTempVendorCDR_20' ) end [2025-02-05 10:23:21] Production.INFO: ProcessCDR(1,14407064,1,1,2) [2025-02-05 10:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407064', 'tblTempUsageDetail_20' ) start [2025-02-05 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407064', 'tblTempUsageDetail_20' ) end [2025-02-05 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:23:25] Production.INFO: ==3586== Releasing lock... [2025-02-05 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:23:25] Production.INFO: 47.75 MB #Memory Used# [2025-02-05 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:24:05 [end_date_ymd] => 2025-02-05 10:24:05 [RateCDR] => 1 ) [2025-02-05 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:24:05' and `end` < '2025-02-05 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:24:23] Production.INFO: count ==2645 [2025-02-05 10:24:24] Production.ERROR: pbx CDR StartTime 2025-02-05 07:24:05 - End Time 2025-02-05 10:24:05 [2025-02-05 10:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407069', 'tblTempUsageDetail_20' ) start [2025-02-05 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407069', 'tblTempUsageDetail_20' ) end [2025-02-05 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407069', 'tblTempVendorCDR_20' ) start [2025-02-05 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407069', 'tblTempVendorCDR_20' ) end [2025-02-05 10:24:24] Production.INFO: ProcessCDR(1,14407069,1,1,2) [2025-02-05 10:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407069', 'tblTempUsageDetail_20' ) start [2025-02-05 10:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407069', 'tblTempUsageDetail_20' ) end [2025-02-05 10:24:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:24:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:24:29] Production.INFO: ==3681== Releasing lock... [2025-02-05 10:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:24:29] Production.INFO: 48 MB #Memory Used# [2025-02-05 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:25:05 [end_date_ymd] => 2025-02-05 10:25:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 07:25:05' and `end` < '2025-02-05 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-02-05 10:25:23] Production.INFO: count ==2670 [2025-02-05 10:25:24] Production.ERROR: pbx CDR StartTime 2025-02-05 07:25:05 - End Time 2025-02-05 10:25:05 [2025-02-05 10:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407074', 'tblTempUsageDetail_20' ) start [2025-02-05 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407074', 'tblTempUsageDetail_20' ) end [2025-02-05 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407074', 'tblTempVendorCDR_20' ) start [2025-02-05 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407074', 'tblTempVendorCDR_20' ) end [2025-02-05 10:25:24] Production.INFO: ProcessCDR(1,14407074,1,1,2) [2025-02-05 10:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407074', 'tblTempUsageDetail_20' ) start [2025-02-05 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407074', 'tblTempUsageDetail_20' ) end [2025-02-05 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:25:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:25:28] Production.INFO: ==3759== Releasing lock... [2025-02-05 10:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:25:28] Production.INFO: 48 MB #Memory Used# [2025-02-05 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:26:05 [end_date_ymd] => 2025-02-05 10:26:05 [RateCDR] => 1 ) [2025-02-05 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:26:05' and `end` < '2025-02-05 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:26:23] Production.INFO: count ==2702 [2025-02-05 10:26:24] Production.ERROR: pbx CDR StartTime 2025-02-05 07:26:05 - End Time 2025-02-05 10:26:05 [2025-02-05 10:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407079', 'tblTempUsageDetail_20' ) start [2025-02-05 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407079', 'tblTempUsageDetail_20' ) end [2025-02-05 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407079', 'tblTempVendorCDR_20' ) start [2025-02-05 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407079', 'tblTempVendorCDR_20' ) end [2025-02-05 10:26:24] Production.INFO: ProcessCDR(1,14407079,1,1,2) [2025-02-05 10:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407079', 'tblTempUsageDetail_20' ) start [2025-02-05 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407079', 'tblTempUsageDetail_20' ) end [2025-02-05 10:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:26:27] Production.INFO: ==3839== Releasing lock... [2025-02-05 10:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:26:27] Production.INFO: 48.25 MB #Memory Used# [2025-02-05 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:27:05 [end_date_ymd] => 2025-02-05 10:27:05 [RateCDR] => 1 ) [2025-02-05 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:27:05' and `end` < '2025-02-05 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:27:26] Production.INFO: count ==2723 [2025-02-05 10:27:27] Production.ERROR: pbx CDR StartTime 2025-02-05 07:27:05 - End Time 2025-02-05 10:27:05 [2025-02-05 10:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407084', 'tblTempUsageDetail_20' ) start [2025-02-05 10:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407084', 'tblTempUsageDetail_20' ) end [2025-02-05 10:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407084', 'tblTempVendorCDR_20' ) start [2025-02-05 10:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407084', 'tblTempVendorCDR_20' ) end [2025-02-05 10:27:27] Production.INFO: ProcessCDR(1,14407084,1,1,2) [2025-02-05 10:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407084', 'tblTempUsageDetail_20' ) start [2025-02-05 10:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407084', 'tblTempUsageDetail_20' ) end [2025-02-05 10:27:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:27:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:27:32] Production.INFO: ==3924== Releasing lock... [2025-02-05 10:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:27:32] Production.INFO: 48.5 MB #Memory Used# [2025-02-05 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:28:05 [end_date_ymd] => 2025-02-05 10:28:05 [RateCDR] => 1 ) [2025-02-05 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:28:05' and `end` < '2025-02-05 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:28:32] Production.INFO: count ==2744 [2025-02-05 10:28:33] Production.ERROR: pbx CDR StartTime 2025-02-05 07:28:05 - End Time 2025-02-05 10:28:05 [2025-02-05 10:28:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407089', 'tblTempUsageDetail_20' ) start [2025-02-05 10:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407089', 'tblTempUsageDetail_20' ) end [2025-02-05 10:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407089', 'tblTempVendorCDR_20' ) start [2025-02-05 10:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407089', 'tblTempVendorCDR_20' ) end [2025-02-05 10:28:33] Production.INFO: ProcessCDR(1,14407089,1,1,2) [2025-02-05 10:28:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:28:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:28:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:28:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:28:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407089', 'tblTempUsageDetail_20' ) start [2025-02-05 10:28:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407089', 'tblTempUsageDetail_20' ) end [2025-02-05 10:28:38] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:28:38] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:28:38] Production.INFO: ==4004== Releasing lock... [2025-02-05 10:28:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:28:38] Production.INFO: 48.75 MB #Memory Used# [2025-02-05 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:29:05 [end_date_ymd] => 2025-02-05 10:29:05 [RateCDR] => 1 ) [2025-02-05 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:29:05' and `end` < '2025-02-05 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:29:25] Production.INFO: count ==2769 [2025-02-05 10:29:26] Production.ERROR: pbx CDR StartTime 2025-02-05 07:29:05 - End Time 2025-02-05 10:29:05 [2025-02-05 10:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407094', 'tblTempUsageDetail_20' ) start [2025-02-05 10:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407094', 'tblTempUsageDetail_20' ) end [2025-02-05 10:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407094', 'tblTempVendorCDR_20' ) start [2025-02-05 10:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407094', 'tblTempVendorCDR_20' ) end [2025-02-05 10:29:26] Production.INFO: ProcessCDR(1,14407094,1,1,2) [2025-02-05 10:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407094', 'tblTempUsageDetail_20' ) start [2025-02-05 10:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407094', 'tblTempUsageDetail_20' ) end [2025-02-05 10:29:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:29:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:29:31] Production.INFO: ==4087== Releasing lock... [2025-02-05 10:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:29:31] Production.INFO: 49 MB #Memory Used# [2025-02-05 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:30:05 [end_date_ymd] => 2025-02-05 10:30:05 [RateCDR] => 1 ) [2025-02-05 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:30:05' and `end` < '2025-02-05 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:30:27] Production.INFO: count ==2794 [2025-02-05 10:30:28] Production.ERROR: pbx CDR StartTime 2025-02-05 07:30:05 - End Time 2025-02-05 10:30:05 [2025-02-05 10:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407099', 'tblTempUsageDetail_20' ) start [2025-02-05 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407099', 'tblTempUsageDetail_20' ) end [2025-02-05 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407099', 'tblTempVendorCDR_20' ) start [2025-02-05 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407099', 'tblTempVendorCDR_20' ) end [2025-02-05 10:30:28] Production.INFO: ProcessCDR(1,14407099,1,1,2) [2025-02-05 10:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407099', 'tblTempUsageDetail_20' ) start [2025-02-05 10:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407099', 'tblTempUsageDetail_20' ) end [2025-02-05 10:30:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:30:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:30:33] Production.INFO: ==4165== Releasing lock... [2025-02-05 10:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:30:33] Production.INFO: 49 MB #Memory Used# [2025-02-05 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:31:05 [end_date_ymd] => 2025-02-05 10:31:05 [RateCDR] => 1 ) [2025-02-05 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:31:05' and `end` < '2025-02-05 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:31:22] Production.INFO: count ==2956 [2025-02-05 10:31:23] Production.ERROR: pbx CDR StartTime 2025-02-05 07:31:05 - End Time 2025-02-05 10:31:05 [2025-02-05 10:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407105', 'tblTempUsageDetail_20' ) start [2025-02-05 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407105', 'tblTempUsageDetail_20' ) end [2025-02-05 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407105', 'tblTempVendorCDR_20' ) start [2025-02-05 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407105', 'tblTempVendorCDR_20' ) end [2025-02-05 10:31:23] Production.INFO: ProcessCDR(1,14407105,1,1,2) [2025-02-05 10:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407105', 'tblTempUsageDetail_20' ) start [2025-02-05 10:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407105', 'tblTempUsageDetail_20' ) end [2025-02-05 10:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:31:28] Production.INFO: ==4259== Releasing lock... [2025-02-05 10:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:31:28] Production.INFO: 49.75 MB #Memory Used# [2025-02-05 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:32:05 [end_date_ymd] => 2025-02-05 10:32:05 [RateCDR] => 1 ) [2025-02-05 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:32:05' and `end` < '2025-02-05 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:32:21] Production.INFO: count ==2960 [2025-02-05 10:32:23] Production.ERROR: pbx CDR StartTime 2025-02-05 07:32:05 - End Time 2025-02-05 10:32:05 [2025-02-05 10:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407110', 'tblTempUsageDetail_20' ) start [2025-02-05 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407110', 'tblTempUsageDetail_20' ) end [2025-02-05 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407110', 'tblTempVendorCDR_20' ) start [2025-02-05 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407110', 'tblTempVendorCDR_20' ) end [2025-02-05 10:32:23] Production.INFO: ProcessCDR(1,14407110,1,1,2) [2025-02-05 10:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407110', 'tblTempUsageDetail_20' ) start [2025-02-05 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407110', 'tblTempUsageDetail_20' ) end [2025-02-05 10:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:32:27] Production.INFO: ==4337== Releasing lock... [2025-02-05 10:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:32:27] Production.INFO: 50 MB #Memory Used# [2025-02-05 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:33:05 [end_date_ymd] => 2025-02-05 10:33:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 07:33:05' and `end` < '2025-02-05 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-02-05 10:33:22] Production.INFO: count ==2973 [2025-02-05 10:33:23] Production.ERROR: pbx CDR StartTime 2025-02-05 07:33:05 - End Time 2025-02-05 10:33:05 [2025-02-05 10:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407115', 'tblTempUsageDetail_20' ) start [2025-02-05 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407115', 'tblTempUsageDetail_20' ) end [2025-02-05 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407115', 'tblTempVendorCDR_20' ) start [2025-02-05 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407115', 'tblTempVendorCDR_20' ) end [2025-02-05 10:33:23] Production.INFO: ProcessCDR(1,14407115,1,1,2) [2025-02-05 10:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407115', 'tblTempUsageDetail_20' ) start [2025-02-05 10:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407115', 'tblTempUsageDetail_20' ) end [2025-02-05 10:33:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:33:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:33:28] Production.INFO: ==4448== Releasing lock... [2025-02-05 10:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:33:28] Production.INFO: 50 MB #Memory Used# [2025-02-05 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:34:05 [end_date_ymd] => 2025-02-05 10:34:05 [RateCDR] => 1 ) [2025-02-05 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:34:05' and `end` < '2025-02-05 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:34:25] Production.INFO: count ==2985 [2025-02-05 10:34:27] Production.ERROR: pbx CDR StartTime 2025-02-05 07:34:05 - End Time 2025-02-05 10:34:05 [2025-02-05 10:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407120', 'tblTempUsageDetail_20' ) start [2025-02-05 10:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407120', 'tblTempUsageDetail_20' ) end [2025-02-05 10:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407120', 'tblTempVendorCDR_20' ) start [2025-02-05 10:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407120', 'tblTempVendorCDR_20' ) end [2025-02-05 10:34:27] Production.INFO: ProcessCDR(1,14407120,1,1,2) [2025-02-05 10:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407120', 'tblTempUsageDetail_20' ) start [2025-02-05 10:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407120', 'tblTempUsageDetail_20' ) end [2025-02-05 10:34:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:34:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:34:32] Production.INFO: ==4524== Releasing lock... [2025-02-05 10:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:34:32] Production.INFO: 50.25 MB #Memory Used# [2025-02-05 10:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:35:04 [end_date_ymd] => 2025-02-05 10:35:04 [RateCDR] => 1 ) [2025-02-05 10:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:35:04' and `end` < '2025-02-05 10:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:35:27] Production.INFO: count ==2999 [2025-02-05 10:35:29] Production.ERROR: pbx CDR StartTime 2025-02-05 07:35:04 - End Time 2025-02-05 10:35:04 [2025-02-05 10:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407125', 'tblTempUsageDetail_20' ) start [2025-02-05 10:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407125', 'tblTempUsageDetail_20' ) end [2025-02-05 10:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407125', 'tblTempVendorCDR_20' ) start [2025-02-05 10:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407125', 'tblTempVendorCDR_20' ) end [2025-02-05 10:35:29] Production.INFO: ProcessCDR(1,14407125,1,1,2) [2025-02-05 10:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407125', 'tblTempUsageDetail_20' ) start [2025-02-05 10:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407125', 'tblTempUsageDetail_20' ) end [2025-02-05 10:35:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:35:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:35:34] Production.INFO: ==4611== Releasing lock... [2025-02-05 10:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:35:34] Production.INFO: 51.25 MB #Memory Used# [2025-02-05 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:36:05 [end_date_ymd] => 2025-02-05 10:36:05 [RateCDR] => 1 ) [2025-02-05 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:36:05' and `end` < '2025-02-05 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:36:24] Production.INFO: count ==3013 [2025-02-05 10:36:25] Production.ERROR: pbx CDR StartTime 2025-02-05 07:36:05 - End Time 2025-02-05 10:36:05 [2025-02-05 10:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407130', 'tblTempUsageDetail_20' ) start [2025-02-05 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407130', 'tblTempUsageDetail_20' ) end [2025-02-05 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407130', 'tblTempVendorCDR_20' ) start [2025-02-05 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407130', 'tblTempVendorCDR_20' ) end [2025-02-05 10:36:26] Production.INFO: ProcessCDR(1,14407130,1,1,2) [2025-02-05 10:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407130', 'tblTempUsageDetail_20' ) start [2025-02-05 10:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407130', 'tblTempUsageDetail_20' ) end [2025-02-05 10:36:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:36:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:36:30] Production.INFO: ==4688== Releasing lock... [2025-02-05 10:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:36:30] Production.INFO: 51.5 MB #Memory Used# [2025-02-05 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:37:05 [end_date_ymd] => 2025-02-05 10:37:05 [RateCDR] => 1 ) [2025-02-05 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:37:05' and `end` < '2025-02-05 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:37:28] Production.INFO: count ==3020 [2025-02-05 10:37:30] Production.ERROR: pbx CDR StartTime 2025-02-05 07:37:05 - End Time 2025-02-05 10:37:05 [2025-02-05 10:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407135', 'tblTempUsageDetail_20' ) start [2025-02-05 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407135', 'tblTempUsageDetail_20' ) end [2025-02-05 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407135', 'tblTempVendorCDR_20' ) start [2025-02-05 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407135', 'tblTempVendorCDR_20' ) end [2025-02-05 10:37:30] Production.INFO: ProcessCDR(1,14407135,1,1,2) [2025-02-05 10:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:37:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407135', 'tblTempUsageDetail_20' ) start [2025-02-05 10:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407135', 'tblTempUsageDetail_20' ) end [2025-02-05 10:37:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:37:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:37:34] Production.INFO: ==4766== Releasing lock... [2025-02-05 10:37:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:37:34] Production.INFO: 51.75 MB #Memory Used# [2025-02-05 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:38:05 [end_date_ymd] => 2025-02-05 10:38:05 [RateCDR] => 1 ) [2025-02-05 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:38:05' and `end` < '2025-02-05 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:38:24] Production.INFO: count ==3036 [2025-02-05 10:38:25] Production.ERROR: pbx CDR StartTime 2025-02-05 07:38:05 - End Time 2025-02-05 10:38:05 [2025-02-05 10:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407140', 'tblTempUsageDetail_20' ) start [2025-02-05 10:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407140', 'tblTempUsageDetail_20' ) end [2025-02-05 10:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407140', 'tblTempVendorCDR_20' ) start [2025-02-05 10:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407140', 'tblTempVendorCDR_20' ) end [2025-02-05 10:38:26] Production.INFO: ProcessCDR(1,14407140,1,1,2) [2025-02-05 10:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407140', 'tblTempUsageDetail_20' ) start [2025-02-05 10:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407140', 'tblTempUsageDetail_20' ) end [2025-02-05 10:38:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:38:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:38:29] Production.INFO: ==4849== Releasing lock... [2025-02-05 10:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:38:29] Production.INFO: 51.5 MB #Memory Used# [2025-02-05 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:39:06 [end_date_ymd] => 2025-02-05 10:39:06 [RateCDR] => 1 ) [2025-02-05 10:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:39:06' and `end` < '2025-02-05 10:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:39:25] Production.INFO: count ==3050 [2025-02-05 10:39:26] Production.ERROR: pbx CDR StartTime 2025-02-05 07:39:06 - End Time 2025-02-05 10:39:06 [2025-02-05 10:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407145', 'tblTempUsageDetail_20' ) start [2025-02-05 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407145', 'tblTempUsageDetail_20' ) end [2025-02-05 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407145', 'tblTempVendorCDR_20' ) start [2025-02-05 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407145', 'tblTempVendorCDR_20' ) end [2025-02-05 10:39:26] Production.INFO: ProcessCDR(1,14407145,1,1,2) [2025-02-05 10:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407145', 'tblTempUsageDetail_20' ) start [2025-02-05 10:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407145', 'tblTempUsageDetail_20' ) end [2025-02-05 10:39:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:39:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:39:31] Production.INFO: ==4926== Releasing lock... [2025-02-05 10:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:39:31] Production.INFO: 51.5 MB #Memory Used# [2025-02-05 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:40:06 [end_date_ymd] => 2025-02-05 10:40:06 [RateCDR] => 1 ) [2025-02-05 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:40:06' and `end` < '2025-02-05 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:40:27] Production.INFO: count ==3059 [2025-02-05 10:40:28] Production.ERROR: pbx CDR StartTime 2025-02-05 07:40:06 - End Time 2025-02-05 10:40:06 [2025-02-05 10:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407151', 'tblTempUsageDetail_20' ) start [2025-02-05 10:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407151', 'tblTempUsageDetail_20' ) end [2025-02-05 10:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407151', 'tblTempVendorCDR_20' ) start [2025-02-05 10:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407151', 'tblTempVendorCDR_20' ) end [2025-02-05 10:40:28] Production.INFO: ProcessCDR(1,14407151,1,1,2) [2025-02-05 10:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407151', 'tblTempUsageDetail_20' ) start [2025-02-05 10:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407151', 'tblTempUsageDetail_20' ) end [2025-02-05 10:40:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:40:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:40:33] Production.INFO: ==5005== Releasing lock... [2025-02-05 10:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:40:33] Production.INFO: 51 MB #Memory Used# [2025-02-05 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:41:05 [end_date_ymd] => 2025-02-05 10:41:05 [RateCDR] => 1 ) [2025-02-05 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:41:05' and `end` < '2025-02-05 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:41:23] Production.INFO: count ==3195 [2025-02-05 10:41:24] Production.ERROR: pbx CDR StartTime 2025-02-05 07:41:05 - End Time 2025-02-05 10:41:05 [2025-02-05 10:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407156', 'tblTempUsageDetail_20' ) start [2025-02-05 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407156', 'tblTempUsageDetail_20' ) end [2025-02-05 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407156', 'tblTempVendorCDR_20' ) start [2025-02-05 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407156', 'tblTempVendorCDR_20' ) end [2025-02-05 10:41:24] Production.INFO: ProcessCDR(1,14407156,1,1,2) [2025-02-05 10:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407156', 'tblTempUsageDetail_20' ) start [2025-02-05 10:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407156', 'tblTempUsageDetail_20' ) end [2025-02-05 10:41:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:41:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:41:29] Production.INFO: ==5086== Releasing lock... [2025-02-05 10:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:41:29] Production.INFO: 51.75 MB #Memory Used# [2025-02-05 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:42:05 [end_date_ymd] => 2025-02-05 10:42:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 07:42:05' and `end` < '2025-02-05 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-02-05 10:42:34] Production.INFO: count ==3210 [2025-02-05 10:42:35] Production.ERROR: pbx CDR StartTime 2025-02-05 07:42:05 - End Time 2025-02-05 10:42:05 [2025-02-05 10:42:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407161', 'tblTempUsageDetail_20' ) start [2025-02-05 10:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407161', 'tblTempUsageDetail_20' ) end [2025-02-05 10:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407161', 'tblTempVendorCDR_20' ) start [2025-02-05 10:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407161', 'tblTempVendorCDR_20' ) end [2025-02-05 10:42:36] Production.INFO: ProcessCDR(1,14407161,1,1,2) [2025-02-05 10:42:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:42:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:42:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:42:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:42:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407161', 'tblTempUsageDetail_20' ) start [2025-02-05 10:42:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407161', 'tblTempUsageDetail_20' ) end [2025-02-05 10:42:40] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:42:40] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:42:40] Production.INFO: ==5167== Releasing lock... [2025-02-05 10:42:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:42:40] Production.INFO: 53 MB #Memory Used# [2025-02-05 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:43:05 [end_date_ymd] => 2025-02-05 10:43:05 [RateCDR] => 1 ) [2025-02-05 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:43:05' and `end` < '2025-02-05 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:43:28] Production.INFO: count ==3239 [2025-02-05 10:43:29] Production.ERROR: pbx CDR StartTime 2025-02-05 07:43:05 - End Time 2025-02-05 10:43:05 [2025-02-05 10:43:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407166', 'tblTempUsageDetail_20' ) start [2025-02-05 10:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407166', 'tblTempUsageDetail_20' ) end [2025-02-05 10:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407166', 'tblTempVendorCDR_20' ) start [2025-02-05 10:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407166', 'tblTempVendorCDR_20' ) end [2025-02-05 10:43:29] Production.INFO: ProcessCDR(1,14407166,1,1,2) [2025-02-05 10:43:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407166', 'tblTempUsageDetail_20' ) start [2025-02-05 10:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407166', 'tblTempUsageDetail_20' ) end [2025-02-05 10:43:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:43:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:43:34] Production.INFO: ==5250== Releasing lock... [2025-02-05 10:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:43:34] Production.INFO: 52.25 MB #Memory Used# [2025-02-05 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:44:06 [end_date_ymd] => 2025-02-05 10:44:06 [RateCDR] => 1 ) [2025-02-05 10:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:44:06' and `end` < '2025-02-05 10:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:44:23] Production.INFO: count ==3265 [2025-02-05 10:44:24] Production.ERROR: pbx CDR StartTime 2025-02-05 07:44:06 - End Time 2025-02-05 10:44:06 [2025-02-05 10:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407170', 'tblTempUsageDetail_20' ) start [2025-02-05 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407170', 'tblTempUsageDetail_20' ) end [2025-02-05 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407170', 'tblTempVendorCDR_20' ) start [2025-02-05 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407170', 'tblTempVendorCDR_20' ) end [2025-02-05 10:44:24] Production.INFO: ProcessCDR(1,14407170,1,1,2) [2025-02-05 10:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407170', 'tblTempUsageDetail_20' ) start [2025-02-05 10:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407170', 'tblTempUsageDetail_20' ) end [2025-02-05 10:44:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:44:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:44:29] Production.INFO: ==5341== Releasing lock... [2025-02-05 10:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:44:29] Production.INFO: 52.5 MB #Memory Used# [2025-02-05 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:45:05 [end_date_ymd] => 2025-02-05 10:45:05 [RateCDR] => 1 ) [2025-02-05 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:45:05' and `end` < '2025-02-05 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:45:24] Production.INFO: count ==3273 [2025-02-05 10:45:26] Production.ERROR: pbx CDR StartTime 2025-02-05 07:45:05 - End Time 2025-02-05 10:45:05 [2025-02-05 10:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407176', 'tblTempUsageDetail_20' ) start [2025-02-05 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407176', 'tblTempUsageDetail_20' ) end [2025-02-05 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407176', 'tblTempVendorCDR_20' ) start [2025-02-05 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407176', 'tblTempVendorCDR_20' ) end [2025-02-05 10:45:26] Production.INFO: ProcessCDR(1,14407176,1,1,2) [2025-02-05 10:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407176', 'tblTempUsageDetail_20' ) start [2025-02-05 10:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407176', 'tblTempUsageDetail_20' ) end [2025-02-05 10:45:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:45:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:45:31] Production.INFO: ==5424== Releasing lock... [2025-02-05 10:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:45:31] Production.INFO: 52.75 MB #Memory Used# [2025-02-05 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:46:05 [end_date_ymd] => 2025-02-05 10:46:05 [RateCDR] => 1 ) [2025-02-05 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:46:05' and `end` < '2025-02-05 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:46:23] Production.INFO: count ==3296 [2025-02-05 10:46:24] Production.ERROR: pbx CDR StartTime 2025-02-05 07:46:05 - End Time 2025-02-05 10:46:05 [2025-02-05 10:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407181', 'tblTempUsageDetail_20' ) start [2025-02-05 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407181', 'tblTempUsageDetail_20' ) end [2025-02-05 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407181', 'tblTempVendorCDR_20' ) start [2025-02-05 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407181', 'tblTempVendorCDR_20' ) end [2025-02-05 10:46:24] Production.INFO: ProcessCDR(1,14407181,1,1,2) [2025-02-05 10:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407181', 'tblTempUsageDetail_20' ) start [2025-02-05 10:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407181', 'tblTempUsageDetail_20' ) end [2025-02-05 10:46:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:46:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:46:30] Production.INFO: ==5528== Releasing lock... [2025-02-05 10:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:46:30] Production.INFO: 52.75 MB #Memory Used# [2025-02-05 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:47:05 [end_date_ymd] => 2025-02-05 10:47:05 [RateCDR] => 1 ) [2025-02-05 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:47:05' and `end` < '2025-02-05 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:47:22] Production.INFO: count ==3312 [2025-02-05 10:47:23] Production.ERROR: pbx CDR StartTime 2025-02-05 07:47:05 - End Time 2025-02-05 10:47:05 [2025-02-05 10:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407186', 'tblTempUsageDetail_20' ) start [2025-02-05 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407186', 'tblTempUsageDetail_20' ) end [2025-02-05 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407186', 'tblTempVendorCDR_20' ) start [2025-02-05 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407186', 'tblTempVendorCDR_20' ) end [2025-02-05 10:47:23] Production.INFO: ProcessCDR(1,14407186,1,1,2) [2025-02-05 10:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407186', 'tblTempUsageDetail_20' ) start [2025-02-05 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407186', 'tblTempUsageDetail_20' ) end [2025-02-05 10:47:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:47:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:47:28] Production.INFO: ==5611== Releasing lock... [2025-02-05 10:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:47:28] Production.INFO: 53.75 MB #Memory Used# [2025-02-05 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:48:05 [end_date_ymd] => 2025-02-05 10:48:05 [RateCDR] => 1 ) [2025-02-05 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:48:05' and `end` < '2025-02-05 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:48:21] Production.INFO: count ==3330 [2025-02-05 10:48:22] Production.ERROR: pbx CDR StartTime 2025-02-05 07:48:05 - End Time 2025-02-05 10:48:05 [2025-02-05 10:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407191', 'tblTempUsageDetail_20' ) start [2025-02-05 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407191', 'tblTempUsageDetail_20' ) end [2025-02-05 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407191', 'tblTempVendorCDR_20' ) start [2025-02-05 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407191', 'tblTempVendorCDR_20' ) end [2025-02-05 10:48:22] Production.INFO: ProcessCDR(1,14407191,1,1,2) [2025-02-05 10:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407191', 'tblTempUsageDetail_20' ) start [2025-02-05 10:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407191', 'tblTempUsageDetail_20' ) end [2025-02-05 10:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:48:27] Production.INFO: ==5702== Releasing lock... [2025-02-05 10:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:48:27] Production.INFO: 53 MB #Memory Used# [2025-02-05 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:49:05 [end_date_ymd] => 2025-02-05 10:49:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 07:49:05' and `end` < '2025-02-05 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-02-05 10:49:20] Production.INFO: count ==3344 [2025-02-05 10:49:21] Production.ERROR: pbx CDR StartTime 2025-02-05 07:49:05 - End Time 2025-02-05 10:49:05 [2025-02-05 10:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407196', 'tblTempUsageDetail_20' ) start [2025-02-05 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407196', 'tblTempUsageDetail_20' ) end [2025-02-05 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407196', 'tblTempVendorCDR_20' ) start [2025-02-05 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407196', 'tblTempVendorCDR_20' ) end [2025-02-05 10:49:21] Production.INFO: ProcessCDR(1,14407196,1,1,2) [2025-02-05 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407196', 'tblTempUsageDetail_20' ) start [2025-02-05 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407196', 'tblTempUsageDetail_20' ) end [2025-02-05 10:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:49:26] Production.INFO: ==5820== Releasing lock... [2025-02-05 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:49:26] Production.INFO: 53 MB #Memory Used# [2025-02-05 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:50:05 [end_date_ymd] => 2025-02-05 10:50:05 [RateCDR] => 1 ) [2025-02-05 10:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:50:05' and `end` < '2025-02-05 10:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:50:29] Production.INFO: count ==3357 [2025-02-05 10:50:30] Production.ERROR: pbx CDR StartTime 2025-02-05 07:50:05 - End Time 2025-02-05 10:50:05 [2025-02-05 10:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407202', 'tblTempUsageDetail_20' ) start [2025-02-05 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407202', 'tblTempUsageDetail_20' ) end [2025-02-05 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407202', 'tblTempVendorCDR_20' ) start [2025-02-05 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407202', 'tblTempVendorCDR_20' ) end [2025-02-05 10:50:31] Production.INFO: ProcessCDR(1,14407202,1,1,2) [2025-02-05 10:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407202', 'tblTempUsageDetail_20' ) start [2025-02-05 10:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407202', 'tblTempUsageDetail_20' ) end [2025-02-05 10:50:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:50:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:50:35] Production.INFO: ==5906== Releasing lock... [2025-02-05 10:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:50:35] Production.INFO: 53.5 MB #Memory Used# [2025-02-05 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:51:05 [end_date_ymd] => 2025-02-05 10:51:05 [RateCDR] => 1 ) [2025-02-05 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:51:05' and `end` < '2025-02-05 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:51:22] Production.INFO: count ==3456 [2025-02-05 10:51:23] Production.ERROR: pbx CDR StartTime 2025-02-05 07:51:05 - End Time 2025-02-05 10:51:05 [2025-02-05 10:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407207', 'tblTempUsageDetail_20' ) start [2025-02-05 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407207', 'tblTempUsageDetail_20' ) end [2025-02-05 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407207', 'tblTempVendorCDR_20' ) start [2025-02-05 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407207', 'tblTempVendorCDR_20' ) end [2025-02-05 10:51:23] Production.INFO: ProcessCDR(1,14407207,1,1,2) [2025-02-05 10:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407207', 'tblTempUsageDetail_20' ) start [2025-02-05 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407207', 'tblTempUsageDetail_20' ) end [2025-02-05 10:51:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:51:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:51:28] Production.INFO: ==5989== Releasing lock... [2025-02-05 10:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:51:28] Production.INFO: 54.25 MB #Memory Used# [2025-02-05 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:52:05 [end_date_ymd] => 2025-02-05 10:52:05 [RateCDR] => 1 ) [2025-02-05 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:52:05' and `end` < '2025-02-05 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:52:28] Production.INFO: count ==3460 [2025-02-05 10:52:29] Production.ERROR: pbx CDR StartTime 2025-02-05 07:52:05 - End Time 2025-02-05 10:52:05 [2025-02-05 10:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407212', 'tblTempUsageDetail_20' ) start [2025-02-05 10:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407212', 'tblTempUsageDetail_20' ) end [2025-02-05 10:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407212', 'tblTempVendorCDR_20' ) start [2025-02-05 10:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407212', 'tblTempVendorCDR_20' ) end [2025-02-05 10:52:29] Production.INFO: ProcessCDR(1,14407212,1,1,2) [2025-02-05 10:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407212', 'tblTempUsageDetail_20' ) start [2025-02-05 10:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407212', 'tblTempUsageDetail_20' ) end [2025-02-05 10:52:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:52:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:52:32] Production.INFO: ==6090== Releasing lock... [2025-02-05 10:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:52:32] Production.INFO: 54.25 MB #Memory Used# [2025-02-05 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:53:05 [end_date_ymd] => 2025-02-05 10:53:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 07:53:05' and `end` < '2025-02-05 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-02-05 10:53:21] Production.INFO: count ==3476 [2025-02-05 10:53:22] Production.ERROR: pbx CDR StartTime 2025-02-05 07:53:05 - End Time 2025-02-05 10:53:05 [2025-02-05 10:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407217', 'tblTempUsageDetail_20' ) start [2025-02-05 10:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407217', 'tblTempUsageDetail_20' ) end [2025-02-05 10:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407217', 'tblTempVendorCDR_20' ) start [2025-02-05 10:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407217', 'tblTempVendorCDR_20' ) end [2025-02-05 10:53:23] Production.INFO: ProcessCDR(1,14407217,1,1,2) [2025-02-05 10:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407217', 'tblTempUsageDetail_20' ) start [2025-02-05 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407217', 'tblTempUsageDetail_20' ) end [2025-02-05 10:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:53:27] Production.INFO: ==6178== Releasing lock... [2025-02-05 10:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:53:27] Production.INFO: 54.5 MB #Memory Used# [2025-02-05 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:54:05 [end_date_ymd] => 2025-02-05 10:54:05 [RateCDR] => 1 ) [2025-02-05 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:54:05' and `end` < '2025-02-05 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:54:18] Production.INFO: count ==3485 [2025-02-05 10:54:20] Production.ERROR: pbx CDR StartTime 2025-02-05 07:54:05 - End Time 2025-02-05 10:54:05 [2025-02-05 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407222', 'tblTempUsageDetail_20' ) start [2025-02-05 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407222', 'tblTempUsageDetail_20' ) end [2025-02-05 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407222', 'tblTempVendorCDR_20' ) start [2025-02-05 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407222', 'tblTempVendorCDR_20' ) end [2025-02-05 10:54:20] Production.INFO: ProcessCDR(1,14407222,1,1,2) [2025-02-05 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407222', 'tblTempUsageDetail_20' ) start [2025-02-05 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407222', 'tblTempUsageDetail_20' ) end [2025-02-05 10:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:54:25] Production.INFO: ==6258== Releasing lock... [2025-02-05 10:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:54:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-05 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:55:05 [end_date_ymd] => 2025-02-05 10:55:05 [RateCDR] => 1 ) [2025-02-05 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:55:05' and `end` < '2025-02-05 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:55:19] Production.INFO: count ==3506 [2025-02-05 10:55:20] Production.ERROR: pbx CDR StartTime 2025-02-05 07:55:05 - End Time 2025-02-05 10:55:05 [2025-02-05 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407227', 'tblTempUsageDetail_20' ) start [2025-02-05 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407227', 'tblTempUsageDetail_20' ) end [2025-02-05 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407227', 'tblTempVendorCDR_20' ) start [2025-02-05 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407227', 'tblTempVendorCDR_20' ) end [2025-02-05 10:55:20] Production.INFO: ProcessCDR(1,14407227,1,1,2) [2025-02-05 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407227', 'tblTempUsageDetail_20' ) start [2025-02-05 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407227', 'tblTempUsageDetail_20' ) end [2025-02-05 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:55:25] Production.INFO: ==6339== Releasing lock... [2025-02-05 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:55:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-05 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:56:05 [end_date_ymd] => 2025-02-05 10:56:05 [RateCDR] => 1 ) [2025-02-05 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:56:05' and `end` < '2025-02-05 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:56:19] Production.INFO: count ==3532 [2025-02-05 10:56:21] Production.ERROR: pbx CDR StartTime 2025-02-05 07:56:05 - End Time 2025-02-05 10:56:05 [2025-02-05 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407232', 'tblTempUsageDetail_20' ) start [2025-02-05 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407232', 'tblTempUsageDetail_20' ) end [2025-02-05 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407232', 'tblTempVendorCDR_20' ) start [2025-02-05 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407232', 'tblTempVendorCDR_20' ) end [2025-02-05 10:56:21] Production.INFO: ProcessCDR(1,14407232,1,1,2) [2025-02-05 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407232', 'tblTempUsageDetail_20' ) start [2025-02-05 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407232', 'tblTempUsageDetail_20' ) end [2025-02-05 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:56:25] Production.INFO: ==6422== Releasing lock... [2025-02-05 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:56:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-05 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:57:05 [end_date_ymd] => 2025-02-05 10:57:05 [RateCDR] => 1 ) [2025-02-05 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:57:05' and `end` < '2025-02-05 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:57:19] Production.INFO: count ==3552 [2025-02-05 10:57:20] Production.ERROR: pbx CDR StartTime 2025-02-05 07:57:05 - End Time 2025-02-05 10:57:05 [2025-02-05 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407237', 'tblTempUsageDetail_20' ) start [2025-02-05 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407237', 'tblTempUsageDetail_20' ) end [2025-02-05 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407237', 'tblTempVendorCDR_20' ) start [2025-02-05 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407237', 'tblTempVendorCDR_20' ) end [2025-02-05 10:57:20] Production.INFO: ProcessCDR(1,14407237,1,1,2) [2025-02-05 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407237', 'tblTempUsageDetail_20' ) start [2025-02-05 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407237', 'tblTempUsageDetail_20' ) end [2025-02-05 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:57:25] Production.INFO: ==6503== Releasing lock... [2025-02-05 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:57:25] Production.INFO: 55 MB #Memory Used# [2025-02-05 10:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:58:04 [end_date_ymd] => 2025-02-05 10:58:04 [RateCDR] => 1 ) [2025-02-05 10:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:58:04' and `end` < '2025-02-05 10:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:58:18] Production.INFO: count ==3569 [2025-02-05 10:58:19] Production.ERROR: pbx CDR StartTime 2025-02-05 07:58:04 - End Time 2025-02-05 10:58:04 [2025-02-05 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407242', 'tblTempUsageDetail_20' ) start [2025-02-05 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407242', 'tblTempUsageDetail_20' ) end [2025-02-05 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407242', 'tblTempVendorCDR_20' ) start [2025-02-05 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407242', 'tblTempVendorCDR_20' ) end [2025-02-05 10:58:19] Production.INFO: ProcessCDR(1,14407242,1,1,2) [2025-02-05 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407242', 'tblTempUsageDetail_20' ) start [2025-02-05 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407242', 'tblTempUsageDetail_20' ) end [2025-02-05 10:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:58:24] Production.INFO: ==6588== Releasing lock... [2025-02-05 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:58:24] Production.INFO: 54.75 MB #Memory Used# [2025-02-05 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 07:59:05 [end_date_ymd] => 2025-02-05 10:59:05 [RateCDR] => 1 ) [2025-02-05 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 07:59:05' and `end` < '2025-02-05 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 10:59:19] Production.INFO: count ==3572 [2025-02-05 10:59:21] Production.ERROR: pbx CDR StartTime 2025-02-05 07:59:05 - End Time 2025-02-05 10:59:05 [2025-02-05 10:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407247', 'tblTempUsageDetail_20' ) start [2025-02-05 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407247', 'tblTempUsageDetail_20' ) end [2025-02-05 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407247', 'tblTempVendorCDR_20' ) start [2025-02-05 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407247', 'tblTempVendorCDR_20' ) end [2025-02-05 10:59:21] Production.INFO: ProcessCDR(1,14407247,1,1,2) [2025-02-05 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 10:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407247', 'tblTempUsageDetail_20' ) start [2025-02-05 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407247', 'tblTempUsageDetail_20' ) end [2025-02-05 10:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 10:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 10:59:26] Production.INFO: ==6672== Releasing lock... [2025-02-05 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 10:59:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-05 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:00:07 [end_date_ymd] => 2025-02-05 11:00:07 [RateCDR] => 1 ) [2025-02-05 11:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:00:07' and `end` < '2025-02-05 11:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:00:20] Production.INFO: count ==3565 [2025-02-05 11:00:22] Production.ERROR: pbx CDR StartTime 2025-02-05 08:00:07 - End Time 2025-02-05 11:00:07 [2025-02-05 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407253', 'tblTempUsageDetail_20' ) start [2025-02-05 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407253', 'tblTempUsageDetail_20' ) end [2025-02-05 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407253', 'tblTempVendorCDR_20' ) start [2025-02-05 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407253', 'tblTempVendorCDR_20' ) end [2025-02-05 11:00:22] Production.INFO: ProcessCDR(1,14407253,1,1,2) [2025-02-05 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407253', 'tblTempUsageDetail_20' ) start [2025-02-05 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407253', 'tblTempUsageDetail_20' ) end [2025-02-05 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:00:27] Production.INFO: ==6758== Releasing lock... [2025-02-05 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:00:27] Production.INFO: 54.5 MB #Memory Used# [2025-02-05 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:01:05 [end_date_ymd] => 2025-02-05 11:01:05 [RateCDR] => 1 ) [2025-02-05 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:01:05' and `end` < '2025-02-05 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:01:20] Production.INFO: count ==3660 [2025-02-05 11:01:21] Production.ERROR: pbx CDR StartTime 2025-02-05 08:01:05 - End Time 2025-02-05 11:01:05 [2025-02-05 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407258', 'tblTempUsageDetail_20' ) start [2025-02-05 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407258', 'tblTempUsageDetail_20' ) end [2025-02-05 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407258', 'tblTempVendorCDR_20' ) start [2025-02-05 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407258', 'tblTempVendorCDR_20' ) end [2025-02-05 11:01:21] Production.INFO: ProcessCDR(1,14407258,1,1,2) [2025-02-05 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407258', 'tblTempUsageDetail_20' ) start [2025-02-05 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407258', 'tblTempUsageDetail_20' ) end [2025-02-05 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:01:26] Production.INFO: ==6936== Releasing lock... [2025-02-05 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:01:26] Production.INFO: 55.75 MB #Memory Used# [2025-02-05 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:02:05 [end_date_ymd] => 2025-02-05 11:02:05 [RateCDR] => 1 ) [2025-02-05 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:02:05' and `end` < '2025-02-05 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:02:20] Production.INFO: count ==3648 [2025-02-05 11:02:22] Production.ERROR: pbx CDR StartTime 2025-02-05 08:02:05 - End Time 2025-02-05 11:02:05 [2025-02-05 11:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407263', 'tblTempUsageDetail_20' ) start [2025-02-05 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407263', 'tblTempUsageDetail_20' ) end [2025-02-05 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407263', 'tblTempVendorCDR_20' ) start [2025-02-05 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407263', 'tblTempVendorCDR_20' ) end [2025-02-05 11:02:22] Production.INFO: ProcessCDR(1,14407263,1,1,2) [2025-02-05 11:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407263', 'tblTempUsageDetail_20' ) start [2025-02-05 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407263', 'tblTempUsageDetail_20' ) end [2025-02-05 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:02:26] Production.INFO: ==7026== Releasing lock... [2025-02-05 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:02:26] Production.INFO: 55.75 MB #Memory Used# [2025-02-05 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:03:05 [end_date_ymd] => 2025-02-05 11:03:05 [RateCDR] => 1 ) [2025-02-05 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:03:05' and `end` < '2025-02-05 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:03:19] Production.INFO: count ==3664 [2025-02-05 11:03:20] Production.ERROR: pbx CDR StartTime 2025-02-05 08:03:05 - End Time 2025-02-05 11:03:05 [2025-02-05 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407268', 'tblTempUsageDetail_20' ) start [2025-02-05 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407268', 'tblTempUsageDetail_20' ) end [2025-02-05 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407268', 'tblTempVendorCDR_20' ) start [2025-02-05 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407268', 'tblTempVendorCDR_20' ) end [2025-02-05 11:03:20] Production.INFO: ProcessCDR(1,14407268,1,1,2) [2025-02-05 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407268', 'tblTempUsageDetail_20' ) start [2025-02-05 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407268', 'tblTempUsageDetail_20' ) end [2025-02-05 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:03:25] Production.INFO: ==7108== Releasing lock... [2025-02-05 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:03:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-05 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:04:05 [end_date_ymd] => 2025-02-05 11:04:05 [RateCDR] => 1 ) [2025-02-05 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:04:05' and `end` < '2025-02-05 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:04:21] Production.INFO: count ==3661 [2025-02-05 11:04:23] Production.ERROR: pbx CDR StartTime 2025-02-05 08:04:05 - End Time 2025-02-05 11:04:05 [2025-02-05 11:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407273', 'tblTempUsageDetail_20' ) start [2025-02-05 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407273', 'tblTempUsageDetail_20' ) end [2025-02-05 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407273', 'tblTempVendorCDR_20' ) start [2025-02-05 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407273', 'tblTempVendorCDR_20' ) end [2025-02-05 11:04:23] Production.INFO: ProcessCDR(1,14407273,1,1,2) [2025-02-05 11:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407273', 'tblTempUsageDetail_20' ) start [2025-02-05 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407273', 'tblTempUsageDetail_20' ) end [2025-02-05 11:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:04:27] Production.INFO: ==7240== Releasing lock... [2025-02-05 11:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:04:27] Production.INFO: 55.75 MB #Memory Used# [2025-02-05 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:05:05 [end_date_ymd] => 2025-02-05 11:05:05 [RateCDR] => 1 ) [2025-02-05 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:05:05' and `end` < '2025-02-05 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:05:25] Production.INFO: count ==3686 [2025-02-05 11:05:26] Production.ERROR: pbx CDR StartTime 2025-02-05 08:05:05 - End Time 2025-02-05 11:05:05 [2025-02-05 11:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407278', 'tblTempUsageDetail_20' ) start [2025-02-05 11:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407278', 'tblTempUsageDetail_20' ) end [2025-02-05 11:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407278', 'tblTempVendorCDR_20' ) start [2025-02-05 11:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407278', 'tblTempVendorCDR_20' ) end [2025-02-05 11:05:26] Production.INFO: ProcessCDR(1,14407278,1,1,2) [2025-02-05 11:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407278', 'tblTempUsageDetail_20' ) start [2025-02-05 11:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407278', 'tblTempUsageDetail_20' ) end [2025-02-05 11:05:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:05:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:05:31] Production.INFO: ==7404== Releasing lock... [2025-02-05 11:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:05:31] Production.INFO: 56 MB #Memory Used# [2025-02-05 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:06:06 [end_date_ymd] => 2025-02-05 11:06:06 [RateCDR] => 1 ) [2025-02-05 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:06:06' and `end` < '2025-02-05 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:06:22] Production.INFO: count ==3700 [2025-02-05 11:06:24] Production.ERROR: pbx CDR StartTime 2025-02-05 08:06:06 - End Time 2025-02-05 11:06:06 [2025-02-05 11:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407283', 'tblTempUsageDetail_20' ) start [2025-02-05 11:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407283', 'tblTempUsageDetail_20' ) end [2025-02-05 11:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407283', 'tblTempVendorCDR_20' ) start [2025-02-05 11:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407283', 'tblTempVendorCDR_20' ) end [2025-02-05 11:06:24] Production.INFO: ProcessCDR(1,14407283,1,1,2) [2025-02-05 11:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407283', 'tblTempUsageDetail_20' ) start [2025-02-05 11:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407283', 'tblTempUsageDetail_20' ) end [2025-02-05 11:06:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:06:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:06:29] Production.INFO: ==7490== Releasing lock... [2025-02-05 11:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:06:29] Production.INFO: 55.75 MB #Memory Used# [2025-02-05 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:07:05 [end_date_ymd] => 2025-02-05 11:07:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 08:07:05' and `end` < '2025-02-05 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-02-05 11:07:20] Production.INFO: count ==3698 [2025-02-05 11:07:21] Production.ERROR: pbx CDR StartTime 2025-02-05 08:07:05 - End Time 2025-02-05 11:07:05 [2025-02-05 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407288', 'tblTempUsageDetail_20' ) start [2025-02-05 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407288', 'tblTempUsageDetail_20' ) end [2025-02-05 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407288', 'tblTempVendorCDR_20' ) start [2025-02-05 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407288', 'tblTempVendorCDR_20' ) end [2025-02-05 11:07:21] Production.INFO: ProcessCDR(1,14407288,1,1,2) [2025-02-05 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407288', 'tblTempUsageDetail_20' ) start [2025-02-05 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407288', 'tblTempUsageDetail_20' ) end [2025-02-05 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:07:26] Production.INFO: ==7578== Releasing lock... [2025-02-05 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:07:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-05 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:08:05 [end_date_ymd] => 2025-02-05 11:08:05 [RateCDR] => 1 ) [2025-02-05 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:08:05' and `end` < '2025-02-05 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:08:19] Production.INFO: count ==3698 [2025-02-05 11:08:20] Production.ERROR: pbx CDR StartTime 2025-02-05 08:08:05 - End Time 2025-02-05 11:08:05 [2025-02-05 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407293', 'tblTempUsageDetail_20' ) start [2025-02-05 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407293', 'tblTempUsageDetail_20' ) end [2025-02-05 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407293', 'tblTempVendorCDR_20' ) start [2025-02-05 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407293', 'tblTempVendorCDR_20' ) end [2025-02-05 11:08:20] Production.INFO: ProcessCDR(1,14407293,1,1,2) [2025-02-05 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407293', 'tblTempUsageDetail_20' ) start [2025-02-05 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407293', 'tblTempUsageDetail_20' ) end [2025-02-05 11:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:08:25] Production.INFO: ==7746== Releasing lock... [2025-02-05 11:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:08:25] Production.INFO: 56 MB #Memory Used# [2025-02-05 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:09:05 [end_date_ymd] => 2025-02-05 11:09:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 08:09:05' and `end` < '2025-02-05 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-02-05 11:09:19] Production.INFO: count ==3718 [2025-02-05 11:09:20] Production.ERROR: pbx CDR StartTime 2025-02-05 08:09:05 - End Time 2025-02-05 11:09:05 [2025-02-05 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407298', 'tblTempUsageDetail_20' ) start [2025-02-05 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407298', 'tblTempUsageDetail_20' ) end [2025-02-05 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407298', 'tblTempVendorCDR_20' ) start [2025-02-05 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407298', 'tblTempVendorCDR_20' ) end [2025-02-05 11:09:20] Production.INFO: ProcessCDR(1,14407298,1,1,2) [2025-02-05 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407298', 'tblTempUsageDetail_20' ) start [2025-02-05 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407298', 'tblTempUsageDetail_20' ) end [2025-02-05 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:09:25] Production.INFO: ==7835== Releasing lock... [2025-02-05 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:09:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-05 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:10:06 [end_date_ymd] => 2025-02-05 11:10:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 08:10:06' and `end` < '2025-02-05 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-02-05 11:10:28] Production.INFO: count ==3726 [2025-02-05 11:10:29] Production.ERROR: pbx CDR StartTime 2025-02-05 08:10:06 - End Time 2025-02-05 11:10:06 [2025-02-05 11:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407304', 'tblTempUsageDetail_20' ) start [2025-02-05 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407304', 'tblTempUsageDetail_20' ) end [2025-02-05 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407304', 'tblTempVendorCDR_20' ) start [2025-02-05 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407304', 'tblTempVendorCDR_20' ) end [2025-02-05 11:10:29] Production.INFO: ProcessCDR(1,14407304,1,1,2) [2025-02-05 11:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407304', 'tblTempUsageDetail_20' ) start [2025-02-05 11:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407304', 'tblTempUsageDetail_20' ) end [2025-02-05 11:10:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:10:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:10:34] Production.INFO: ==7919== Releasing lock... [2025-02-05 11:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:10:34] Production.INFO: 56 MB #Memory Used# [2025-02-05 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:11:05 [end_date_ymd] => 2025-02-05 11:11:05 [RateCDR] => 1 ) [2025-02-05 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:11:05' and `end` < '2025-02-05 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:11:24] Production.INFO: count ==3810 [2025-02-05 11:11:25] Production.ERROR: pbx CDR StartTime 2025-02-05 08:11:05 - End Time 2025-02-05 11:11:05 [2025-02-05 11:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407309', 'tblTempUsageDetail_20' ) start [2025-02-05 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407309', 'tblTempUsageDetail_20' ) end [2025-02-05 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407309', 'tblTempVendorCDR_20' ) start [2025-02-05 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407309', 'tblTempVendorCDR_20' ) end [2025-02-05 11:11:25] Production.INFO: ProcessCDR(1,14407309,1,1,2) [2025-02-05 11:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407309', 'tblTempUsageDetail_20' ) start [2025-02-05 11:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407309', 'tblTempUsageDetail_20' ) end [2025-02-05 11:11:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:11:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:11:28] Production.INFO: ==8022== Releasing lock... [2025-02-05 11:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:11:28] Production.INFO: 57 MB #Memory Used# [2025-02-05 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:12:05 [end_date_ymd] => 2025-02-05 11:12:05 [RateCDR] => 1 ) [2025-02-05 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:12:05' and `end` < '2025-02-05 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:12:22] Production.INFO: count ==3829 [2025-02-05 11:12:24] Production.ERROR: pbx CDR StartTime 2025-02-05 08:12:05 - End Time 2025-02-05 11:12:05 [2025-02-05 11:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407314', 'tblTempUsageDetail_20' ) start [2025-02-05 11:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407314', 'tblTempUsageDetail_20' ) end [2025-02-05 11:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407314', 'tblTempVendorCDR_20' ) start [2025-02-05 11:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407314', 'tblTempVendorCDR_20' ) end [2025-02-05 11:12:24] Production.INFO: ProcessCDR(1,14407314,1,1,2) [2025-02-05 11:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407314', 'tblTempUsageDetail_20' ) start [2025-02-05 11:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407314', 'tblTempUsageDetail_20' ) end [2025-02-05 11:12:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:12:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:12:29] Production.INFO: ==8192== Releasing lock... [2025-02-05 11:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:12:29] Production.INFO: 56.75 MB #Memory Used# [2025-02-05 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:13:05 [end_date_ymd] => 2025-02-05 11:13:05 [RateCDR] => 1 ) [2025-02-05 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:13:05' and `end` < '2025-02-05 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:13:22] Production.INFO: count ==3841 [2025-02-05 11:13:23] Production.ERROR: pbx CDR StartTime 2025-02-05 08:13:05 - End Time 2025-02-05 11:13:05 [2025-02-05 11:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407319', 'tblTempUsageDetail_20' ) start [2025-02-05 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407319', 'tblTempUsageDetail_20' ) end [2025-02-05 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407319', 'tblTempVendorCDR_20' ) start [2025-02-05 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407319', 'tblTempVendorCDR_20' ) end [2025-02-05 11:13:24] Production.INFO: ProcessCDR(1,14407319,1,1,2) [2025-02-05 11:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407319', 'tblTempUsageDetail_20' ) start [2025-02-05 11:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407319', 'tblTempUsageDetail_20' ) end [2025-02-05 11:13:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:13:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:13:28] Production.INFO: ==8273== Releasing lock... [2025-02-05 11:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:13:28] Production.INFO: 56.75 MB #Memory Used# [2025-02-05 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:14:06 [end_date_ymd] => 2025-02-05 11:14:06 [RateCDR] => 1 ) [2025-02-05 11:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:14:06' and `end` < '2025-02-05 11:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:14:22] Production.INFO: count ==3852 [2025-02-05 11:14:23] Production.ERROR: pbx CDR StartTime 2025-02-05 08:14:06 - End Time 2025-02-05 11:14:06 [2025-02-05 11:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407321', 'tblTempUsageDetail_20' ) start [2025-02-05 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407321', 'tblTempUsageDetail_20' ) end [2025-02-05 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407321', 'tblTempVendorCDR_20' ) start [2025-02-05 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407321', 'tblTempVendorCDR_20' ) end [2025-02-05 11:14:23] Production.INFO: ProcessCDR(1,14407321,1,1,2) [2025-02-05 11:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407321', 'tblTempUsageDetail_20' ) start [2025-02-05 11:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407321', 'tblTempUsageDetail_20' ) end [2025-02-05 11:14:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:14:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:14:28] Production.INFO: ==8365== Releasing lock... [2025-02-05 11:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:14:28] Production.INFO: 57 MB #Memory Used# [2025-02-05 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:15:05 [end_date_ymd] => 2025-02-05 11:15:05 [RateCDR] => 1 ) [2025-02-05 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:15:05' and `end` < '2025-02-05 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:15:24] Production.INFO: count ==3857 [2025-02-05 11:15:25] Production.ERROR: pbx CDR StartTime 2025-02-05 08:15:05 - End Time 2025-02-05 11:15:05 [2025-02-05 11:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407329', 'tblTempUsageDetail_20' ) start [2025-02-05 11:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407329', 'tblTempUsageDetail_20' ) end [2025-02-05 11:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407329', 'tblTempVendorCDR_20' ) start [2025-02-05 11:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407329', 'tblTempVendorCDR_20' ) end [2025-02-05 11:15:25] Production.INFO: ProcessCDR(1,14407329,1,1,2) [2025-02-05 11:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407329', 'tblTempUsageDetail_20' ) start [2025-02-05 11:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407329', 'tblTempUsageDetail_20' ) end [2025-02-05 11:15:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:15:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:15:28] Production.INFO: ==8519== Releasing lock... [2025-02-05 11:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:15:28] Production.INFO: 56.75 MB #Memory Used# [2025-02-05 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:16:06 [end_date_ymd] => 2025-02-05 11:16:06 [RateCDR] => 1 ) [2025-02-05 11:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:16:06' and `end` < '2025-02-05 11:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:16:23] Production.INFO: count ==3870 [2025-02-05 11:16:25] Production.ERROR: pbx CDR StartTime 2025-02-05 08:16:06 - End Time 2025-02-05 11:16:06 [2025-02-05 11:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407334', 'tblTempUsageDetail_20' ) start [2025-02-05 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407334', 'tblTempUsageDetail_20' ) end [2025-02-05 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407334', 'tblTempVendorCDR_20' ) start [2025-02-05 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407334', 'tblTempVendorCDR_20' ) end [2025-02-05 11:16:25] Production.INFO: ProcessCDR(1,14407334,1,1,2) [2025-02-05 11:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407334', 'tblTempUsageDetail_20' ) start [2025-02-05 11:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407334', 'tblTempUsageDetail_20' ) end [2025-02-05 11:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:16:30] Production.INFO: ==8602== Releasing lock... [2025-02-05 11:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:16:30] Production.INFO: 57 MB #Memory Used# [2025-02-05 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:17:05 [end_date_ymd] => 2025-02-05 11:17:05 [RateCDR] => 1 ) [2025-02-05 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:17:05' and `end` < '2025-02-05 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:17:24] Production.INFO: count ==3880 [2025-02-05 11:17:26] Production.ERROR: pbx CDR StartTime 2025-02-05 08:17:05 - End Time 2025-02-05 11:17:05 [2025-02-05 11:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407339', 'tblTempUsageDetail_20' ) start [2025-02-05 11:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407339', 'tblTempUsageDetail_20' ) end [2025-02-05 11:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407339', 'tblTempVendorCDR_20' ) start [2025-02-05 11:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407339', 'tblTempVendorCDR_20' ) end [2025-02-05 11:17:26] Production.INFO: ProcessCDR(1,14407339,1,1,2) [2025-02-05 11:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407339', 'tblTempUsageDetail_20' ) start [2025-02-05 11:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407339', 'tblTempUsageDetail_20' ) end [2025-02-05 11:17:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:17:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:17:30] Production.INFO: ==8687== Releasing lock... [2025-02-05 11:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:17:30] Production.INFO: 57 MB #Memory Used# [2025-02-05 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:18:06 [end_date_ymd] => 2025-02-05 11:18:06 [RateCDR] => 1 ) [2025-02-05 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:18:06' and `end` < '2025-02-05 11:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:18:27] Production.INFO: count ==3882 [2025-02-05 11:18:28] Production.ERROR: pbx CDR StartTime 2025-02-05 08:18:06 - End Time 2025-02-05 11:18:06 [2025-02-05 11:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407344', 'tblTempUsageDetail_20' ) start [2025-02-05 11:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407344', 'tblTempUsageDetail_20' ) end [2025-02-05 11:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407344', 'tblTempVendorCDR_20' ) start [2025-02-05 11:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407344', 'tblTempVendorCDR_20' ) end [2025-02-05 11:18:29] Production.INFO: ProcessCDR(1,14407344,1,1,2) [2025-02-05 11:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407344', 'tblTempUsageDetail_20' ) start [2025-02-05 11:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407344', 'tblTempUsageDetail_20' ) end [2025-02-05 11:18:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:18:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:18:33] Production.INFO: ==8790== Releasing lock... [2025-02-05 11:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:18:33] Production.INFO: 57.25 MB #Memory Used# [2025-02-05 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:19:05 [end_date_ymd] => 2025-02-05 11:19:05 [RateCDR] => 1 ) [2025-02-05 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:19:05' and `end` < '2025-02-05 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:19:19] Production.INFO: count ==3886 [2025-02-05 11:19:20] Production.ERROR: pbx CDR StartTime 2025-02-05 08:19:05 - End Time 2025-02-05 11:19:05 [2025-02-05 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407349', 'tblTempUsageDetail_20' ) start [2025-02-05 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407349', 'tblTempUsageDetail_20' ) end [2025-02-05 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407349', 'tblTempVendorCDR_20' ) start [2025-02-05 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407349', 'tblTempVendorCDR_20' ) end [2025-02-05 11:19:20] Production.INFO: ProcessCDR(1,14407349,1,1,2) [2025-02-05 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407349', 'tblTempUsageDetail_20' ) start [2025-02-05 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407349', 'tblTempUsageDetail_20' ) end [2025-02-05 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:19:25] Production.INFO: ==8913== Releasing lock... [2025-02-05 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:19:25] Production.INFO: 57 MB #Memory Used# [2025-02-05 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:20:07 [end_date_ymd] => 2025-02-05 11:20:07 [RateCDR] => 1 ) [2025-02-05 11: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-02-05 08:20:07' and `end` < '2025-02-05 11: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-02-05 11:20:31] Production.INFO: count ==3915 [2025-02-05 11:20:33] Production.ERROR: pbx CDR StartTime 2025-02-05 08:20:07 - End Time 2025-02-05 11:20:07 [2025-02-05 11:20:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407355', 'tblTempUsageDetail_20' ) start [2025-02-05 11:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407355', 'tblTempUsageDetail_20' ) end [2025-02-05 11:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407355', 'tblTempVendorCDR_20' ) start [2025-02-05 11:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407355', 'tblTempVendorCDR_20' ) end [2025-02-05 11:20:33] Production.INFO: ProcessCDR(1,14407355,1,1,2) [2025-02-05 11:20:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:20:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407355', 'tblTempUsageDetail_20' ) start [2025-02-05 11:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407355', 'tblTempUsageDetail_20' ) end [2025-02-05 11:20:38] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:20:38] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:20:38] Production.INFO: ==8996== Releasing lock... [2025-02-05 11:20:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:20:38] Production.INFO: 57.25 MB #Memory Used# [2025-02-05 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:21:05 [end_date_ymd] => 2025-02-05 11:21:05 [RateCDR] => 1 ) [2025-02-05 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:21:05' and `end` < '2025-02-05 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:21:30] Production.INFO: count ==3993 [2025-02-05 11:21:32] Production.ERROR: pbx CDR StartTime 2025-02-05 08:21:05 - End Time 2025-02-05 11:21:05 [2025-02-05 11:21:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407360', 'tblTempUsageDetail_20' ) start [2025-02-05 11:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407360', 'tblTempUsageDetail_20' ) end [2025-02-05 11:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407360', 'tblTempVendorCDR_20' ) start [2025-02-05 11:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407360', 'tblTempVendorCDR_20' ) end [2025-02-05 11:21:32] Production.INFO: ProcessCDR(1,14407360,1,1,2) [2025-02-05 11:21:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:21:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:21:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:21:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:21:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407360', 'tblTempUsageDetail_20' ) start [2025-02-05 11:21:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407360', 'tblTempUsageDetail_20' ) end [2025-02-05 11:21:37] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:21:37] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:21:37] Production.INFO: ==9078== Releasing lock... [2025-02-05 11:21:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:21:37] Production.INFO: 57.75 MB #Memory Used# [2025-02-05 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:22:06 [end_date_ymd] => 2025-02-05 11:22:06 [RateCDR] => 1 ) [2025-02-05 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:22:06' and `end` < '2025-02-05 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:22:25] Production.INFO: count ==4003 [2025-02-05 11:22:26] Production.ERROR: pbx CDR StartTime 2025-02-05 08:22:06 - End Time 2025-02-05 11:22:06 [2025-02-05 11:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407365', 'tblTempUsageDetail_20' ) start [2025-02-05 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407365', 'tblTempUsageDetail_20' ) end [2025-02-05 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407365', 'tblTempVendorCDR_20' ) start [2025-02-05 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407365', 'tblTempVendorCDR_20' ) end [2025-02-05 11:22:26] Production.INFO: ProcessCDR(1,14407365,1,1,2) [2025-02-05 11:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407365', 'tblTempUsageDetail_20' ) start [2025-02-05 11:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407365', 'tblTempUsageDetail_20' ) end [2025-02-05 11:22:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:22:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:22:31] Production.INFO: ==9154== Releasing lock... [2025-02-05 11:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:22:31] Production.INFO: 58 MB #Memory Used# [2025-02-05 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:23:05 [end_date_ymd] => 2025-02-05 11:23:05 [RateCDR] => 1 ) [2025-02-05 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:23:05' and `end` < '2025-02-05 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-02-05 11:23:21] Production.INFO: count ==4000 [2025-02-05 11:23:23] Production.ERROR: pbx CDR StartTime 2025-02-05 08:23:05 - End Time 2025-02-05 11:23:05 [2025-02-05 11:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407370', 'tblTempUsageDetail_20' ) start [2025-02-05 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407370', 'tblTempUsageDetail_20' ) end [2025-02-05 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407370', 'tblTempVendorCDR_20' ) start [2025-02-05 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407370', 'tblTempVendorCDR_20' ) end [2025-02-05 11:23:23] Production.INFO: ProcessCDR(1,14407370,1,1,2) [2025-02-05 11:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407370', 'tblTempUsageDetail_20' ) start [2025-02-05 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407370', 'tblTempUsageDetail_20' ) end [2025-02-05 11:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:23:26] Production.INFO: ==9240== Releasing lock... [2025-02-05 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:23:26] Production.INFO: 57.75 MB #Memory Used# [2025-02-05 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:24:05 [end_date_ymd] => 2025-02-05 11:24:05 [RateCDR] => 1 ) [2025-02-05 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:24:05' and `end` < '2025-02-05 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:24:20] Production.INFO: count ==4015 [2025-02-05 11:24:21] Production.ERROR: pbx CDR StartTime 2025-02-05 08:24:05 - End Time 2025-02-05 11:24:05 [2025-02-05 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407375', 'tblTempUsageDetail_20' ) start [2025-02-05 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407375', 'tblTempUsageDetail_20' ) end [2025-02-05 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407375', 'tblTempVendorCDR_20' ) start [2025-02-05 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407375', 'tblTempVendorCDR_20' ) end [2025-02-05 11:24:21] Production.INFO: ProcessCDR(1,14407375,1,1,2) [2025-02-05 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407375', 'tblTempUsageDetail_20' ) start [2025-02-05 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407375', 'tblTempUsageDetail_20' ) end [2025-02-05 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:24:26] Production.INFO: ==9324== Releasing lock... [2025-02-05 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:24:26] Production.INFO: 58 MB #Memory Used# [2025-02-05 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:25:05 [end_date_ymd] => 2025-02-05 11:25:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 08:25:05' and `end` < '2025-02-05 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-02-05 11:25:20] Production.INFO: count ==4029 [2025-02-05 11:25:22] Production.ERROR: pbx CDR StartTime 2025-02-05 08:25:05 - End Time 2025-02-05 11:25:05 [2025-02-05 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407380', 'tblTempUsageDetail_20' ) start [2025-02-05 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407380', 'tblTempUsageDetail_20' ) end [2025-02-05 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407380', 'tblTempVendorCDR_20' ) start [2025-02-05 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407380', 'tblTempVendorCDR_20' ) end [2025-02-05 11:25:22] Production.INFO: ProcessCDR(1,14407380,1,1,2) [2025-02-05 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407380', 'tblTempUsageDetail_20' ) start [2025-02-05 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407380', 'tblTempUsageDetail_20' ) end [2025-02-05 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:25:27] Production.INFO: ==9408== Releasing lock... [2025-02-05 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:25:27] Production.INFO: 58 MB #Memory Used# [2025-02-05 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:26:06 [end_date_ymd] => 2025-02-05 11:26:06 [RateCDR] => 1 ) [2025-02-05 11:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:26:06' and `end` < '2025-02-05 11:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:26:26] Production.INFO: count ==4050 [2025-02-05 11:26:28] Production.ERROR: pbx CDR StartTime 2025-02-05 08:26:06 - End Time 2025-02-05 11:26:06 [2025-02-05 11:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407385', 'tblTempUsageDetail_20' ) start [2025-02-05 11:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407385', 'tblTempUsageDetail_20' ) end [2025-02-05 11:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407385', 'tblTempVendorCDR_20' ) start [2025-02-05 11:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407385', 'tblTempVendorCDR_20' ) end [2025-02-05 11:26:28] Production.INFO: ProcessCDR(1,14407385,1,1,2) [2025-02-05 11:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407385', 'tblTempUsageDetail_20' ) start [2025-02-05 11:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407385', 'tblTempUsageDetail_20' ) end [2025-02-05 11:26:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:26:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:26:32] Production.INFO: ==9492== Releasing lock... [2025-02-05 11:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:26:32] Production.INFO: 58.25 MB #Memory Used# [2025-02-05 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:27:05 [end_date_ymd] => 2025-02-05 11:27:05 [RateCDR] => 1 ) [2025-02-05 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:27:05' and `end` < '2025-02-05 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:27:21] Production.INFO: count ==4048 [2025-02-05 11:27:22] Production.ERROR: pbx CDR StartTime 2025-02-05 08:27:05 - End Time 2025-02-05 11:27:05 [2025-02-05 11:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407387', 'tblTempUsageDetail_20' ) start [2025-02-05 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407387', 'tblTempUsageDetail_20' ) end [2025-02-05 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407387', 'tblTempVendorCDR_20' ) start [2025-02-05 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407387', 'tblTempVendorCDR_20' ) end [2025-02-05 11:27:22] Production.INFO: ProcessCDR(1,14407387,1,1,2) [2025-02-05 11:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407387', 'tblTempUsageDetail_20' ) start [2025-02-05 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407387', 'tblTempUsageDetail_20' ) end [2025-02-05 11:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:27:27] Production.INFO: ==9577== Releasing lock... [2025-02-05 11:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:27:27] Production.INFO: 58.25 MB #Memory Used# [2025-02-05 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:28:05 [end_date_ymd] => 2025-02-05 11:28:05 [RateCDR] => 1 ) [2025-02-05 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:28:05' and `end` < '2025-02-05 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:28:22] Production.INFO: count ==4056 [2025-02-05 11:28:23] Production.ERROR: pbx CDR StartTime 2025-02-05 08:28:05 - End Time 2025-02-05 11:28:05 [2025-02-05 11:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407395', 'tblTempUsageDetail_20' ) start [2025-02-05 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407395', 'tblTempUsageDetail_20' ) end [2025-02-05 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407395', 'tblTempVendorCDR_20' ) start [2025-02-05 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407395', 'tblTempVendorCDR_20' ) end [2025-02-05 11:28:23] Production.INFO: ProcessCDR(1,14407395,1,1,2) [2025-02-05 11:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407395', 'tblTempUsageDetail_20' ) start [2025-02-05 11:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407395', 'tblTempUsageDetail_20' ) end [2025-02-05 11:28:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:28:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:28:28] Production.INFO: ==9663== Releasing lock... [2025-02-05 11:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:28:28] Production.INFO: 58.25 MB #Memory Used# [2025-02-05 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:29:05 [end_date_ymd] => 2025-02-05 11:29:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 08:29:05' and `end` < '2025-02-05 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-02-05 11:29:19] Production.INFO: count ==4059 [2025-02-05 11:29:20] Production.ERROR: pbx CDR StartTime 2025-02-05 08:29:05 - End Time 2025-02-05 11:29:05 [2025-02-05 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407400', 'tblTempUsageDetail_20' ) start [2025-02-05 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407400', 'tblTempUsageDetail_20' ) end [2025-02-05 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407400', 'tblTempVendorCDR_20' ) start [2025-02-05 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407400', 'tblTempVendorCDR_20' ) end [2025-02-05 11:29:21] Production.INFO: ProcessCDR(1,14407400,1,1,2) [2025-02-05 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407400', 'tblTempUsageDetail_20' ) start [2025-02-05 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407400', 'tblTempUsageDetail_20' ) end [2025-02-05 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:29:25] Production.INFO: ==9747== Releasing lock... [2025-02-05 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:29:25] Production.INFO: 58.25 MB #Memory Used# [2025-02-05 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:30:05 [end_date_ymd] => 2025-02-05 11:30:05 [RateCDR] => 1 ) [2025-02-05 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:30:05' and `end` < '2025-02-05 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:30:26] Production.INFO: count ==4074 [2025-02-05 11:30:27] Production.ERROR: pbx CDR StartTime 2025-02-05 08:30:05 - End Time 2025-02-05 11:30:05 [2025-02-05 11:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407405', 'tblTempUsageDetail_20' ) start [2025-02-05 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407405', 'tblTempUsageDetail_20' ) end [2025-02-05 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407405', 'tblTempVendorCDR_20' ) start [2025-02-05 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407405', 'tblTempVendorCDR_20' ) end [2025-02-05 11:30:27] Production.INFO: ProcessCDR(1,14407405,1,1,2) [2025-02-05 11:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407405', 'tblTempUsageDetail_20' ) start [2025-02-05 11:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407405', 'tblTempUsageDetail_20' ) end [2025-02-05 11:30:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:30:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:30:33] Production.INFO: ==9832== Releasing lock... [2025-02-05 11:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:30:33] Production.INFO: 58.5 MB #Memory Used# [2025-02-05 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:31:06 [end_date_ymd] => 2025-02-05 11:31:06 [RateCDR] => 1 ) [2025-02-05 11:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:31:06' and `end` < '2025-02-05 11:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:31:22] Production.INFO: count ==4127 [2025-02-05 11:31:24] Production.ERROR: pbx CDR StartTime 2025-02-05 08:31:06 - End Time 2025-02-05 11:31:06 [2025-02-05 11:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407411', 'tblTempUsageDetail_20' ) start [2025-02-05 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407411', 'tblTempUsageDetail_20' ) end [2025-02-05 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407411', 'tblTempVendorCDR_20' ) start [2025-02-05 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407411', 'tblTempVendorCDR_20' ) end [2025-02-05 11:31:24] Production.INFO: ProcessCDR(1,14407411,1,1,2) [2025-02-05 11:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407411', 'tblTempUsageDetail_20' ) start [2025-02-05 11:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407411', 'tblTempUsageDetail_20' ) end [2025-02-05 11:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:31:29] Production.INFO: ==9923== Releasing lock... [2025-02-05 11:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:31:29] Production.INFO: 58.75 MB #Memory Used# [2025-02-05 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:32:06 [end_date_ymd] => 2025-02-05 11:32:06 [RateCDR] => 1 ) [2025-02-05 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:32:06' and `end` < '2025-02-05 11:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:32:20] Production.INFO: count ==4128 [2025-02-05 11:32:21] Production.ERROR: pbx CDR StartTime 2025-02-05 08:32:06 - End Time 2025-02-05 11:32:06 [2025-02-05 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407416', 'tblTempUsageDetail_20' ) start [2025-02-05 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407416', 'tblTempUsageDetail_20' ) end [2025-02-05 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407416', 'tblTempVendorCDR_20' ) start [2025-02-05 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407416', 'tblTempVendorCDR_20' ) end [2025-02-05 11:32:22] Production.INFO: ProcessCDR(1,14407416,1,1,2) [2025-02-05 11:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407416', 'tblTempUsageDetail_20' ) start [2025-02-05 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407416', 'tblTempUsageDetail_20' ) end [2025-02-05 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:32:26] Production.INFO: ==10005== Releasing lock... [2025-02-05 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:32:26] Production.INFO: 58.75 MB #Memory Used# [2025-02-05 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:33:05 [end_date_ymd] => 2025-02-05 11:33:05 [RateCDR] => 1 ) [2025-02-05 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:33:05' and `end` < '2025-02-05 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:33:18] Production.INFO: count ==4127 [2025-02-05 11:33:20] Production.ERROR: pbx CDR StartTime 2025-02-05 08:33:05 - End Time 2025-02-05 11:33:05 [2025-02-05 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407421', 'tblTempUsageDetail_20' ) start [2025-02-05 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407421', 'tblTempUsageDetail_20' ) end [2025-02-05 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407421', 'tblTempVendorCDR_20' ) start [2025-02-05 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407421', 'tblTempVendorCDR_20' ) end [2025-02-05 11:33:20] Production.INFO: ProcessCDR(1,14407421,1,1,2) [2025-02-05 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407421', 'tblTempUsageDetail_20' ) start [2025-02-05 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407421', 'tblTempUsageDetail_20' ) end [2025-02-05 11:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:33:25] Production.INFO: ==10090== Releasing lock... [2025-02-05 11:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:33:25] Production.INFO: 58.75 MB #Memory Used# [2025-02-05 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:34:05 [end_date_ymd] => 2025-02-05 11:34:05 [RateCDR] => 1 ) [2025-02-05 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:34:05' and `end` < '2025-02-05 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:34:21] Production.INFO: count ==4127 [2025-02-05 11:34:22] Production.ERROR: pbx CDR StartTime 2025-02-05 08:34:05 - End Time 2025-02-05 11:34:05 [2025-02-05 11:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407426', 'tblTempUsageDetail_20' ) start [2025-02-05 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407426', 'tblTempUsageDetail_20' ) end [2025-02-05 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407426', 'tblTempVendorCDR_20' ) start [2025-02-05 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407426', 'tblTempVendorCDR_20' ) end [2025-02-05 11:34:22] Production.INFO: ProcessCDR(1,14407426,1,1,2) [2025-02-05 11:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407426', 'tblTempUsageDetail_20' ) start [2025-02-05 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407426', 'tblTempUsageDetail_20' ) end [2025-02-05 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:34:27] Production.INFO: ==10173== Releasing lock... [2025-02-05 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:34:27] Production.INFO: 58.75 MB #Memory Used# [2025-02-05 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:35:05 [end_date_ymd] => 2025-02-05 11:35:05 [RateCDR] => 1 ) [2025-02-05 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:35:05' and `end` < '2025-02-05 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:35:32] Production.INFO: count ==4131 [2025-02-05 11:35:33] Production.ERROR: pbx CDR StartTime 2025-02-05 08:35:05 - End Time 2025-02-05 11:35:05 [2025-02-05 11:35:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407431', 'tblTempUsageDetail_20' ) start [2025-02-05 11:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407431', 'tblTempUsageDetail_20' ) end [2025-02-05 11:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407431', 'tblTempVendorCDR_20' ) start [2025-02-05 11:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407431', 'tblTempVendorCDR_20' ) end [2025-02-05 11:35:33] Production.INFO: ProcessCDR(1,14407431,1,1,2) [2025-02-05 11:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:35:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:35:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:35:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407431', 'tblTempUsageDetail_20' ) start [2025-02-05 11:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407431', 'tblTempUsageDetail_20' ) end [2025-02-05 11:35:38] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:35:38] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:35:38] Production.INFO: ==10293== Releasing lock... [2025-02-05 11:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:35:38] Production.INFO: 59 MB #Memory Used# [2025-02-05 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:36:05 [end_date_ymd] => 2025-02-05 11:36:05 [RateCDR] => 1 ) [2025-02-05 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:36:05' and `end` < '2025-02-05 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:36:22] Production.INFO: count ==4154 [2025-02-05 11:36:23] Production.ERROR: pbx CDR StartTime 2025-02-05 08:36:05 - End Time 2025-02-05 11:36:05 [2025-02-05 11:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407436', 'tblTempUsageDetail_20' ) start [2025-02-05 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407436', 'tblTempUsageDetail_20' ) end [2025-02-05 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407436', 'tblTempVendorCDR_20' ) start [2025-02-05 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407436', 'tblTempVendorCDR_20' ) end [2025-02-05 11:36:23] Production.INFO: ProcessCDR(1,14407436,1,1,2) [2025-02-05 11:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407436', 'tblTempUsageDetail_20' ) start [2025-02-05 11:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407436', 'tblTempUsageDetail_20' ) end [2025-02-05 11:36:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:36:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:36:29] Production.INFO: ==10378== Releasing lock... [2025-02-05 11:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:36:29] Production.INFO: 59 MB #Memory Used# [2025-02-05 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:37:05 [end_date_ymd] => 2025-02-05 11:37:05 [RateCDR] => 1 ) [2025-02-05 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:37:05' and `end` < '2025-02-05 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:37:21] Production.INFO: count ==4148 [2025-02-05 11:37:22] Production.ERROR: pbx CDR StartTime 2025-02-05 08:37:05 - End Time 2025-02-05 11:37:05 [2025-02-05 11:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407441', 'tblTempUsageDetail_20' ) start [2025-02-05 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407441', 'tblTempUsageDetail_20' ) end [2025-02-05 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407441', 'tblTempVendorCDR_20' ) start [2025-02-05 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407441', 'tblTempVendorCDR_20' ) end [2025-02-05 11:37:22] Production.INFO: ProcessCDR(1,14407441,1,1,2) [2025-02-05 11:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407441', 'tblTempUsageDetail_20' ) start [2025-02-05 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407441', 'tblTempUsageDetail_20' ) end [2025-02-05 11:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:37:27] Production.INFO: ==10453== Releasing lock... [2025-02-05 11:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:37:27] Production.INFO: 59 MB #Memory Used# [2025-02-05 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:38:05 [end_date_ymd] => 2025-02-05 11:38:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 08:38:05' and `end` < '2025-02-05 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-02-05 11:38:19] Production.INFO: count ==4142 [2025-02-05 11:38:20] Production.ERROR: pbx CDR StartTime 2025-02-05 08:38:05 - End Time 2025-02-05 11:38:05 [2025-02-05 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407444', 'tblTempUsageDetail_20' ) start [2025-02-05 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407444', 'tblTempUsageDetail_20' ) end [2025-02-05 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407444', 'tblTempVendorCDR_20' ) start [2025-02-05 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407444', 'tblTempVendorCDR_20' ) end [2025-02-05 11:38:20] Production.INFO: ProcessCDR(1,14407444,1,1,2) [2025-02-05 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407444', 'tblTempUsageDetail_20' ) start [2025-02-05 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407444', 'tblTempUsageDetail_20' ) end [2025-02-05 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:38:25] Production.INFO: ==10535== Releasing lock... [2025-02-05 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:38:25] Production.INFO: 59 MB #Memory Used# [2025-02-05 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:39:06 [end_date_ymd] => 2025-02-05 11:39:06 [RateCDR] => 1 ) [2025-02-05 11:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:39:06' and `end` < '2025-02-05 11:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:39:20] Production.INFO: count ==4155 [2025-02-05 11:39:22] Production.ERROR: pbx CDR StartTime 2025-02-05 08:39:06 - End Time 2025-02-05 11:39:06 [2025-02-05 11:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407451', 'tblTempUsageDetail_20' ) start [2025-02-05 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407451', 'tblTempUsageDetail_20' ) end [2025-02-05 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407451', 'tblTempVendorCDR_20' ) start [2025-02-05 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407451', 'tblTempVendorCDR_20' ) end [2025-02-05 11:39:22] Production.INFO: ProcessCDR(1,14407451,1,1,2) [2025-02-05 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407451', 'tblTempUsageDetail_20' ) start [2025-02-05 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407451', 'tblTempUsageDetail_20' ) end [2025-02-05 11:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:39:27] Production.INFO: ==10619== Releasing lock... [2025-02-05 11:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:39:27] Production.INFO: 59 MB #Memory Used# [2025-02-05 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:40:06 [end_date_ymd] => 2025-02-05 11:40:06 [RateCDR] => 1 ) [2025-02-05 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:40:06' and `end` < '2025-02-05 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:40:26] Production.INFO: count ==4174 [2025-02-05 11:40:28] Production.ERROR: pbx CDR StartTime 2025-02-05 08:40:06 - End Time 2025-02-05 11:40:06 [2025-02-05 11:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407457', 'tblTempUsageDetail_20' ) start [2025-02-05 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407457', 'tblTempUsageDetail_20' ) end [2025-02-05 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407457', 'tblTempVendorCDR_20' ) start [2025-02-05 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407457', 'tblTempVendorCDR_20' ) end [2025-02-05 11:40:28] Production.INFO: ProcessCDR(1,14407457,1,1,2) [2025-02-05 11:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407457', 'tblTempUsageDetail_20' ) start [2025-02-05 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407457', 'tblTempUsageDetail_20' ) end [2025-02-05 11:40:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:40:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:40:32] Production.INFO: ==10710== Releasing lock... [2025-02-05 11:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:40:32] Production.INFO: 59.25 MB #Memory Used# [2025-02-05 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:41:06 [end_date_ymd] => 2025-02-05 11:41:06 [RateCDR] => 1 ) [2025-02-05 11:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:41:06' and `end` < '2025-02-05 11:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:41:21] Production.INFO: count ==4254 [2025-02-05 11:41:23] Production.ERROR: pbx CDR StartTime 2025-02-05 08:41:06 - End Time 2025-02-05 11:41:06 [2025-02-05 11:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407462', 'tblTempUsageDetail_20' ) start [2025-02-05 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407462', 'tblTempUsageDetail_20' ) end [2025-02-05 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407462', 'tblTempVendorCDR_20' ) start [2025-02-05 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407462', 'tblTempVendorCDR_20' ) end [2025-02-05 11:41:23] Production.INFO: ProcessCDR(1,14407462,1,1,2) [2025-02-05 11:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407462', 'tblTempUsageDetail_20' ) start [2025-02-05 11:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407462', 'tblTempUsageDetail_20' ) end [2025-02-05 11:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:41:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:41:28] Production.INFO: ==10797== Releasing lock... [2025-02-05 11:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:41:28] Production.INFO: 59.75 MB #Memory Used# [2025-02-05 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:42:05 [end_date_ymd] => 2025-02-05 11:42:05 [RateCDR] => 1 ) [2025-02-05 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:42:05' and `end` < '2025-02-05 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:42:28] Production.INFO: count ==4253 [2025-02-05 11:42:30] Production.ERROR: pbx CDR StartTime 2025-02-05 08:42:05 - End Time 2025-02-05 11:42:05 [2025-02-05 11:42:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407467', 'tblTempUsageDetail_20' ) start [2025-02-05 11:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407467', 'tblTempUsageDetail_20' ) end [2025-02-05 11:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407467', 'tblTempVendorCDR_20' ) start [2025-02-05 11:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407467', 'tblTempVendorCDR_20' ) end [2025-02-05 11:42:30] Production.INFO: ProcessCDR(1,14407467,1,1,2) [2025-02-05 11:42:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:42:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:42:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:42:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407467', 'tblTempUsageDetail_20' ) start [2025-02-05 11:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407467', 'tblTempUsageDetail_20' ) end [2025-02-05 11:42:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:42:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:42:34] Production.INFO: ==10883== Releasing lock... [2025-02-05 11:42:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:42:34] Production.INFO: 59.75 MB #Memory Used# [2025-02-05 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:43:05 [end_date_ymd] => 2025-02-05 11:43:05 [RateCDR] => 1 ) [2025-02-05 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:43:05' and `end` < '2025-02-05 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:43:24] Production.INFO: count ==4272 [2025-02-05 11:43:25] Production.ERROR: pbx CDR StartTime 2025-02-05 08:43:05 - End Time 2025-02-05 11:43:05 [2025-02-05 11:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407472', 'tblTempUsageDetail_20' ) start [2025-02-05 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407472', 'tblTempUsageDetail_20' ) end [2025-02-05 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407472', 'tblTempVendorCDR_20' ) start [2025-02-05 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407472', 'tblTempVendorCDR_20' ) end [2025-02-05 11:43:25] Production.INFO: ProcessCDR(1,14407472,1,1,2) [2025-02-05 11:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407472', 'tblTempUsageDetail_20' ) start [2025-02-05 11:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407472', 'tblTempUsageDetail_20' ) end [2025-02-05 11:43:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:43:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:43:30] Production.INFO: ==10961== Releasing lock... [2025-02-05 11:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:43:30] Production.INFO: 60 MB #Memory Used# [2025-02-05 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:44:05 [end_date_ymd] => 2025-02-05 11:44:05 [RateCDR] => 1 ) [2025-02-05 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:44:05' and `end` < '2025-02-05 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:44:23] Production.INFO: count ==4268 [2025-02-05 11:44:25] Production.ERROR: pbx CDR StartTime 2025-02-05 08:44:05 - End Time 2025-02-05 11:44:05 [2025-02-05 11:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407477', 'tblTempUsageDetail_20' ) start [2025-02-05 11:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407477', 'tblTempUsageDetail_20' ) end [2025-02-05 11:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407477', 'tblTempVendorCDR_20' ) start [2025-02-05 11:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407477', 'tblTempVendorCDR_20' ) end [2025-02-05 11:44:25] Production.INFO: ProcessCDR(1,14407477,1,1,2) [2025-02-05 11:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407477', 'tblTempUsageDetail_20' ) start [2025-02-05 11:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407477', 'tblTempUsageDetail_20' ) end [2025-02-05 11:44:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:44:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:44:30] Production.INFO: ==11048== Releasing lock... [2025-02-05 11:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:44:30] Production.INFO: 60 MB #Memory Used# [2025-02-05 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:45:05 [end_date_ymd] => 2025-02-05 11:45:05 [RateCDR] => 1 ) [2025-02-05 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:45:05' and `end` < '2025-02-05 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:45:26] Production.INFO: count ==4271 [2025-02-05 11:45:28] Production.ERROR: pbx CDR StartTime 2025-02-05 08:45:05 - End Time 2025-02-05 11:45:05 [2025-02-05 11:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407482', 'tblTempUsageDetail_20' ) start [2025-02-05 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407482', 'tblTempUsageDetail_20' ) end [2025-02-05 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407482', 'tblTempVendorCDR_20' ) start [2025-02-05 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407482', 'tblTempVendorCDR_20' ) end [2025-02-05 11:45:28] Production.INFO: ProcessCDR(1,14407482,1,1,2) [2025-02-05 11:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407482', 'tblTempUsageDetail_20' ) start [2025-02-05 11:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407482', 'tblTempUsageDetail_20' ) end [2025-02-05 11:45:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:45:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:45:33] Production.INFO: ==11130== Releasing lock... [2025-02-05 11:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:45:33] Production.INFO: 60 MB #Memory Used# [2025-02-05 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:46:06 [end_date_ymd] => 2025-02-05 11:46:06 [RateCDR] => 1 ) [2025-02-05 11:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:46:06' and `end` < '2025-02-05 11:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:46:24] Production.INFO: count ==4284 [2025-02-05 11:46:26] Production.ERROR: pbx CDR StartTime 2025-02-05 08:46:06 - End Time 2025-02-05 11:46:06 [2025-02-05 11:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407487', 'tblTempUsageDetail_20' ) start [2025-02-05 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407487', 'tblTempUsageDetail_20' ) end [2025-02-05 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407487', 'tblTempVendorCDR_20' ) start [2025-02-05 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407487', 'tblTempVendorCDR_20' ) end [2025-02-05 11:46:26] Production.INFO: ProcessCDR(1,14407487,1,1,2) [2025-02-05 11:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407487', 'tblTempUsageDetail_20' ) start [2025-02-05 11:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407487', 'tblTempUsageDetail_20' ) end [2025-02-05 11:46:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:46:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:46:31] Production.INFO: ==11218== Releasing lock... [2025-02-05 11:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:46:31] Production.INFO: 60 MB #Memory Used# [2025-02-05 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:47:05 [end_date_ymd] => 2025-02-05 11:47:05 [RateCDR] => 1 ) [2025-02-05 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:47:05' and `end` < '2025-02-05 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:47:20] Production.INFO: count ==4300 [2025-02-05 11:47:21] Production.ERROR: pbx CDR StartTime 2025-02-05 08:47:05 - End Time 2025-02-05 11:47:05 [2025-02-05 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407492', 'tblTempUsageDetail_20' ) start [2025-02-05 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407492', 'tblTempUsageDetail_20' ) end [2025-02-05 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407492', 'tblTempVendorCDR_20' ) start [2025-02-05 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407492', 'tblTempVendorCDR_20' ) end [2025-02-05 11:47:22] Production.INFO: ProcessCDR(1,14407492,1,1,2) [2025-02-05 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407492', 'tblTempUsageDetail_20' ) start [2025-02-05 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407492', 'tblTempUsageDetail_20' ) end [2025-02-05 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:47:26] Production.INFO: ==11300== Releasing lock... [2025-02-05 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:47:26] Production.INFO: 60.25 MB #Memory Used# [2025-02-05 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:48:05 [end_date_ymd] => 2025-02-05 11:48:05 [RateCDR] => 1 ) [2025-02-05 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:48:05' and `end` < '2025-02-05 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:48:26] Production.INFO: count ==4302 [2025-02-05 11:48:28] Production.ERROR: pbx CDR StartTime 2025-02-05 08:48:05 - End Time 2025-02-05 11:48:05 [2025-02-05 11:48:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407497', 'tblTempUsageDetail_20' ) start [2025-02-05 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407497', 'tblTempUsageDetail_20' ) end [2025-02-05 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407497', 'tblTempVendorCDR_20' ) start [2025-02-05 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407497', 'tblTempVendorCDR_20' ) end [2025-02-05 11:48:28] Production.INFO: ProcessCDR(1,14407497,1,1,2) [2025-02-05 11:48:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407497', 'tblTempUsageDetail_20' ) start [2025-02-05 11:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407497', 'tblTempUsageDetail_20' ) end [2025-02-05 11:48:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:48:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:48:32] Production.INFO: ==11379== Releasing lock... [2025-02-05 11:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:48:32] Production.INFO: 60.25 MB #Memory Used# [2025-02-05 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:49:05 [end_date_ymd] => 2025-02-05 11:49:05 [RateCDR] => 1 ) [2025-02-05 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:49:05' and `end` < '2025-02-05 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:49:22] Production.INFO: count ==4344 [2025-02-05 11:49:24] Production.ERROR: pbx CDR StartTime 2025-02-05 08:49:05 - End Time 2025-02-05 11:49:05 [2025-02-05 11:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407502', 'tblTempUsageDetail_20' ) start [2025-02-05 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407502', 'tblTempUsageDetail_20' ) end [2025-02-05 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407502', 'tblTempVendorCDR_20' ) start [2025-02-05 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407502', 'tblTempVendorCDR_20' ) end [2025-02-05 11:49:24] Production.INFO: ProcessCDR(1,14407502,1,1,2) [2025-02-05 11:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407502', 'tblTempUsageDetail_20' ) start [2025-02-05 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407502', 'tblTempUsageDetail_20' ) end [2025-02-05 11:49:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:49:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:49:29] Production.INFO: ==11463== Releasing lock... [2025-02-05 11:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:49:29] Production.INFO: 60.5 MB #Memory Used# [2025-02-05 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:50:06 [end_date_ymd] => 2025-02-05 11:50:06 [RateCDR] => 1 ) [2025-02-05 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:50:06' and `end` < '2025-02-05 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:50:25] Production.INFO: count ==4403 [2025-02-05 11:50:26] Production.ERROR: pbx CDR StartTime 2025-02-05 08:50:06 - End Time 2025-02-05 11:50:06 [2025-02-05 11:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407508', 'tblTempUsageDetail_20' ) start [2025-02-05 11:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407508', 'tblTempUsageDetail_20' ) end [2025-02-05 11:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407508', 'tblTempVendorCDR_20' ) start [2025-02-05 11:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407508', 'tblTempVendorCDR_20' ) end [2025-02-05 11:50:26] Production.INFO: ProcessCDR(1,14407508,1,1,2) [2025-02-05 11:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407508', 'tblTempUsageDetail_20' ) start [2025-02-05 11:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407508', 'tblTempUsageDetail_20' ) end [2025-02-05 11:50:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:50:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:50:31] Production.INFO: ==11595== Releasing lock... [2025-02-05 11:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:50:31] Production.INFO: 61 MB #Memory Used# [2025-02-05 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:51:05 [end_date_ymd] => 2025-02-05 11:51:05 [RateCDR] => 1 ) [2025-02-05 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:51:05' and `end` < '2025-02-05 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:51:21] Production.INFO: count ==4468 [2025-02-05 11:51:23] Production.ERROR: pbx CDR StartTime 2025-02-05 08:51:05 - End Time 2025-02-05 11:51:05 [2025-02-05 11:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407513', 'tblTempUsageDetail_20' ) start [2025-02-05 11:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407513', 'tblTempUsageDetail_20' ) end [2025-02-05 11:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407513', 'tblTempVendorCDR_20' ) start [2025-02-05 11:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407513', 'tblTempVendorCDR_20' ) end [2025-02-05 11:51:23] Production.INFO: ProcessCDR(1,14407513,1,1,2) [2025-02-05 11:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407513', 'tblTempUsageDetail_20' ) start [2025-02-05 11:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407513', 'tblTempUsageDetail_20' ) end [2025-02-05 11:51:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:51:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:51:28] Production.INFO: ==11677== Releasing lock... [2025-02-05 11:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:51:28] Production.INFO: 61.5 MB #Memory Used# [2025-02-05 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:52:05 [end_date_ymd] => 2025-02-05 11:52:05 [RateCDR] => 1 ) [2025-02-05 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:52:05' and `end` < '2025-02-05 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:52:26] Production.INFO: count ==4491 [2025-02-05 11:52:28] Production.ERROR: pbx CDR StartTime 2025-02-05 08:52:05 - End Time 2025-02-05 11:52:05 [2025-02-05 11:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407518', 'tblTempUsageDetail_20' ) start [2025-02-05 11:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407518', 'tblTempUsageDetail_20' ) end [2025-02-05 11:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407518', 'tblTempVendorCDR_20' ) start [2025-02-05 11:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407518', 'tblTempVendorCDR_20' ) end [2025-02-05 11:52:28] Production.INFO: ProcessCDR(1,14407518,1,1,2) [2025-02-05 11:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407518', 'tblTempUsageDetail_20' ) start [2025-02-05 11:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407518', 'tblTempUsageDetail_20' ) end [2025-02-05 11:52:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:52:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:52:33] Production.INFO: ==11758== Releasing lock... [2025-02-05 11:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:52:33] Production.INFO: 61.5 MB #Memory Used# [2025-02-05 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:53:05 [end_date_ymd] => 2025-02-05 11:53:05 [RateCDR] => 1 ) [2025-02-05 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:53:05' and `end` < '2025-02-05 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:53:24] Production.INFO: count ==4518 [2025-02-05 11:53:26] Production.ERROR: pbx CDR StartTime 2025-02-05 08:53:05 - End Time 2025-02-05 11:53:05 [2025-02-05 11:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407523', 'tblTempUsageDetail_20' ) start [2025-02-05 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407523', 'tblTempUsageDetail_20' ) end [2025-02-05 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407523', 'tblTempVendorCDR_20' ) start [2025-02-05 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407523', 'tblTempVendorCDR_20' ) end [2025-02-05 11:53:26] Production.INFO: ProcessCDR(1,14407523,1,1,2) [2025-02-05 11:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407523', 'tblTempUsageDetail_20' ) start [2025-02-05 11:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407523', 'tblTempUsageDetail_20' ) end [2025-02-05 11:53:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:53:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:53:31] Production.INFO: ==11845== Releasing lock... [2025-02-05 11:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:53:31] Production.INFO: 61.75 MB #Memory Used# [2025-02-05 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:54:05 [end_date_ymd] => 2025-02-05 11:54:05 [RateCDR] => 1 ) [2025-02-05 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:54:05' and `end` < '2025-02-05 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:54:21] Production.INFO: count ==4520 [2025-02-05 11:54:23] Production.ERROR: pbx CDR StartTime 2025-02-05 08:54:05 - End Time 2025-02-05 11:54:05 [2025-02-05 11:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407528', 'tblTempUsageDetail_20' ) start [2025-02-05 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407528', 'tblTempUsageDetail_20' ) end [2025-02-05 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407528', 'tblTempVendorCDR_20' ) start [2025-02-05 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407528', 'tblTempVendorCDR_20' ) end [2025-02-05 11:54:23] Production.INFO: ProcessCDR(1,14407528,1,1,2) [2025-02-05 11:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407528', 'tblTempUsageDetail_20' ) start [2025-02-05 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407528', 'tblTempUsageDetail_20' ) end [2025-02-05 11:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:54:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:54:28] Production.INFO: ==11925== Releasing lock... [2025-02-05 11:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:54:28] Production.INFO: 61.75 MB #Memory Used# [2025-02-05 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:55:05 [end_date_ymd] => 2025-02-05 11:55:05 [RateCDR] => 1 ) [2025-02-05 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:55:05' and `end` < '2025-02-05 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:55:19] Production.INFO: count ==4521 [2025-02-05 11:55:21] Production.ERROR: pbx CDR StartTime 2025-02-05 08:55:05 - End Time 2025-02-05 11:55:05 [2025-02-05 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407533', 'tblTempUsageDetail_20' ) start [2025-02-05 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407533', 'tblTempUsageDetail_20' ) end [2025-02-05 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407533', 'tblTempVendorCDR_20' ) start [2025-02-05 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407533', 'tblTempVendorCDR_20' ) end [2025-02-05 11:55:21] Production.INFO: ProcessCDR(1,14407533,1,1,2) [2025-02-05 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407533', 'tblTempUsageDetail_20' ) start [2025-02-05 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407533', 'tblTempUsageDetail_20' ) end [2025-02-05 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:55:26] Production.INFO: ==12009== Releasing lock... [2025-02-05 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:55:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-05 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:56:05 [end_date_ymd] => 2025-02-05 11:56:05 [RateCDR] => 1 ) [2025-02-05 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:56:05' and `end` < '2025-02-05 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:56:21] Production.INFO: count ==4551 [2025-02-05 11:56:23] Production.ERROR: pbx CDR StartTime 2025-02-05 08:56:05 - End Time 2025-02-05 11:56:05 [2025-02-05 11:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407538', 'tblTempUsageDetail_20' ) start [2025-02-05 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407538', 'tblTempUsageDetail_20' ) end [2025-02-05 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407538', 'tblTempVendorCDR_20' ) start [2025-02-05 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407538', 'tblTempVendorCDR_20' ) end [2025-02-05 11:56:23] Production.INFO: ProcessCDR(1,14407538,1,1,2) [2025-02-05 11:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407538', 'tblTempUsageDetail_20' ) start [2025-02-05 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407538', 'tblTempUsageDetail_20' ) end [2025-02-05 11:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:56:28] Production.INFO: ==12088== Releasing lock... [2025-02-05 11:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:56:28] Production.INFO: 62 MB #Memory Used# [2025-02-05 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:57:05 [end_date_ymd] => 2025-02-05 11:57:05 [RateCDR] => 1 ) [2025-02-05 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:57:05' and `end` < '2025-02-05 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:57:21] Production.INFO: count ==4550 [2025-02-05 11:57:22] Production.ERROR: pbx CDR StartTime 2025-02-05 08:57:05 - End Time 2025-02-05 11:57:05 [2025-02-05 11:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407543', 'tblTempUsageDetail_20' ) start [2025-02-05 11:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407543', 'tblTempUsageDetail_20' ) end [2025-02-05 11:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407543', 'tblTempVendorCDR_20' ) start [2025-02-05 11:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407543', 'tblTempVendorCDR_20' ) end [2025-02-05 11:57:23] Production.INFO: ProcessCDR(1,14407543,1,1,2) [2025-02-05 11:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407543', 'tblTempUsageDetail_20' ) start [2025-02-05 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407543', 'tblTempUsageDetail_20' ) end [2025-02-05 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:57:26] Production.INFO: ==12172== Releasing lock... [2025-02-05 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:57:26] Production.INFO: 62 MB #Memory Used# [2025-02-05 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:58:05 [end_date_ymd] => 2025-02-05 11:58:05 [RateCDR] => 1 ) [2025-02-05 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:58:05' and `end` < '2025-02-05 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:58:19] Production.INFO: count ==4550 [2025-02-05 11:58:21] Production.ERROR: pbx CDR StartTime 2025-02-05 08:58:05 - End Time 2025-02-05 11:58:05 [2025-02-05 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407548', 'tblTempUsageDetail_20' ) start [2025-02-05 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407548', 'tblTempUsageDetail_20' ) end [2025-02-05 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407548', 'tblTempVendorCDR_20' ) start [2025-02-05 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407548', 'tblTempVendorCDR_20' ) end [2025-02-05 11:58:21] Production.INFO: ProcessCDR(1,14407548,1,1,2) [2025-02-05 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407548', 'tblTempUsageDetail_20' ) start [2025-02-05 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407548', 'tblTempUsageDetail_20' ) end [2025-02-05 11:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:58:24] Production.INFO: ==12256== Releasing lock... [2025-02-05 11:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:58:24] Production.INFO: 62 MB #Memory Used# [2025-02-05 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 08:59:05 [end_date_ymd] => 2025-02-05 11:59:05 [RateCDR] => 1 ) [2025-02-05 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 08:59:05' and `end` < '2025-02-05 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 11:59:19] Production.INFO: count ==4567 [2025-02-05 11:59:20] Production.ERROR: pbx CDR StartTime 2025-02-05 08:59:05 - End Time 2025-02-05 11:59:05 [2025-02-05 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407553', 'tblTempUsageDetail_20' ) start [2025-02-05 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407553', 'tblTempUsageDetail_20' ) end [2025-02-05 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407553', 'tblTempVendorCDR_20' ) start [2025-02-05 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407553', 'tblTempVendorCDR_20' ) end [2025-02-05 11:59:21] Production.INFO: ProcessCDR(1,14407553,1,1,2) [2025-02-05 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407553', 'tblTempUsageDetail_20' ) start [2025-02-05 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407553', 'tblTempUsageDetail_20' ) end [2025-02-05 11:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 11:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 11:59:25] Production.INFO: ==12354== Releasing lock... [2025-02-05 11:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 11:59:25] Production.INFO: 62.25 MB #Memory Used# [2025-02-05 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:00:06 [end_date_ymd] => 2025-02-05 12:00:06 [RateCDR] => 1 ) [2025-02-05 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:00:06' and `end` < '2025-02-05 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:00:20] Production.INFO: count ==4578 [2025-02-05 12:00:22] Production.ERROR: pbx CDR StartTime 2025-02-05 09:00:06 - End Time 2025-02-05 12:00:06 [2025-02-05 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407559', 'tblTempUsageDetail_20' ) start [2025-02-05 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407559', 'tblTempUsageDetail_20' ) end [2025-02-05 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407559', 'tblTempVendorCDR_20' ) start [2025-02-05 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407559', 'tblTempVendorCDR_20' ) end [2025-02-05 12:00:22] Production.INFO: ProcessCDR(1,14407559,1,1,2) [2025-02-05 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407559', 'tblTempUsageDetail_20' ) start [2025-02-05 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407559', 'tblTempUsageDetail_20' ) end [2025-02-05 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:00:27] Production.INFO: ==12438== Releasing lock... [2025-02-05 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:00:27] Production.INFO: 62.25 MB #Memory Used# [2025-02-05 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:01:05 [end_date_ymd] => 2025-02-05 12:01:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 09:01:05' and `end` < '2025-02-05 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-02-05 12:01:22] Production.INFO: count ==4689 [2025-02-05 12:01:24] Production.ERROR: pbx CDR StartTime 2025-02-05 09:01:05 - End Time 2025-02-05 12:01:05 [2025-02-05 12:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407564', 'tblTempUsageDetail_20' ) start [2025-02-05 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407564', 'tblTempUsageDetail_20' ) end [2025-02-05 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407564', 'tblTempVendorCDR_20' ) start [2025-02-05 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407564', 'tblTempVendorCDR_20' ) end [2025-02-05 12:01:24] Production.INFO: ProcessCDR(1,14407564,1,1,2) [2025-02-05 12:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407564', 'tblTempUsageDetail_20' ) start [2025-02-05 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407564', 'tblTempUsageDetail_20' ) end [2025-02-05 12:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:01:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:01:29] Production.INFO: ==12533== Releasing lock... [2025-02-05 12:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:01:29] Production.INFO: 63 MB #Memory Used# [2025-02-05 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:02:05 [end_date_ymd] => 2025-02-05 12:02:05 [RateCDR] => 1 ) [2025-02-05 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:02:05' and `end` < '2025-02-05 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:02:21] Production.INFO: count ==4727 [2025-02-05 12:02:23] Production.ERROR: pbx CDR StartTime 2025-02-05 09:02:05 - End Time 2025-02-05 12:02:05 [2025-02-05 12:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407569', 'tblTempUsageDetail_20' ) start [2025-02-05 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407569', 'tblTempUsageDetail_20' ) end [2025-02-05 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407569', 'tblTempVendorCDR_20' ) start [2025-02-05 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407569', 'tblTempVendorCDR_20' ) end [2025-02-05 12:02:23] Production.INFO: ProcessCDR(1,14407569,1,1,2) [2025-02-05 12:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407569', 'tblTempUsageDetail_20' ) start [2025-02-05 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407569', 'tblTempUsageDetail_20' ) end [2025-02-05 12:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:02:28] Production.INFO: ==12610== Releasing lock... [2025-02-05 12:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:02:28] Production.INFO: 63.25 MB #Memory Used# [2025-02-05 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:03:05 [end_date_ymd] => 2025-02-05 12:03:05 [RateCDR] => 1 ) [2025-02-05 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:03:05' and `end` < '2025-02-05 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:03:25] Production.INFO: count ==4765 [2025-02-05 12:03:26] Production.ERROR: pbx CDR StartTime 2025-02-05 09:03:05 - End Time 2025-02-05 12:03:05 [2025-02-05 12:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407574', 'tblTempUsageDetail_20' ) start [2025-02-05 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407574', 'tblTempUsageDetail_20' ) end [2025-02-05 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407574', 'tblTempVendorCDR_20' ) start [2025-02-05 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407574', 'tblTempVendorCDR_20' ) end [2025-02-05 12:03:26] Production.INFO: ProcessCDR(1,14407574,1,1,2) [2025-02-05 12:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407574', 'tblTempUsageDetail_20' ) start [2025-02-05 12:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407574', 'tblTempUsageDetail_20' ) end [2025-02-05 12:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:03:31] Production.INFO: ==12691== Releasing lock... [2025-02-05 12:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:03:31] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:04:05 [end_date_ymd] => 2025-02-05 12:04:05 [RateCDR] => 1 ) [2025-02-05 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:04:05' and `end` < '2025-02-05 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:04:29] Production.INFO: count ==4765 [2025-02-05 12:04:31] Production.ERROR: pbx CDR StartTime 2025-02-05 09:04:05 - End Time 2025-02-05 12:04:05 [2025-02-05 12:04:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407579', 'tblTempUsageDetail_20' ) start [2025-02-05 12:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407579', 'tblTempUsageDetail_20' ) end [2025-02-05 12:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407579', 'tblTempVendorCDR_20' ) start [2025-02-05 12:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407579', 'tblTempVendorCDR_20' ) end [2025-02-05 12:04:31] Production.INFO: ProcessCDR(1,14407579,1,1,2) [2025-02-05 12:04:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407579', 'tblTempUsageDetail_20' ) start [2025-02-05 12:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407579', 'tblTempUsageDetail_20' ) end [2025-02-05 12:04:36] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:04:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:04:36] Production.INFO: ==12771== Releasing lock... [2025-02-05 12:04:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:04:36] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:05:05 [end_date_ymd] => 2025-02-05 12:05:05 [RateCDR] => 1 ) [2025-02-05 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:05:05' and `end` < '2025-02-05 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:05:28] Production.INFO: count ==4771 [2025-02-05 12:05:30] Production.ERROR: pbx CDR StartTime 2025-02-05 09:05:05 - End Time 2025-02-05 12:05:05 [2025-02-05 12:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407584', 'tblTempUsageDetail_20' ) start [2025-02-05 12:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407584', 'tblTempUsageDetail_20' ) end [2025-02-05 12:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407584', 'tblTempVendorCDR_20' ) start [2025-02-05 12:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407584', 'tblTempVendorCDR_20' ) end [2025-02-05 12:05:30] Production.INFO: ProcessCDR(1,14407584,1,1,2) [2025-02-05 12:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407584', 'tblTempUsageDetail_20' ) start [2025-02-05 12:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407584', 'tblTempUsageDetail_20' ) end [2025-02-05 12:05:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:05:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:05:35] Production.INFO: ==12854== Releasing lock... [2025-02-05 12:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:05:35] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:06:05 [end_date_ymd] => 2025-02-05 12:06:05 [RateCDR] => 1 ) [2025-02-05 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:06:05' and `end` < '2025-02-05 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:06:21] Production.INFO: count ==4756 [2025-02-05 12:06:23] Production.ERROR: pbx CDR StartTime 2025-02-05 09:06:05 - End Time 2025-02-05 12:06:05 [2025-02-05 12:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407589', 'tblTempUsageDetail_20' ) start [2025-02-05 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407589', 'tblTempUsageDetail_20' ) end [2025-02-05 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407589', 'tblTempVendorCDR_20' ) start [2025-02-05 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407589', 'tblTempVendorCDR_20' ) end [2025-02-05 12:06:23] Production.INFO: ProcessCDR(1,14407589,1,1,2) [2025-02-05 12:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407589', 'tblTempUsageDetail_20' ) start [2025-02-05 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407589', 'tblTempUsageDetail_20' ) end [2025-02-05 12:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:06:28] Production.INFO: ==12995== Releasing lock... [2025-02-05 12:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:06:28] Production.INFO: 63.5 MB #Memory Used# [2025-02-05 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:07:06 [end_date_ymd] => 2025-02-05 12:07:06 [RateCDR] => 1 ) [2025-02-05 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:07:06' and `end` < '2025-02-05 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:07:23] Production.INFO: count ==4764 [2025-02-05 12:07:25] Production.ERROR: pbx CDR StartTime 2025-02-05 09:07:06 - End Time 2025-02-05 12:07:06 [2025-02-05 12:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407594', 'tblTempUsageDetail_20' ) start [2025-02-05 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407594', 'tblTempUsageDetail_20' ) end [2025-02-05 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407594', 'tblTempVendorCDR_20' ) start [2025-02-05 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407594', 'tblTempVendorCDR_20' ) end [2025-02-05 12:07:25] Production.INFO: ProcessCDR(1,14407594,1,1,2) [2025-02-05 12:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407594', 'tblTempUsageDetail_20' ) start [2025-02-05 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407594', 'tblTempUsageDetail_20' ) end [2025-02-05 12:07:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:07:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:07:29] Production.INFO: ==13079== Releasing lock... [2025-02-05 12:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:07:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:08:05 [end_date_ymd] => 2025-02-05 12:08:05 [RateCDR] => 1 ) [2025-02-05 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:08:05' and `end` < '2025-02-05 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:08:21] Production.INFO: count ==4768 [2025-02-05 12:08:23] Production.ERROR: pbx CDR StartTime 2025-02-05 09:08:05 - End Time 2025-02-05 12:08:05 [2025-02-05 12:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407599', 'tblTempUsageDetail_20' ) start [2025-02-05 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407599', 'tblTempUsageDetail_20' ) end [2025-02-05 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407599', 'tblTempVendorCDR_20' ) start [2025-02-05 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407599', 'tblTempVendorCDR_20' ) end [2025-02-05 12:08:23] Production.INFO: ProcessCDR(1,14407599,1,1,2) [2025-02-05 12:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407599', 'tblTempUsageDetail_20' ) start [2025-02-05 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407599', 'tblTempUsageDetail_20' ) end [2025-02-05 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:08:27] Production.INFO: ==13161== Releasing lock... [2025-02-05 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:08:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:09:05 [end_date_ymd] => 2025-02-05 12:09:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 09:09:05' and `end` < '2025-02-05 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-02-05 12:09:25] Production.INFO: count ==4788 [2025-02-05 12:09:27] Production.ERROR: pbx CDR StartTime 2025-02-05 09:09:05 - End Time 2025-02-05 12:09:05 [2025-02-05 12:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407604', 'tblTempUsageDetail_20' ) start [2025-02-05 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407604', 'tblTempUsageDetail_20' ) end [2025-02-05 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407604', 'tblTempVendorCDR_20' ) start [2025-02-05 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407604', 'tblTempVendorCDR_20' ) end [2025-02-05 12:09:27] Production.INFO: ProcessCDR(1,14407604,1,1,2) [2025-02-05 12:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407604', 'tblTempUsageDetail_20' ) start [2025-02-05 12:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407604', 'tblTempUsageDetail_20' ) end [2025-02-05 12:09:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:09:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:09:32] Production.INFO: ==13240== Releasing lock... [2025-02-05 12:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:09:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:10:05 [end_date_ymd] => 2025-02-05 12:10:05 [RateCDR] => 1 ) [2025-02-05 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:10:05' and `end` < '2025-02-05 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:10:28] Production.INFO: count ==4787 [2025-02-05 12:10:30] Production.ERROR: pbx CDR StartTime 2025-02-05 09:10:05 - End Time 2025-02-05 12:10:05 [2025-02-05 12:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407609', 'tblTempUsageDetail_20' ) start [2025-02-05 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407609', 'tblTempUsageDetail_20' ) end [2025-02-05 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407609', 'tblTempVendorCDR_20' ) start [2025-02-05 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407609', 'tblTempVendorCDR_20' ) end [2025-02-05 12:10:30] Production.INFO: ProcessCDR(1,14407609,1,1,2) [2025-02-05 12:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:10:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407609', 'tblTempUsageDetail_20' ) start [2025-02-05 12:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407609', 'tblTempUsageDetail_20' ) end [2025-02-05 12:10:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:10:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:10:35] Production.INFO: ==13329== Releasing lock... [2025-02-05 12:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:10:35] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:11:05 [end_date_ymd] => 2025-02-05 12:11:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 09:11:05' and `end` < '2025-02-05 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-02-05 12:11:24] Production.INFO: count ==4793 [2025-02-05 12:11:26] Production.ERROR: pbx CDR StartTime 2025-02-05 09:11:05 - End Time 2025-02-05 12:11:05 [2025-02-05 12:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407615', 'tblTempUsageDetail_20' ) start [2025-02-05 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407615', 'tblTempUsageDetail_20' ) end [2025-02-05 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407615', 'tblTempVendorCDR_20' ) start [2025-02-05 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407615', 'tblTempVendorCDR_20' ) end [2025-02-05 12:11:26] Production.INFO: ProcessCDR(1,14407615,1,1,2) [2025-02-05 12:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407615', 'tblTempUsageDetail_20' ) start [2025-02-05 12:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407615', 'tblTempUsageDetail_20' ) end [2025-02-05 12:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:11:30] Production.INFO: ==13410== Releasing lock... [2025-02-05 12:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:11:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:12:04 [end_date_ymd] => 2025-02-05 12:12:04 [RateCDR] => 1 ) [2025-02-05 12: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-02-05 09:12:04' and `end` < '2025-02-05 12: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-02-05 12:12:19] Production.INFO: count ==4776 [2025-02-05 12:12:21] Production.ERROR: pbx CDR StartTime 2025-02-05 09:12:04 - End Time 2025-02-05 12:12:04 [2025-02-05 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407620', 'tblTempUsageDetail_20' ) start [2025-02-05 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407620', 'tblTempUsageDetail_20' ) end [2025-02-05 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407620', 'tblTempVendorCDR_20' ) start [2025-02-05 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407620', 'tblTempVendorCDR_20' ) end [2025-02-05 12:12:21] Production.INFO: ProcessCDR(1,14407620,1,1,2) [2025-02-05 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407620', 'tblTempUsageDetail_20' ) start [2025-02-05 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407620', 'tblTempUsageDetail_20' ) end [2025-02-05 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:12:26] Production.INFO: ==13489== Releasing lock... [2025-02-05 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:12:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:13:06 [end_date_ymd] => 2025-02-05 12:13:06 [RateCDR] => 1 ) [2025-02-05 12:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:13:06' and `end` < '2025-02-05 12:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:13:23] Production.INFO: count ==4756 [2025-02-05 12:13:25] Production.ERROR: pbx CDR StartTime 2025-02-05 09:13:06 - End Time 2025-02-05 12:13:06 [2025-02-05 12:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407625', 'tblTempUsageDetail_20' ) start [2025-02-05 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407625', 'tblTempUsageDetail_20' ) end [2025-02-05 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407625', 'tblTempVendorCDR_20' ) start [2025-02-05 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407625', 'tblTempVendorCDR_20' ) end [2025-02-05 12:13:25] Production.INFO: ProcessCDR(1,14407625,1,1,2) [2025-02-05 12:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407625', 'tblTempUsageDetail_20' ) start [2025-02-05 12:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407625', 'tblTempUsageDetail_20' ) end [2025-02-05 12:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:13:30] Production.INFO: ==13572== Releasing lock... [2025-02-05 12:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:13:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-05 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:14:05 [end_date_ymd] => 2025-02-05 12:14:05 [RateCDR] => 1 ) [2025-02-05 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:14:05' and `end` < '2025-02-05 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:14:26] Production.INFO: count ==4762 [2025-02-05 12:14:27] Production.ERROR: pbx CDR StartTime 2025-02-05 09:14:05 - End Time 2025-02-05 12:14:05 [2025-02-05 12:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407630', 'tblTempUsageDetail_20' ) start [2025-02-05 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407630', 'tblTempUsageDetail_20' ) end [2025-02-05 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407630', 'tblTempVendorCDR_20' ) start [2025-02-05 12:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407630', 'tblTempVendorCDR_20' ) end [2025-02-05 12:14:28] Production.INFO: ProcessCDR(1,14407630,1,1,2) [2025-02-05 12:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407630', 'tblTempUsageDetail_20' ) start [2025-02-05 12:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407630', 'tblTempUsageDetail_20' ) end [2025-02-05 12:14:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:14:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:14:32] Production.INFO: ==13651== Releasing lock... [2025-02-05 12:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:14:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:15:05 [end_date_ymd] => 2025-02-05 12:15:05 [RateCDR] => 1 ) [2025-02-05 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:15:05' and `end` < '2025-02-05 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:15:23] Production.INFO: count ==4759 [2025-02-05 12:15:25] Production.ERROR: pbx CDR StartTime 2025-02-05 09:15:05 - End Time 2025-02-05 12:15:05 [2025-02-05 12:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407635', 'tblTempUsageDetail_20' ) start [2025-02-05 12:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407635', 'tblTempUsageDetail_20' ) end [2025-02-05 12:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407635', 'tblTempVendorCDR_20' ) start [2025-02-05 12:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407635', 'tblTempVendorCDR_20' ) end [2025-02-05 12:15:25] Production.INFO: ProcessCDR(1,14407635,1,1,2) [2025-02-05 12:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407635', 'tblTempUsageDetail_20' ) start [2025-02-05 12:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407635', 'tblTempUsageDetail_20' ) end [2025-02-05 12:15:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:15:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:15:30] Production.INFO: ==13740== Releasing lock... [2025-02-05 12:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:15:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-05 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:16:05 [end_date_ymd] => 2025-02-05 12:16:05 [RateCDR] => 1 ) [2025-02-05 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:16:05' and `end` < '2025-02-05 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:16:23] Production.INFO: count ==4760 [2025-02-05 12:16:25] Production.ERROR: pbx CDR StartTime 2025-02-05 09:16:05 - End Time 2025-02-05 12:16:05 [2025-02-05 12:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407640', 'tblTempUsageDetail_20' ) start [2025-02-05 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407640', 'tblTempUsageDetail_20' ) end [2025-02-05 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407640', 'tblTempVendorCDR_20' ) start [2025-02-05 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407640', 'tblTempVendorCDR_20' ) end [2025-02-05 12:16:25] Production.INFO: ProcessCDR(1,14407640,1,1,2) [2025-02-05 12:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407640', 'tblTempUsageDetail_20' ) start [2025-02-05 12:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407640', 'tblTempUsageDetail_20' ) end [2025-02-05 12:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:16:30] Production.INFO: ==13826== Releasing lock... [2025-02-05 12:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:16:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-05 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:17:05 [end_date_ymd] => 2025-02-05 12:17:05 [RateCDR] => 1 ) [2025-02-05 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:17:05' and `end` < '2025-02-05 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:17:23] Production.INFO: count ==4760 [2025-02-05 12:17:25] Production.ERROR: pbx CDR StartTime 2025-02-05 09:17:05 - End Time 2025-02-05 12:17:05 [2025-02-05 12:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407645', 'tblTempUsageDetail_20' ) start [2025-02-05 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407645', 'tblTempUsageDetail_20' ) end [2025-02-05 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407645', 'tblTempVendorCDR_20' ) start [2025-02-05 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407645', 'tblTempVendorCDR_20' ) end [2025-02-05 12:17:25] Production.INFO: ProcessCDR(1,14407645,1,1,2) [2025-02-05 12:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407645', 'tblTempUsageDetail_20' ) start [2025-02-05 12:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407645', 'tblTempUsageDetail_20' ) end [2025-02-05 12:17:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:17:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:17:30] Production.INFO: ==13909== Releasing lock... [2025-02-05 12:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:17:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-05 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:18:06 [end_date_ymd] => 2025-02-05 12:18:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 09:18:06' and `end` < '2025-02-05 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-02-05 12:18:22] Production.INFO: count ==4768 [2025-02-05 12:18:24] Production.ERROR: pbx CDR StartTime 2025-02-05 09:18:06 - End Time 2025-02-05 12:18:06 [2025-02-05 12:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407650', 'tblTempUsageDetail_20' ) start [2025-02-05 12:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407650', 'tblTempUsageDetail_20' ) end [2025-02-05 12:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407650', 'tblTempVendorCDR_20' ) start [2025-02-05 12:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407650', 'tblTempVendorCDR_20' ) end [2025-02-05 12:18:24] Production.INFO: ProcessCDR(1,14407650,1,1,2) [2025-02-05 12:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407650', 'tblTempUsageDetail_20' ) start [2025-02-05 12:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407650', 'tblTempUsageDetail_20' ) end [2025-02-05 12:18:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:18:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:18:29] Production.INFO: ==13998== Releasing lock... [2025-02-05 12:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:18:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:19:04 [end_date_ymd] => 2025-02-05 12:19:04 [RateCDR] => 1 ) [2025-02-05 12:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:19:04' and `end` < '2025-02-05 12:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:19:21] Production.INFO: count ==4775 [2025-02-05 12:19:23] Production.ERROR: pbx CDR StartTime 2025-02-05 09:19:04 - End Time 2025-02-05 12:19:04 [2025-02-05 12:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407655', 'tblTempUsageDetail_20' ) start [2025-02-05 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407655', 'tblTempUsageDetail_20' ) end [2025-02-05 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407655', 'tblTempVendorCDR_20' ) start [2025-02-05 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407655', 'tblTempVendorCDR_20' ) end [2025-02-05 12:19:23] Production.INFO: ProcessCDR(1,14407655,1,1,2) [2025-02-05 12:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407655', 'tblTempUsageDetail_20' ) start [2025-02-05 12:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407655', 'tblTempUsageDetail_20' ) end [2025-02-05 12:19:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:19:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:19:28] Production.INFO: ==14076== Releasing lock... [2025-02-05 12:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:19:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:20:06 [end_date_ymd] => 2025-02-05 12:20:06 [RateCDR] => 1 ) [2025-02-05 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:20:06' and `end` < '2025-02-05 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:20:23] Production.INFO: count ==4771 [2025-02-05 12:20:25] Production.ERROR: pbx CDR StartTime 2025-02-05 09:20:06 - End Time 2025-02-05 12:20:06 [2025-02-05 12:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407660', 'tblTempUsageDetail_20' ) start [2025-02-05 12:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407660', 'tblTempUsageDetail_20' ) end [2025-02-05 12:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407660', 'tblTempVendorCDR_20' ) start [2025-02-05 12:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407660', 'tblTempVendorCDR_20' ) end [2025-02-05 12:20:26] Production.INFO: ProcessCDR(1,14407660,1,1,2) [2025-02-05 12:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407660', 'tblTempUsageDetail_20' ) start [2025-02-05 12:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407660', 'tblTempUsageDetail_20' ) end [2025-02-05 12:20:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:20:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:20:30] Production.INFO: ==14157== Releasing lock... [2025-02-05 12:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:20:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:21:05 [end_date_ymd] => 2025-02-05 12:21:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 09:21:05' and `end` < '2025-02-05 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-02-05 12:21:21] Production.INFO: count ==4782 [2025-02-05 12:21:23] Production.ERROR: pbx CDR StartTime 2025-02-05 09:21:05 - End Time 2025-02-05 12:21:05 [2025-02-05 12:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407666', 'tblTempUsageDetail_20' ) start [2025-02-05 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407666', 'tblTempUsageDetail_20' ) end [2025-02-05 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407666', 'tblTempVendorCDR_20' ) start [2025-02-05 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407666', 'tblTempVendorCDR_20' ) end [2025-02-05 12:21:23] Production.INFO: ProcessCDR(1,14407666,1,1,2) [2025-02-05 12:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407666', 'tblTempUsageDetail_20' ) start [2025-02-05 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407666', 'tblTempUsageDetail_20' ) end [2025-02-05 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:21:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:21:28] Production.INFO: ==14280== Releasing lock... [2025-02-05 12:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:21:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:22:05 [end_date_ymd] => 2025-02-05 12:22:05 [RateCDR] => 1 ) [2025-02-05 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:22:05' and `end` < '2025-02-05 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:22:23] Production.INFO: count ==4796 [2025-02-05 12:22:24] Production.ERROR: pbx CDR StartTime 2025-02-05 09:22:05 - End Time 2025-02-05 12:22:05 [2025-02-05 12:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407671', 'tblTempUsageDetail_20' ) start [2025-02-05 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407671', 'tblTempUsageDetail_20' ) end [2025-02-05 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407671', 'tblTempVendorCDR_20' ) start [2025-02-05 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407671', 'tblTempVendorCDR_20' ) end [2025-02-05 12:22:25] Production.INFO: ProcessCDR(1,14407671,1,1,2) [2025-02-05 12:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407671', 'tblTempUsageDetail_20' ) start [2025-02-05 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407671', 'tblTempUsageDetail_20' ) end [2025-02-05 12:22:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:22:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:22:29] Production.INFO: ==14355== Releasing lock... [2025-02-05 12:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:22:29] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:23:05 [end_date_ymd] => 2025-02-05 12:23:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 09:23:05' and `end` < '2025-02-05 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-02-05 12:23:23] Production.INFO: count ==4795 [2025-02-05 12:23:25] Production.ERROR: pbx CDR StartTime 2025-02-05 09:23:05 - End Time 2025-02-05 12:23:05 [2025-02-05 12:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407676', 'tblTempUsageDetail_20' ) start [2025-02-05 12:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407676', 'tblTempUsageDetail_20' ) end [2025-02-05 12:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407676', 'tblTempVendorCDR_20' ) start [2025-02-05 12:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407676', 'tblTempVendorCDR_20' ) end [2025-02-05 12:23:25] Production.INFO: ProcessCDR(1,14407676,1,1,2) [2025-02-05 12:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407676', 'tblTempUsageDetail_20' ) start [2025-02-05 12:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407676', 'tblTempUsageDetail_20' ) end [2025-02-05 12:23:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:23:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:23:30] Production.INFO: ==14458== Releasing lock... [2025-02-05 12:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:23:30] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:24:05 [end_date_ymd] => 2025-02-05 12:24:05 [RateCDR] => 1 ) [2025-02-05 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:24:05' and `end` < '2025-02-05 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:24:21] Production.INFO: count ==4777 [2025-02-05 12:24:23] Production.ERROR: pbx CDR StartTime 2025-02-05 09:24:05 - End Time 2025-02-05 12:24:05 [2025-02-05 12:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407681', 'tblTempUsageDetail_20' ) start [2025-02-05 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407681', 'tblTempUsageDetail_20' ) end [2025-02-05 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407681', 'tblTempVendorCDR_20' ) start [2025-02-05 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407681', 'tblTempVendorCDR_20' ) end [2025-02-05 12:24:23] Production.INFO: ProcessCDR(1,14407681,1,1,2) [2025-02-05 12:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407681', 'tblTempUsageDetail_20' ) start [2025-02-05 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407681', 'tblTempUsageDetail_20' ) end [2025-02-05 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:24:27] Production.INFO: ==14549== Releasing lock... [2025-02-05 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:24:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:25:05 [end_date_ymd] => 2025-02-05 12:25:05 [RateCDR] => 1 ) [2025-02-05 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:25:05' and `end` < '2025-02-05 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:25:19] Production.INFO: count ==4779 [2025-02-05 12:25:21] Production.ERROR: pbx CDR StartTime 2025-02-05 09:25:05 - End Time 2025-02-05 12:25:05 [2025-02-05 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407686', 'tblTempUsageDetail_20' ) start [2025-02-05 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407686', 'tblTempUsageDetail_20' ) end [2025-02-05 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407686', 'tblTempVendorCDR_20' ) start [2025-02-05 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407686', 'tblTempVendorCDR_20' ) end [2025-02-05 12:25:21] Production.INFO: ProcessCDR(1,14407686,1,1,2) [2025-02-05 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407686', 'tblTempUsageDetail_20' ) start [2025-02-05 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407686', 'tblTempUsageDetail_20' ) end [2025-02-05 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:25:26] Production.INFO: ==14628== Releasing lock... [2025-02-05 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:25:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:26:06 [end_date_ymd] => 2025-02-05 12:26:06 [RateCDR] => 1 ) [2025-02-05 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:26:06' and `end` < '2025-02-05 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:26:26] Production.INFO: count ==4791 [2025-02-05 12:26:28] Production.ERROR: pbx CDR StartTime 2025-02-05 09:26:06 - End Time 2025-02-05 12:26:06 [2025-02-05 12:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407691', 'tblTempUsageDetail_20' ) start [2025-02-05 12:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407691', 'tblTempUsageDetail_20' ) end [2025-02-05 12:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407691', 'tblTempVendorCDR_20' ) start [2025-02-05 12:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407691', 'tblTempVendorCDR_20' ) end [2025-02-05 12:26:28] Production.INFO: ProcessCDR(1,14407691,1,1,2) [2025-02-05 12:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407691', 'tblTempUsageDetail_20' ) start [2025-02-05 12:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407691', 'tblTempUsageDetail_20' ) end [2025-02-05 12:26:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:26:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:26:33] Production.INFO: ==14705== Releasing lock... [2025-02-05 12:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:26:33] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:27:05 [end_date_ymd] => 2025-02-05 12:27:05 [RateCDR] => 1 ) [2025-02-05 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:27:05' and `end` < '2025-02-05 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:27:18] Production.INFO: count ==4803 [2025-02-05 12:27:20] Production.ERROR: pbx CDR StartTime 2025-02-05 09:27:05 - End Time 2025-02-05 12:27:05 [2025-02-05 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407696', 'tblTempUsageDetail_20' ) start [2025-02-05 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407696', 'tblTempUsageDetail_20' ) end [2025-02-05 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407696', 'tblTempVendorCDR_20' ) start [2025-02-05 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407696', 'tblTempVendorCDR_20' ) end [2025-02-05 12:27:21] Production.INFO: ProcessCDR(1,14407696,1,1,2) [2025-02-05 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407696', 'tblTempUsageDetail_20' ) start [2025-02-05 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407696', 'tblTempUsageDetail_20' ) end [2025-02-05 12:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:27:25] Production.INFO: ==14781== Releasing lock... [2025-02-05 12:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:27:25] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:28:06 [end_date_ymd] => 2025-02-05 12:28:06 [RateCDR] => 1 ) [2025-02-05 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:28:06' and `end` < '2025-02-05 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:28:28] Production.INFO: count ==4807 [2025-02-05 12:28:30] Production.ERROR: pbx CDR StartTime 2025-02-05 09:28:06 - End Time 2025-02-05 12:28:06 [2025-02-05 12:28:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407701', 'tblTempUsageDetail_20' ) start [2025-02-05 12:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407701', 'tblTempUsageDetail_20' ) end [2025-02-05 12:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407701', 'tblTempVendorCDR_20' ) start [2025-02-05 12:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407701', 'tblTempVendorCDR_20' ) end [2025-02-05 12:28:31] Production.INFO: ProcessCDR(1,14407701,1,1,2) [2025-02-05 12:28:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:28:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:28:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:28:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407701', 'tblTempUsageDetail_20' ) start [2025-02-05 12:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407701', 'tblTempUsageDetail_20' ) end [2025-02-05 12:28:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:28:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:28:35] Production.INFO: ==14856== Releasing lock... [2025-02-05 12:28:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:28:35] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:29:05 [end_date_ymd] => 2025-02-05 12:29:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 09:29:05' and `end` < '2025-02-05 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-02-05 12:29:24] Production.INFO: count ==4825 [2025-02-05 12:29:26] Production.ERROR: pbx CDR StartTime 2025-02-05 09:29:05 - End Time 2025-02-05 12:29:05 [2025-02-05 12:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407706', 'tblTempUsageDetail_20' ) start [2025-02-05 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407706', 'tblTempUsageDetail_20' ) end [2025-02-05 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407706', 'tblTempVendorCDR_20' ) start [2025-02-05 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407706', 'tblTempVendorCDR_20' ) end [2025-02-05 12:29:26] Production.INFO: ProcessCDR(1,14407706,1,1,2) [2025-02-05 12:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407706', 'tblTempUsageDetail_20' ) start [2025-02-05 12:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407706', 'tblTempUsageDetail_20' ) end [2025-02-05 12:29:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:29:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:29:31] Production.INFO: ==14933== Releasing lock... [2025-02-05 12:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:29:31] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:30:06 [end_date_ymd] => 2025-02-05 12:30:06 [RateCDR] => 1 ) [2025-02-05 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:30:06' and `end` < '2025-02-05 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:30:25] Production.INFO: count ==4829 [2025-02-05 12:30:27] Production.ERROR: pbx CDR StartTime 2025-02-05 09:30:06 - End Time 2025-02-05 12:30:06 [2025-02-05 12:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407711', 'tblTempUsageDetail_20' ) start [2025-02-05 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407711', 'tblTempUsageDetail_20' ) end [2025-02-05 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407711', 'tblTempVendorCDR_20' ) start [2025-02-05 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407711', 'tblTempVendorCDR_20' ) end [2025-02-05 12:30:28] Production.INFO: ProcessCDR(1,14407711,1,1,2) [2025-02-05 12:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407711', 'tblTempUsageDetail_20' ) start [2025-02-05 12:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407711', 'tblTempUsageDetail_20' ) end [2025-02-05 12:30:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:30:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:30:32] Production.INFO: ==15016== Releasing lock... [2025-02-05 12:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:30:32] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:31:05 [end_date_ymd] => 2025-02-05 12:31:05 [RateCDR] => 1 ) [2025-02-05 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:31:05' and `end` < '2025-02-05 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:31:21] Production.INFO: count ==4833 [2025-02-05 12:31:23] Production.ERROR: pbx CDR StartTime 2025-02-05 09:31:05 - End Time 2025-02-05 12:31:05 [2025-02-05 12:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407717', 'tblTempUsageDetail_20' ) start [2025-02-05 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407717', 'tblTempUsageDetail_20' ) end [2025-02-05 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407717', 'tblTempVendorCDR_20' ) start [2025-02-05 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407717', 'tblTempVendorCDR_20' ) end [2025-02-05 12:31:23] Production.INFO: ProcessCDR(1,14407717,1,1,2) [2025-02-05 12:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407717', 'tblTempUsageDetail_20' ) start [2025-02-05 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407717', 'tblTempUsageDetail_20' ) end [2025-02-05 12:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:31:28] Production.INFO: ==15093== Releasing lock... [2025-02-05 12:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:31:28] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:32:05 [end_date_ymd] => 2025-02-05 12:32:05 [RateCDR] => 1 ) [2025-02-05 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:32:05' and `end` < '2025-02-05 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:32:23] Production.INFO: count ==4863 [2025-02-05 12:32:25] Production.ERROR: pbx CDR StartTime 2025-02-05 09:32:05 - End Time 2025-02-05 12:32:05 [2025-02-05 12:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407722', 'tblTempUsageDetail_20' ) start [2025-02-05 12:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407722', 'tblTempUsageDetail_20' ) end [2025-02-05 12:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407722', 'tblTempVendorCDR_20' ) start [2025-02-05 12:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407722', 'tblTempVendorCDR_20' ) end [2025-02-05 12:32:25] Production.INFO: ProcessCDR(1,14407722,1,1,2) [2025-02-05 12:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407722', 'tblTempUsageDetail_20' ) start [2025-02-05 12:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407722', 'tblTempUsageDetail_20' ) end [2025-02-05 12:32:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:32:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:32:30] Production.INFO: ==15168== Releasing lock... [2025-02-05 12:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:32:30] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 12:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:33:04 [end_date_ymd] => 2025-02-05 12:33:04 [RateCDR] => 1 ) [2025-02-05 12:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:33:04' and `end` < '2025-02-05 12:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:33:23] Production.INFO: count ==4874 [2025-02-05 12:33:25] Production.ERROR: pbx CDR StartTime 2025-02-05 09:33:04 - End Time 2025-02-05 12:33:04 [2025-02-05 12:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407727', 'tblTempUsageDetail_20' ) start [2025-02-05 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407727', 'tblTempUsageDetail_20' ) end [2025-02-05 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407727', 'tblTempVendorCDR_20' ) start [2025-02-05 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407727', 'tblTempVendorCDR_20' ) end [2025-02-05 12:33:25] Production.INFO: ProcessCDR(1,14407727,1,1,2) [2025-02-05 12:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407727', 'tblTempUsageDetail_20' ) start [2025-02-05 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407727', 'tblTempUsageDetail_20' ) end [2025-02-05 12:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:33:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:33:29] Production.INFO: ==15244== Releasing lock... [2025-02-05 12:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:33:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:34:05 [end_date_ymd] => 2025-02-05 12:34:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 09:34:05' and `end` < '2025-02-05 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-02-05 12:34:22] Production.INFO: count ==4877 [2025-02-05 12:34:24] Production.ERROR: pbx CDR StartTime 2025-02-05 09:34:05 - End Time 2025-02-05 12:34:05 [2025-02-05 12:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407732', 'tblTempUsageDetail_20' ) start [2025-02-05 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407732', 'tblTempUsageDetail_20' ) end [2025-02-05 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407732', 'tblTempVendorCDR_20' ) start [2025-02-05 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407732', 'tblTempVendorCDR_20' ) end [2025-02-05 12:34:24] Production.INFO: ProcessCDR(1,14407732,1,1,2) [2025-02-05 12:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407732', 'tblTempUsageDetail_20' ) start [2025-02-05 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407732', 'tblTempUsageDetail_20' ) end [2025-02-05 12:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:34:29] Production.INFO: ==15355== Releasing lock... [2025-02-05 12:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:34:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:35:06 [end_date_ymd] => 2025-02-05 12:35:06 [RateCDR] => 1 ) [2025-02-05 12:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:35:06' and `end` < '2025-02-05 12:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:35:19] Production.INFO: count ==4871 [2025-02-05 12:35:21] Production.ERROR: pbx CDR StartTime 2025-02-05 09:35:06 - End Time 2025-02-05 12:35:06 [2025-02-05 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407737', 'tblTempUsageDetail_20' ) start [2025-02-05 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407737', 'tblTempUsageDetail_20' ) end [2025-02-05 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407737', 'tblTempVendorCDR_20' ) start [2025-02-05 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407737', 'tblTempVendorCDR_20' ) end [2025-02-05 12:35:21] Production.INFO: ProcessCDR(1,14407737,1,1,2) [2025-02-05 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407737', 'tblTempUsageDetail_20' ) start [2025-02-05 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407737', 'tblTempUsageDetail_20' ) end [2025-02-05 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:35:26] Production.INFO: ==15475== Releasing lock... [2025-02-05 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:35:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:36:05 [end_date_ymd] => 2025-02-05 12:36:05 [RateCDR] => 1 ) [2025-02-05 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:36:05' and `end` < '2025-02-05 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:36:19] Production.INFO: count ==4879 [2025-02-05 12:36:21] Production.ERROR: pbx CDR StartTime 2025-02-05 09:36:05 - End Time 2025-02-05 12:36:05 [2025-02-05 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407742', 'tblTempUsageDetail_20' ) start [2025-02-05 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407742', 'tblTempUsageDetail_20' ) end [2025-02-05 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407742', 'tblTempVendorCDR_20' ) start [2025-02-05 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407742', 'tblTempVendorCDR_20' ) end [2025-02-05 12:36:21] Production.INFO: ProcessCDR(1,14407742,1,1,2) [2025-02-05 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407742', 'tblTempUsageDetail_20' ) start [2025-02-05 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407742', 'tblTempUsageDetail_20' ) end [2025-02-05 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:36:26] Production.INFO: ==15559== Releasing lock... [2025-02-05 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:36:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:37:05 [end_date_ymd] => 2025-02-05 12:37:05 [RateCDR] => 1 ) [2025-02-05 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:37:05' and `end` < '2025-02-05 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:37:19] Production.INFO: count ==4867 [2025-02-05 12:37:21] Production.ERROR: pbx CDR StartTime 2025-02-05 09:37:05 - End Time 2025-02-05 12:37:05 [2025-02-05 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407747', 'tblTempUsageDetail_20' ) start [2025-02-05 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407747', 'tblTempUsageDetail_20' ) end [2025-02-05 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407747', 'tblTempVendorCDR_20' ) start [2025-02-05 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407747', 'tblTempVendorCDR_20' ) end [2025-02-05 12:37:21] Production.INFO: ProcessCDR(1,14407747,1,1,2) [2025-02-05 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407747', 'tblTempUsageDetail_20' ) start [2025-02-05 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407747', 'tblTempUsageDetail_20' ) end [2025-02-05 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:37:26] Production.INFO: ==15683== Releasing lock... [2025-02-05 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:37:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:38:05 [end_date_ymd] => 2025-02-05 12:38:05 [RateCDR] => 1 ) [2025-02-05 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:38:05' and `end` < '2025-02-05 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:38:26] Production.INFO: count ==4873 [2025-02-05 12:38:28] Production.ERROR: pbx CDR StartTime 2025-02-05 09:38:05 - End Time 2025-02-05 12:38:05 [2025-02-05 12:38:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407752', 'tblTempUsageDetail_20' ) start [2025-02-05 12:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407752', 'tblTempUsageDetail_20' ) end [2025-02-05 12:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407752', 'tblTempVendorCDR_20' ) start [2025-02-05 12:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407752', 'tblTempVendorCDR_20' ) end [2025-02-05 12:38:29] Production.INFO: ProcessCDR(1,14407752,1,1,2) [2025-02-05 12:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407752', 'tblTempUsageDetail_20' ) start [2025-02-05 12:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407752', 'tblTempUsageDetail_20' ) end [2025-02-05 12:38:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:38:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:38:33] Production.INFO: ==15764== Releasing lock... [2025-02-05 12:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:38:33] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:39:05 [end_date_ymd] => 2025-02-05 12:39:05 [RateCDR] => 1 ) [2025-02-05 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:39:05' and `end` < '2025-02-05 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:39:24] Production.INFO: count ==4855 [2025-02-05 12:39:26] Production.ERROR: pbx CDR StartTime 2025-02-05 09:39:05 - End Time 2025-02-05 12:39:05 [2025-02-05 12:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407757', 'tblTempUsageDetail_20' ) start [2025-02-05 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407757', 'tblTempUsageDetail_20' ) end [2025-02-05 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407757', 'tblTempVendorCDR_20' ) start [2025-02-05 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407757', 'tblTempVendorCDR_20' ) end [2025-02-05 12:39:26] Production.INFO: ProcessCDR(1,14407757,1,1,2) [2025-02-05 12:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407757', 'tblTempUsageDetail_20' ) start [2025-02-05 12:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407757', 'tblTempUsageDetail_20' ) end [2025-02-05 12:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:39:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:39:31] Production.INFO: ==15845== Releasing lock... [2025-02-05 12:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:39:31] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:40:05 [end_date_ymd] => 2025-02-05 12:40:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 09:40:05' and `end` < '2025-02-05 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-02-05 12:40:22] Production.INFO: count ==4832 [2025-02-05 12:40:24] Production.ERROR: pbx CDR StartTime 2025-02-05 09:40:05 - End Time 2025-02-05 12:40:05 [2025-02-05 12:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407762', 'tblTempUsageDetail_20' ) start [2025-02-05 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407762', 'tblTempUsageDetail_20' ) end [2025-02-05 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407762', 'tblTempVendorCDR_20' ) start [2025-02-05 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407762', 'tblTempVendorCDR_20' ) end [2025-02-05 12:40:24] Production.INFO: ProcessCDR(1,14407762,1,1,2) [2025-02-05 12:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407762', 'tblTempUsageDetail_20' ) start [2025-02-05 12:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407762', 'tblTempUsageDetail_20' ) end [2025-02-05 12:40:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:40:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:40:29] Production.INFO: ==15923== Releasing lock... [2025-02-05 12:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:40:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:41:05 [end_date_ymd] => 2025-02-05 12:41:05 [RateCDR] => 1 ) [2025-02-05 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:41:05' and `end` < '2025-02-05 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:41:19] Production.INFO: count ==4801 [2025-02-05 12:41:21] Production.ERROR: pbx CDR StartTime 2025-02-05 09:41:05 - End Time 2025-02-05 12:41:05 [2025-02-05 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407768', 'tblTempUsageDetail_20' ) start [2025-02-05 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407768', 'tblTempUsageDetail_20' ) end [2025-02-05 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407768', 'tblTempVendorCDR_20' ) start [2025-02-05 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407768', 'tblTempVendorCDR_20' ) end [2025-02-05 12:41:21] Production.INFO: ProcessCDR(1,14407768,1,1,2) [2025-02-05 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407768', 'tblTempUsageDetail_20' ) start [2025-02-05 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407768', 'tblTempUsageDetail_20' ) end [2025-02-05 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:41:26] Production.INFO: ==16008== Releasing lock... [2025-02-05 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:41:26] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:42:05 [end_date_ymd] => 2025-02-05 12:42:05 [RateCDR] => 1 ) [2025-02-05 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:42:05' and `end` < '2025-02-05 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:42:19] Production.INFO: count ==4797 [2025-02-05 12:42:21] Production.ERROR: pbx CDR StartTime 2025-02-05 09:42:05 - End Time 2025-02-05 12:42:05 [2025-02-05 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407773', 'tblTempUsageDetail_20' ) start [2025-02-05 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407773', 'tblTempUsageDetail_20' ) end [2025-02-05 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407773', 'tblTempVendorCDR_20' ) start [2025-02-05 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407773', 'tblTempVendorCDR_20' ) end [2025-02-05 12:42:21] Production.INFO: ProcessCDR(1,14407773,1,1,2) [2025-02-05 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407773', 'tblTempUsageDetail_20' ) start [2025-02-05 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407773', 'tblTempUsageDetail_20' ) end [2025-02-05 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:42:26] Production.INFO: ==16085== Releasing lock... [2025-02-05 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:42:26] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:43:05 [end_date_ymd] => 2025-02-05 12:43:05 [RateCDR] => 1 ) [2025-02-05 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:43:05' and `end` < '2025-02-05 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:43:24] Production.INFO: count ==4801 [2025-02-05 12:43:26] Production.ERROR: pbx CDR StartTime 2025-02-05 09:43:05 - End Time 2025-02-05 12:43:05 [2025-02-05 12:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407778', 'tblTempUsageDetail_20' ) start [2025-02-05 12:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407778', 'tblTempUsageDetail_20' ) end [2025-02-05 12:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407778', 'tblTempVendorCDR_20' ) start [2025-02-05 12:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407778', 'tblTempVendorCDR_20' ) end [2025-02-05 12:43:26] Production.INFO: ProcessCDR(1,14407778,1,1,2) [2025-02-05 12:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407778', 'tblTempUsageDetail_20' ) start [2025-02-05 12:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407778', 'tblTempUsageDetail_20' ) end [2025-02-05 12:43:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:43:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:43:31] Production.INFO: ==16162== Releasing lock... [2025-02-05 12:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:43:31] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:44:05 [end_date_ymd] => 2025-02-05 12:44:05 [RateCDR] => 1 ) [2025-02-05 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:44:05' and `end` < '2025-02-05 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:44:21] Production.INFO: count ==4812 [2025-02-05 12:44:23] Production.ERROR: pbx CDR StartTime 2025-02-05 09:44:05 - End Time 2025-02-05 12:44:05 [2025-02-05 12:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407783', 'tblTempUsageDetail_20' ) start [2025-02-05 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407783', 'tblTempUsageDetail_20' ) end [2025-02-05 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407783', 'tblTempVendorCDR_20' ) start [2025-02-05 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407783', 'tblTempVendorCDR_20' ) end [2025-02-05 12:44:23] Production.INFO: ProcessCDR(1,14407783,1,1,2) [2025-02-05 12:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407783', 'tblTempUsageDetail_20' ) start [2025-02-05 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407783', 'tblTempUsageDetail_20' ) end [2025-02-05 12:44:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:44:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:44:28] Production.INFO: ==16256== Releasing lock... [2025-02-05 12:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:44:28] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:45:05 [end_date_ymd] => 2025-02-05 12:45:05 [RateCDR] => 1 ) [2025-02-05 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:45:05' and `end` < '2025-02-05 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:45:29] Production.INFO: count ==4822 [2025-02-05 12:45:31] Production.ERROR: pbx CDR StartTime 2025-02-05 09:45:05 - End Time 2025-02-05 12:45:05 [2025-02-05 12:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407788', 'tblTempUsageDetail_20' ) start [2025-02-05 12:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407788', 'tblTempUsageDetail_20' ) end [2025-02-05 12:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407788', 'tblTempVendorCDR_20' ) start [2025-02-05 12:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407788', 'tblTempVendorCDR_20' ) end [2025-02-05 12:45:32] Production.INFO: ProcessCDR(1,14407788,1,1,2) [2025-02-05 12:45:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:45:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:45:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407788', 'tblTempUsageDetail_20' ) start [2025-02-05 12:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407788', 'tblTempUsageDetail_20' ) end [2025-02-05 12:45:36] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:45:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:45:36] Production.INFO: ==16342== Releasing lock... [2025-02-05 12:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:45:36] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:46:05 [end_date_ymd] => 2025-02-05 12:46:05 [RateCDR] => 1 ) [2025-02-05 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:46:05' and `end` < '2025-02-05 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:46:22] Production.INFO: count ==4813 [2025-02-05 12:46:24] Production.ERROR: pbx CDR StartTime 2025-02-05 09:46:05 - End Time 2025-02-05 12:46:05 [2025-02-05 12:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407793', 'tblTempUsageDetail_20' ) start [2025-02-05 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407793', 'tblTempUsageDetail_20' ) end [2025-02-05 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407793', 'tblTempVendorCDR_20' ) start [2025-02-05 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407793', 'tblTempVendorCDR_20' ) end [2025-02-05 12:46:24] Production.INFO: ProcessCDR(1,14407793,1,1,2) [2025-02-05 12:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407793', 'tblTempUsageDetail_20' ) start [2025-02-05 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407793', 'tblTempUsageDetail_20' ) end [2025-02-05 12:46:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:46:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:46:29] Production.INFO: ==16420== Releasing lock... [2025-02-05 12:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:46:29] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:47:06 [end_date_ymd] => 2025-02-05 12:47:06 [RateCDR] => 1 ) [2025-02-05 12:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:47:06' and `end` < '2025-02-05 12:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:47:21] Production.INFO: count ==4793 [2025-02-05 12:47:23] Production.ERROR: pbx CDR StartTime 2025-02-05 09:47:06 - End Time 2025-02-05 12:47:06 [2025-02-05 12:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407798', 'tblTempUsageDetail_20' ) start [2025-02-05 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407798', 'tblTempUsageDetail_20' ) end [2025-02-05 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407798', 'tblTempVendorCDR_20' ) start [2025-02-05 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407798', 'tblTempVendorCDR_20' ) end [2025-02-05 12:47:23] Production.INFO: ProcessCDR(1,14407798,1,1,2) [2025-02-05 12:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407798', 'tblTempUsageDetail_20' ) start [2025-02-05 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407798', 'tblTempUsageDetail_20' ) end [2025-02-05 12:47:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:47:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:47:28] Production.INFO: ==16496== Releasing lock... [2025-02-05 12:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:47:28] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:48:05 [end_date_ymd] => 2025-02-05 12:48:05 [RateCDR] => 1 ) [2025-02-05 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:48:05' and `end` < '2025-02-05 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:48:20] Production.INFO: count ==4807 [2025-02-05 12:48:21] Production.ERROR: pbx CDR StartTime 2025-02-05 09:48:05 - End Time 2025-02-05 12:48:05 [2025-02-05 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407803', 'tblTempUsageDetail_20' ) start [2025-02-05 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407803', 'tblTempUsageDetail_20' ) end [2025-02-05 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407803', 'tblTempVendorCDR_20' ) start [2025-02-05 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407803', 'tblTempVendorCDR_20' ) end [2025-02-05 12:48:22] Production.INFO: ProcessCDR(1,14407803,1,1,2) [2025-02-05 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407803', 'tblTempUsageDetail_20' ) start [2025-02-05 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407803', 'tblTempUsageDetail_20' ) end [2025-02-05 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:48:26] Production.INFO: ==16569== Releasing lock... [2025-02-05 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:48:26] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:49:06 [end_date_ymd] => 2025-02-05 12:49:06 [RateCDR] => 1 ) [2025-02-05 12:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:49:06' and `end` < '2025-02-05 12:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:49:24] Production.INFO: count ==4816 [2025-02-05 12:49:26] Production.ERROR: pbx CDR StartTime 2025-02-05 09:49:06 - End Time 2025-02-05 12:49:06 [2025-02-05 12:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407808', 'tblTempUsageDetail_20' ) start [2025-02-05 12:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407808', 'tblTempUsageDetail_20' ) end [2025-02-05 12:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407808', 'tblTempVendorCDR_20' ) start [2025-02-05 12:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407808', 'tblTempVendorCDR_20' ) end [2025-02-05 12:49:26] Production.INFO: ProcessCDR(1,14407808,1,1,2) [2025-02-05 12:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407808', 'tblTempUsageDetail_20' ) start [2025-02-05 12:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407808', 'tblTempUsageDetail_20' ) end [2025-02-05 12:49:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:49:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:49:31] Production.INFO: ==16650== Releasing lock... [2025-02-05 12:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:49:31] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:50:05 [end_date_ymd] => 2025-02-05 12:50:05 [RateCDR] => 1 ) [2025-02-05 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:50:05' and `end` < '2025-02-05 12:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:50:20] Production.INFO: count ==4773 [2025-02-05 12:50:22] Production.ERROR: pbx CDR StartTime 2025-02-05 09:50:05 - End Time 2025-02-05 12:50:05 [2025-02-05 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407814', 'tblTempUsageDetail_20' ) start [2025-02-05 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407814', 'tblTempUsageDetail_20' ) end [2025-02-05 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407814', 'tblTempVendorCDR_20' ) start [2025-02-05 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407814', 'tblTempVendorCDR_20' ) end [2025-02-05 12:50:22] Production.INFO: ProcessCDR(1,14407814,1,1,2) [2025-02-05 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407814', 'tblTempUsageDetail_20' ) start [2025-02-05 12:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407814', 'tblTempUsageDetail_20' ) end [2025-02-05 12:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:50:25] Production.INFO: ==16734== Releasing lock... [2025-02-05 12:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:50:25] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:51:06 [end_date_ymd] => 2025-02-05 12:51:06 [RateCDR] => 1 ) [2025-02-05 12:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:51:06' and `end` < '2025-02-05 12:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:51:30] Production.INFO: count ==4798 [2025-02-05 12:51:32] Production.ERROR: pbx CDR StartTime 2025-02-05 09:51:06 - End Time 2025-02-05 12:51:06 [2025-02-05 12:51:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407819', 'tblTempUsageDetail_20' ) start [2025-02-05 12:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407819', 'tblTempUsageDetail_20' ) end [2025-02-05 12:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407819', 'tblTempVendorCDR_20' ) start [2025-02-05 12:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407819', 'tblTempVendorCDR_20' ) end [2025-02-05 12:51:32] Production.INFO: ProcessCDR(1,14407819,1,1,2) [2025-02-05 12:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:51:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:51:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:51:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407819', 'tblTempUsageDetail_20' ) start [2025-02-05 12:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407819', 'tblTempUsageDetail_20' ) end [2025-02-05 12:51:37] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:51:37] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:51:37] Production.INFO: ==16826== Releasing lock... [2025-02-05 12:51:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:51:37] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:52:05 [end_date_ymd] => 2025-02-05 12:52:05 [RateCDR] => 1 ) [2025-02-05 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:52:05' and `end` < '2025-02-05 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:52:23] Production.INFO: count ==4797 [2025-02-05 12:52:25] Production.ERROR: pbx CDR StartTime 2025-02-05 09:52:05 - End Time 2025-02-05 12:52:05 [2025-02-05 12:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407824', 'tblTempUsageDetail_20' ) start [2025-02-05 12:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407824', 'tblTempUsageDetail_20' ) end [2025-02-05 12:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407824', 'tblTempVendorCDR_20' ) start [2025-02-05 12:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407824', 'tblTempVendorCDR_20' ) end [2025-02-05 12:52:25] Production.INFO: ProcessCDR(1,14407824,1,1,2) [2025-02-05 12:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407824', 'tblTempUsageDetail_20' ) start [2025-02-05 12:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407824', 'tblTempUsageDetail_20' ) end [2025-02-05 12:52:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:52:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:52:30] Production.INFO: ==16942== Releasing lock... [2025-02-05 12:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:52:30] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:53:05 [end_date_ymd] => 2025-02-05 12:53:05 [RateCDR] => 1 ) [2025-02-05 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:53:05' and `end` < '2025-02-05 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:53:22] Production.INFO: count ==4792 [2025-02-05 12:53:24] Production.ERROR: pbx CDR StartTime 2025-02-05 09:53:05 - End Time 2025-02-05 12:53:05 [2025-02-05 12:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407829', 'tblTempUsageDetail_20' ) start [2025-02-05 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407829', 'tblTempUsageDetail_20' ) end [2025-02-05 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407829', 'tblTempVendorCDR_20' ) start [2025-02-05 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407829', 'tblTempVendorCDR_20' ) end [2025-02-05 12:53:24] Production.INFO: ProcessCDR(1,14407829,1,1,2) [2025-02-05 12:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407829', 'tblTempUsageDetail_20' ) start [2025-02-05 12:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407829', 'tblTempUsageDetail_20' ) end [2025-02-05 12:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:53:29] Production.INFO: ==17019== Releasing lock... [2025-02-05 12:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:53:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:54:05 [end_date_ymd] => 2025-02-05 12:54:05 [RateCDR] => 1 ) [2025-02-05 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:54:05' and `end` < '2025-02-05 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:54:29] Production.INFO: count ==4814 [2025-02-05 12:54:31] Production.ERROR: pbx CDR StartTime 2025-02-05 09:54:05 - End Time 2025-02-05 12:54:05 [2025-02-05 12:54:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407834', 'tblTempUsageDetail_20' ) start [2025-02-05 12:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407834', 'tblTempUsageDetail_20' ) end [2025-02-05 12:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407834', 'tblTempVendorCDR_20' ) start [2025-02-05 12:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407834', 'tblTempVendorCDR_20' ) end [2025-02-05 12:54:31] Production.INFO: ProcessCDR(1,14407834,1,1,2) [2025-02-05 12:54:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:54:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:54:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:54:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:54:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407834', 'tblTempUsageDetail_20' ) start [2025-02-05 12:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407834', 'tblTempUsageDetail_20' ) end [2025-02-05 12:54:36] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:54:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:54:36] Production.INFO: ==17112== Releasing lock... [2025-02-05 12:54:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:54:36] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:55:05 [end_date_ymd] => 2025-02-05 12:55:05 [RateCDR] => 1 ) [2025-02-05 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:55:05' and `end` < '2025-02-05 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:55:24] Production.INFO: count ==4813 [2025-02-05 12:55:26] Production.ERROR: pbx CDR StartTime 2025-02-05 09:55:05 - End Time 2025-02-05 12:55:05 [2025-02-05 12:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407839', 'tblTempUsageDetail_20' ) start [2025-02-05 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407839', 'tblTempUsageDetail_20' ) end [2025-02-05 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407839', 'tblTempVendorCDR_20' ) start [2025-02-05 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407839', 'tblTempVendorCDR_20' ) end [2025-02-05 12:55:26] Production.INFO: ProcessCDR(1,14407839,1,1,2) [2025-02-05 12:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407839', 'tblTempUsageDetail_20' ) start [2025-02-05 12:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407839', 'tblTempUsageDetail_20' ) end [2025-02-05 12:55:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:55:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:55:30] Production.INFO: ==17187== Releasing lock... [2025-02-05 12:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:55:30] Production.INFO: 64 MB #Memory Used# [2025-02-05 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:56:05 [end_date_ymd] => 2025-02-05 12:56:05 [RateCDR] => 1 ) [2025-02-05 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:56:05' and `end` < '2025-02-05 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:56:23] Production.INFO: count ==4826 [2025-02-05 12:56:25] Production.ERROR: pbx CDR StartTime 2025-02-05 09:56:05 - End Time 2025-02-05 12:56:05 [2025-02-05 12:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407844', 'tblTempUsageDetail_20' ) start [2025-02-05 12:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407844', 'tblTempUsageDetail_20' ) end [2025-02-05 12:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407844', 'tblTempVendorCDR_20' ) start [2025-02-05 12:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407844', 'tblTempVendorCDR_20' ) end [2025-02-05 12:56:25] Production.INFO: ProcessCDR(1,14407844,1,1,2) [2025-02-05 12:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407844', 'tblTempUsageDetail_20' ) start [2025-02-05 12:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407844', 'tblTempUsageDetail_20' ) end [2025-02-05 12:56:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:56:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:56:30] Production.INFO: ==17264== Releasing lock... [2025-02-05 12:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:56:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:57:05 [end_date_ymd] => 2025-02-05 12:57:05 [RateCDR] => 1 ) [2025-02-05 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:57:05' and `end` < '2025-02-05 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:57:27] Production.INFO: count ==4844 [2025-02-05 12:57:29] Production.ERROR: pbx CDR StartTime 2025-02-05 09:57:05 - End Time 2025-02-05 12:57:05 [2025-02-05 12:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407849', 'tblTempUsageDetail_20' ) start [2025-02-05 12:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407849', 'tblTempUsageDetail_20' ) end [2025-02-05 12:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407849', 'tblTempVendorCDR_20' ) start [2025-02-05 12:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407849', 'tblTempVendorCDR_20' ) end [2025-02-05 12:57:29] Production.INFO: ProcessCDR(1,14407849,1,1,2) [2025-02-05 12:57:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:57:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:57:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:57:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407849', 'tblTempUsageDetail_20' ) start [2025-02-05 12:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407849', 'tblTempUsageDetail_20' ) end [2025-02-05 12:57:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:57:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:57:34] Production.INFO: ==17346== Releasing lock... [2025-02-05 12:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:57:34] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:58:05 [end_date_ymd] => 2025-02-05 12:58:05 [RateCDR] => 1 ) [2025-02-05 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:58:05' and `end` < '2025-02-05 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:58:22] Production.INFO: count ==4860 [2025-02-05 12:58:24] Production.ERROR: pbx CDR StartTime 2025-02-05 09:58:05 - End Time 2025-02-05 12:58:05 [2025-02-05 12:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407854', 'tblTempUsageDetail_20' ) start [2025-02-05 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407854', 'tblTempUsageDetail_20' ) end [2025-02-05 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407854', 'tblTempVendorCDR_20' ) start [2025-02-05 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407854', 'tblTempVendorCDR_20' ) end [2025-02-05 12:58:24] Production.INFO: ProcessCDR(1,14407854,1,1,2) [2025-02-05 12:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407854', 'tblTempUsageDetail_20' ) start [2025-02-05 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407854', 'tblTempUsageDetail_20' ) end [2025-02-05 12:58:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:58:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:58:29] Production.INFO: ==17423== Releasing lock... [2025-02-05 12:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:58:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 09:59:05 [end_date_ymd] => 2025-02-05 12:59:05 [RateCDR] => 1 ) [2025-02-05 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 09:59:05' and `end` < '2025-02-05 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 12:59:25] Production.INFO: count ==4878 [2025-02-05 12:59:27] Production.ERROR: pbx CDR StartTime 2025-02-05 09:59:05 - End Time 2025-02-05 12:59:05 [2025-02-05 12:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 12:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407859', 'tblTempUsageDetail_20' ) start [2025-02-05 12:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407859', 'tblTempUsageDetail_20' ) end [2025-02-05 12:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407859', 'tblTempVendorCDR_20' ) start [2025-02-05 12:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407859', 'tblTempVendorCDR_20' ) end [2025-02-05 12:59:27] Production.INFO: ProcessCDR(1,14407859,1,1,2) [2025-02-05 12:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 12:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 12:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407859', 'tblTempUsageDetail_20' ) start [2025-02-05 12:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407859', 'tblTempUsageDetail_20' ) end [2025-02-05 12:59:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 12:59:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 12:59:32] Production.INFO: ==17497== Releasing lock... [2025-02-05 12:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 12:59:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:00:06 [end_date_ymd] => 2025-02-05 13:00:06 [RateCDR] => 1 ) [2025-02-05 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:00:06' and `end` < '2025-02-05 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:00:25] Production.INFO: count ==4875 [2025-02-05 13:00:27] Production.ERROR: pbx CDR StartTime 2025-02-05 10:00:06 - End Time 2025-02-05 13:00:06 [2025-02-05 13:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407864', 'tblTempUsageDetail_20' ) start [2025-02-05 13:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407864', 'tblTempUsageDetail_20' ) end [2025-02-05 13:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407864', 'tblTempVendorCDR_20' ) start [2025-02-05 13:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407864', 'tblTempVendorCDR_20' ) end [2025-02-05 13:00:28] Production.INFO: ProcessCDR(1,14407864,1,1,2) [2025-02-05 13:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407864', 'tblTempUsageDetail_20' ) start [2025-02-05 13:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407864', 'tblTempUsageDetail_20' ) end [2025-02-05 13:00:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:00:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:00:33] Production.INFO: ==17580== Releasing lock... [2025-02-05 13:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:00:33] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:01:05 [end_date_ymd] => 2025-02-05 13:01:05 [RateCDR] => 1 ) [2025-02-05 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:01:05' and `end` < '2025-02-05 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:01:25] Production.INFO: count ==4882 [2025-02-05 13:01:27] Production.ERROR: pbx CDR StartTime 2025-02-05 10:01:05 - End Time 2025-02-05 13:01:05 [2025-02-05 13:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407870', 'tblTempUsageDetail_20' ) start [2025-02-05 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407870', 'tblTempUsageDetail_20' ) end [2025-02-05 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407870', 'tblTempVendorCDR_20' ) start [2025-02-05 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407870', 'tblTempVendorCDR_20' ) end [2025-02-05 13:01:27] Production.INFO: ProcessCDR(1,14407870,1,1,2) [2025-02-05 13:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407870', 'tblTempUsageDetail_20' ) start [2025-02-05 13:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407870', 'tblTempUsageDetail_20' ) end [2025-02-05 13:01:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:01:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:01:31] Production.INFO: ==17672== Releasing lock... [2025-02-05 13:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:01:31] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:02:05 [end_date_ymd] => 2025-02-05 13:02:05 [RateCDR] => 1 ) [2025-02-05 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:02:05' and `end` < '2025-02-05 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:02:34] Production.INFO: count ==4893 [2025-02-05 13:02:36] Production.ERROR: pbx CDR StartTime 2025-02-05 10:02:05 - End Time 2025-02-05 13:02:05 [2025-02-05 13:02:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407875', 'tblTempUsageDetail_20' ) start [2025-02-05 13:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407875', 'tblTempUsageDetail_20' ) end [2025-02-05 13:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407875', 'tblTempVendorCDR_20' ) start [2025-02-05 13:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407875', 'tblTempVendorCDR_20' ) end [2025-02-05 13:02:36] Production.INFO: ProcessCDR(1,14407875,1,1,2) [2025-02-05 13:02:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:02:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:02:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:02:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407875', 'tblTempUsageDetail_20' ) start [2025-02-05 13:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407875', 'tblTempUsageDetail_20' ) end [2025-02-05 13:02:41] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:02:41] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:02:41] Production.INFO: ==17747== Releasing lock... [2025-02-05 13:02:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:02:41] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:03:05 [end_date_ymd] => 2025-02-05 13:03:05 [RateCDR] => 1 ) [2025-02-05 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:03:05' and `end` < '2025-02-05 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:03:26] Production.INFO: count ==4898 [2025-02-05 13:03:28] Production.ERROR: pbx CDR StartTime 2025-02-05 10:03:05 - End Time 2025-02-05 13:03:05 [2025-02-05 13:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407880', 'tblTempUsageDetail_20' ) start [2025-02-05 13:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407880', 'tblTempUsageDetail_20' ) end [2025-02-05 13:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407880', 'tblTempVendorCDR_20' ) start [2025-02-05 13:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407880', 'tblTempVendorCDR_20' ) end [2025-02-05 13:03:28] Production.INFO: ProcessCDR(1,14407880,1,1,2) [2025-02-05 13:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407880', 'tblTempUsageDetail_20' ) start [2025-02-05 13:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407880', 'tblTempUsageDetail_20' ) end [2025-02-05 13:03:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:03:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:03:33] Production.INFO: ==17828== Releasing lock... [2025-02-05 13:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:03:33] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:04:05 [end_date_ymd] => 2025-02-05 13:04:05 [RateCDR] => 1 ) [2025-02-05 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:04:05' and `end` < '2025-02-05 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:04:24] Production.INFO: count ==4911 [2025-02-05 13:04:27] Production.ERROR: pbx CDR StartTime 2025-02-05 10:04:05 - End Time 2025-02-05 13:04:05 [2025-02-05 13:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407885', 'tblTempUsageDetail_20' ) start [2025-02-05 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407885', 'tblTempUsageDetail_20' ) end [2025-02-05 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407885', 'tblTempVendorCDR_20' ) start [2025-02-05 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407885', 'tblTempVendorCDR_20' ) end [2025-02-05 13:04:27] Production.INFO: ProcessCDR(1,14407885,1,1,2) [2025-02-05 13:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407885', 'tblTempUsageDetail_20' ) start [2025-02-05 13:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407885', 'tblTempUsageDetail_20' ) end [2025-02-05 13:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:04:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:04:32] Production.INFO: ==17917== Releasing lock... [2025-02-05 13:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:04:32] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:05:05 [end_date_ymd] => 2025-02-05 13:05:05 [RateCDR] => 1 ) [2025-02-05 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:05:05' and `end` < '2025-02-05 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:05:23] Production.INFO: count ==4906 [2025-02-05 13:05:25] Production.ERROR: pbx CDR StartTime 2025-02-05 10:05:05 - End Time 2025-02-05 13:05:05 [2025-02-05 13:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407890', 'tblTempUsageDetail_20' ) start [2025-02-05 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407890', 'tblTempUsageDetail_20' ) end [2025-02-05 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407890', 'tblTempVendorCDR_20' ) start [2025-02-05 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407890', 'tblTempVendorCDR_20' ) end [2025-02-05 13:05:25] Production.INFO: ProcessCDR(1,14407890,1,1,2) [2025-02-05 13:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407890', 'tblTempUsageDetail_20' ) start [2025-02-05 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407890', 'tblTempUsageDetail_20' ) end [2025-02-05 13:05:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:05:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:05:30] Production.INFO: ==18000== Releasing lock... [2025-02-05 13:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:05:30] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:06:05 [end_date_ymd] => 2025-02-05 13:06:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:06:05' and `end` < '2025-02-05 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-02-05 13:06:20] Production.INFO: count ==4926 [2025-02-05 13:06:22] Production.ERROR: pbx CDR StartTime 2025-02-05 10:06:05 - End Time 2025-02-05 13:06:05 [2025-02-05 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407895', 'tblTempUsageDetail_20' ) start [2025-02-05 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407895', 'tblTempUsageDetail_20' ) end [2025-02-05 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407895', 'tblTempVendorCDR_20' ) start [2025-02-05 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407895', 'tblTempVendorCDR_20' ) end [2025-02-05 13:06:22] Production.INFO: ProcessCDR(1,14407895,1,1,2) [2025-02-05 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407895', 'tblTempUsageDetail_20' ) start [2025-02-05 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407895', 'tblTempUsageDetail_20' ) end [2025-02-05 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:06:27] Production.INFO: ==18085== Releasing lock... [2025-02-05 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:06:27] Production.INFO: 65 MB #Memory Used# [2025-02-05 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:07:06 [end_date_ymd] => 2025-02-05 13:07:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:07:06' and `end` < '2025-02-05 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-02-05 13:07:21] Production.INFO: count ==4918 [2025-02-05 13:07:22] Production.ERROR: pbx CDR StartTime 2025-02-05 10:07:06 - End Time 2025-02-05 13:07:06 [2025-02-05 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407900', 'tblTempUsageDetail_20' ) start [2025-02-05 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407900', 'tblTempUsageDetail_20' ) end [2025-02-05 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407900', 'tblTempVendorCDR_20' ) start [2025-02-05 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407900', 'tblTempVendorCDR_20' ) end [2025-02-05 13:07:23] Production.INFO: ProcessCDR(1,14407900,1,1,2) [2025-02-05 13:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407900', 'tblTempUsageDetail_20' ) start [2025-02-05 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407900', 'tblTempUsageDetail_20' ) end [2025-02-05 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:07:27] Production.INFO: ==18164== Releasing lock... [2025-02-05 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:07:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:08:05 [end_date_ymd] => 2025-02-05 13:08:05 [RateCDR] => 1 ) [2025-02-05 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:08:05' and `end` < '2025-02-05 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:08:20] Production.INFO: count ==4899 [2025-02-05 13:08:22] Production.ERROR: pbx CDR StartTime 2025-02-05 10:08:05 - End Time 2025-02-05 13:08:05 [2025-02-05 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407905', 'tblTempUsageDetail_20' ) start [2025-02-05 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407905', 'tblTempUsageDetail_20' ) end [2025-02-05 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407905', 'tblTempVendorCDR_20' ) start [2025-02-05 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407905', 'tblTempVendorCDR_20' ) end [2025-02-05 13:08:22] Production.INFO: ProcessCDR(1,14407905,1,1,2) [2025-02-05 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407905', 'tblTempUsageDetail_20' ) start [2025-02-05 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407905', 'tblTempUsageDetail_20' ) end [2025-02-05 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:08:27] Production.INFO: ==18283== Releasing lock... [2025-02-05 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:08:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:09:06 [end_date_ymd] => 2025-02-05 13:09:06 [RateCDR] => 1 ) [2025-02-05 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:09:06' and `end` < '2025-02-05 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:09:19] Production.INFO: count ==4905 [2025-02-05 13:09:21] Production.ERROR: pbx CDR StartTime 2025-02-05 10:09:06 - End Time 2025-02-05 13:09:06 [2025-02-05 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407910', 'tblTempUsageDetail_20' ) start [2025-02-05 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407910', 'tblTempUsageDetail_20' ) end [2025-02-05 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407910', 'tblTempVendorCDR_20' ) start [2025-02-05 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407910', 'tblTempVendorCDR_20' ) end [2025-02-05 13:09:21] Production.INFO: ProcessCDR(1,14407910,1,1,2) [2025-02-05 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407910', 'tblTempUsageDetail_20' ) start [2025-02-05 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407910', 'tblTempUsageDetail_20' ) end [2025-02-05 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:09:26] Production.INFO: ==18358== Releasing lock... [2025-02-05 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:09:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:10:06 [end_date_ymd] => 2025-02-05 13:10:06 [RateCDR] => 1 ) [2025-02-05 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:10:06' and `end` < '2025-02-05 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:10:31] Production.INFO: count ==4917 [2025-02-05 13:10:33] Production.ERROR: pbx CDR StartTime 2025-02-05 10:10:06 - End Time 2025-02-05 13:10:06 [2025-02-05 13:10:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407916', 'tblTempUsageDetail_20' ) start [2025-02-05 13:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407916', 'tblTempUsageDetail_20' ) end [2025-02-05 13:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407916', 'tblTempVendorCDR_20' ) start [2025-02-05 13:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407916', 'tblTempVendorCDR_20' ) end [2025-02-05 13:10:34] Production.INFO: ProcessCDR(1,14407916,1,1,2) [2025-02-05 13:10:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:10:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:10:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407916', 'tblTempUsageDetail_20' ) start [2025-02-05 13:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407916', 'tblTempUsageDetail_20' ) end [2025-02-05 13:10:39] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:10:39] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:10:39] Production.INFO: ==18439== Releasing lock... [2025-02-05 13:10:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:10:39] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:11:05 [end_date_ymd] => 2025-02-05 13:11:05 [RateCDR] => 1 ) [2025-02-05 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:11:05' and `end` < '2025-02-05 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:11:22] Production.INFO: count ==4928 [2025-02-05 13:11:24] Production.ERROR: pbx CDR StartTime 2025-02-05 10:11:05 - End Time 2025-02-05 13:11:05 [2025-02-05 13:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407921', 'tblTempUsageDetail_20' ) start [2025-02-05 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407921', 'tblTempUsageDetail_20' ) end [2025-02-05 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407921', 'tblTempVendorCDR_20' ) start [2025-02-05 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407921', 'tblTempVendorCDR_20' ) end [2025-02-05 13:11:24] Production.INFO: ProcessCDR(1,14407921,1,1,2) [2025-02-05 13:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407921', 'tblTempUsageDetail_20' ) start [2025-02-05 13:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407921', 'tblTempUsageDetail_20' ) end [2025-02-05 13:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:11:29] Production.INFO: ==18523== Releasing lock... [2025-02-05 13:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:11:29] Production.INFO: 65 MB #Memory Used# [2025-02-05 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:12:05 [end_date_ymd] => 2025-02-05 13:12:05 [RateCDR] => 1 ) [2025-02-05 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:12:05' and `end` < '2025-02-05 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:12:20] Production.INFO: count ==4913 [2025-02-05 13:12:22] Production.ERROR: pbx CDR StartTime 2025-02-05 10:12:05 - End Time 2025-02-05 13:12:05 [2025-02-05 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407926', 'tblTempUsageDetail_20' ) start [2025-02-05 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407926', 'tblTempUsageDetail_20' ) end [2025-02-05 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407926', 'tblTempVendorCDR_20' ) start [2025-02-05 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407926', 'tblTempVendorCDR_20' ) end [2025-02-05 13:12:22] Production.INFO: ProcessCDR(1,14407926,1,1,2) [2025-02-05 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407926', 'tblTempUsageDetail_20' ) start [2025-02-05 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407926', 'tblTempUsageDetail_20' ) end [2025-02-05 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:12:27] Production.INFO: ==18605== Releasing lock... [2025-02-05 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:12:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:13:05 [end_date_ymd] => 2025-02-05 13:13:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:13:05' and `end` < '2025-02-05 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-02-05 13:13:22] Production.INFO: count ==4925 [2025-02-05 13:13:24] Production.ERROR: pbx CDR StartTime 2025-02-05 10:13:05 - End Time 2025-02-05 13:13:05 [2025-02-05 13:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407931', 'tblTempUsageDetail_20' ) start [2025-02-05 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407931', 'tblTempUsageDetail_20' ) end [2025-02-05 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407931', 'tblTempVendorCDR_20' ) start [2025-02-05 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407931', 'tblTempVendorCDR_20' ) end [2025-02-05 13:13:25] Production.INFO: ProcessCDR(1,14407931,1,1,2) [2025-02-05 13:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407931', 'tblTempUsageDetail_20' ) start [2025-02-05 13:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407931', 'tblTempUsageDetail_20' ) end [2025-02-05 13:13:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:13:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:13:29] Production.INFO: ==18685== Releasing lock... [2025-02-05 13:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:13:29] Production.INFO: 65 MB #Memory Used# [2025-02-05 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:14:06 [end_date_ymd] => 2025-02-05 13:14:06 [RateCDR] => 1 ) [2025-02-05 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:14:06' and `end` < '2025-02-05 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:14:24] Production.INFO: count ==4947 [2025-02-05 13:14:26] Production.ERROR: pbx CDR StartTime 2025-02-05 10:14:06 - End Time 2025-02-05 13:14:06 [2025-02-05 13:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407936', 'tblTempUsageDetail_20' ) start [2025-02-05 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407936', 'tblTempUsageDetail_20' ) end [2025-02-05 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407936', 'tblTempVendorCDR_20' ) start [2025-02-05 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407936', 'tblTempVendorCDR_20' ) end [2025-02-05 13:14:26] Production.INFO: ProcessCDR(1,14407936,1,1,2) [2025-02-05 13:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407936', 'tblTempUsageDetail_20' ) start [2025-02-05 13:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407936', 'tblTempUsageDetail_20' ) end [2025-02-05 13:14:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:14:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:14:30] Production.INFO: ==18767== Releasing lock... [2025-02-05 13:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:14:30] Production.INFO: 65 MB #Memory Used# [2025-02-05 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:15:05 [end_date_ymd] => 2025-02-05 13:15:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:15:05' and `end` < '2025-02-05 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-02-05 13:15:19] Production.INFO: count ==4948 [2025-02-05 13:15:21] Production.ERROR: pbx CDR StartTime 2025-02-05 10:15:05 - End Time 2025-02-05 13:15:05 [2025-02-05 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407941', 'tblTempUsageDetail_20' ) start [2025-02-05 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407941', 'tblTempUsageDetail_20' ) end [2025-02-05 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407941', 'tblTempVendorCDR_20' ) start [2025-02-05 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407941', 'tblTempVendorCDR_20' ) end [2025-02-05 13:15:21] Production.INFO: ProcessCDR(1,14407941,1,1,2) [2025-02-05 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407941', 'tblTempUsageDetail_20' ) start [2025-02-05 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407941', 'tblTempUsageDetail_20' ) end [2025-02-05 13:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:15:25] Production.INFO: ==18853== Releasing lock... [2025-02-05 13:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:15:25] Production.INFO: 65 MB #Memory Used# [2025-02-05 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:16:06 [end_date_ymd] => 2025-02-05 13:16:06 [RateCDR] => 1 ) [2025-02-05 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:16:06' and `end` < '2025-02-05 13:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:16:19] Production.INFO: count ==4948 [2025-02-05 13:16:21] Production.ERROR: pbx CDR StartTime 2025-02-05 10:16:06 - End Time 2025-02-05 13:16:06 [2025-02-05 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407946', 'tblTempUsageDetail_20' ) start [2025-02-05 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407946', 'tblTempUsageDetail_20' ) end [2025-02-05 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407946', 'tblTempVendorCDR_20' ) start [2025-02-05 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407946', 'tblTempVendorCDR_20' ) end [2025-02-05 13:16:22] Production.INFO: ProcessCDR(1,14407946,1,1,2) [2025-02-05 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407946', 'tblTempUsageDetail_20' ) start [2025-02-05 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407946', 'tblTempUsageDetail_20' ) end [2025-02-05 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:16:27] Production.INFO: ==18936== Releasing lock... [2025-02-05 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:16:27] Production.INFO: 65 MB #Memory Used# [2025-02-05 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:17:05 [end_date_ymd] => 2025-02-05 13:17:05 [RateCDR] => 1 ) [2025-02-05 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:17:05' and `end` < '2025-02-05 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:17:19] Production.INFO: count ==4954 [2025-02-05 13:17:21] Production.ERROR: pbx CDR StartTime 2025-02-05 10:17:05 - End Time 2025-02-05 13:17:05 [2025-02-05 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407951', 'tblTempUsageDetail_20' ) start [2025-02-05 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407951', 'tblTempUsageDetail_20' ) end [2025-02-05 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407951', 'tblTempVendorCDR_20' ) start [2025-02-05 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407951', 'tblTempVendorCDR_20' ) end [2025-02-05 13:17:21] Production.INFO: ProcessCDR(1,14407951,1,1,2) [2025-02-05 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407951', 'tblTempUsageDetail_20' ) start [2025-02-05 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407951', 'tblTempUsageDetail_20' ) end [2025-02-05 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:17:26] Production.INFO: ==19017== Releasing lock... [2025-02-05 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:17:26] Production.INFO: 65 MB #Memory Used# [2025-02-05 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:18:06 [end_date_ymd] => 2025-02-05 13:18:06 [RateCDR] => 1 ) [2025-02-05 13:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:18:06' and `end` < '2025-02-05 13:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:18:20] Production.INFO: count ==4993 [2025-02-05 13:18:22] Production.ERROR: pbx CDR StartTime 2025-02-05 10:18:06 - End Time 2025-02-05 13:18:06 [2025-02-05 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407956', 'tblTempUsageDetail_20' ) start [2025-02-05 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407956', 'tblTempUsageDetail_20' ) end [2025-02-05 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407956', 'tblTempVendorCDR_20' ) start [2025-02-05 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407956', 'tblTempVendorCDR_20' ) end [2025-02-05 13:18:22] Production.INFO: ProcessCDR(1,14407956,1,1,2) [2025-02-05 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407956', 'tblTempUsageDetail_20' ) start [2025-02-05 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407956', 'tblTempUsageDetail_20' ) end [2025-02-05 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:18:27] Production.INFO: ==19108== Releasing lock... [2025-02-05 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:18:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:19:06 [end_date_ymd] => 2025-02-05 13:19:06 [RateCDR] => 1 ) [2025-02-05 13:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:19:06' and `end` < '2025-02-05 13:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:19:23] Production.INFO: count ==5002 [2025-02-05 13:19:25] Production.ERROR: pbx CDR StartTime 2025-02-05 10:19:06 - End Time 2025-02-05 13:19:06 [2025-02-05 13:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407961', 'tblTempUsageDetail_20' ) start [2025-02-05 13:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407961', 'tblTempUsageDetail_20' ) end [2025-02-05 13:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407961', 'tblTempVendorCDR_20' ) start [2025-02-05 13:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407961', 'tblTempVendorCDR_20' ) end [2025-02-05 13:19:26] Production.INFO: ProcessCDR(1,14407961,1,1,2) [2025-02-05 13:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407961', 'tblTempUsageDetail_20' ) start [2025-02-05 13:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407961', 'tblTempUsageDetail_20' ) end [2025-02-05 13:19:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:19:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:19:31] Production.INFO: ==19195== Releasing lock... [2025-02-05 13:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:19:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:20:06 [end_date_ymd] => 2025-02-05 13:20:06 [RateCDR] => 1 ) [2025-02-05 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:20:06' and `end` < '2025-02-05 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:20:24] Production.INFO: count ==5003 [2025-02-05 13:20:26] Production.ERROR: pbx CDR StartTime 2025-02-05 10:20:06 - End Time 2025-02-05 13:20:06 [2025-02-05 13:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407966', 'tblTempUsageDetail_20' ) start [2025-02-05 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407966', 'tblTempUsageDetail_20' ) end [2025-02-05 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407966', 'tblTempVendorCDR_20' ) start [2025-02-05 13:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407966', 'tblTempVendorCDR_20' ) end [2025-02-05 13:20:27] Production.INFO: ProcessCDR(1,14407966,1,1,2) [2025-02-05 13:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407966', 'tblTempUsageDetail_20' ) start [2025-02-05 13:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407966', 'tblTempUsageDetail_20' ) end [2025-02-05 13:20:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:20:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:20:31] Production.INFO: ==19281== Releasing lock... [2025-02-05 13:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:20:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 13:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:21:04 [end_date_ymd] => 2025-02-05 13:21:04 [RateCDR] => 1 ) [2025-02-05 13:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:21:04' and `end` < '2025-02-05 13:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:21:20] Production.INFO: count ==4937 [2025-02-05 13:21:22] Production.ERROR: pbx CDR StartTime 2025-02-05 10:21:04 - End Time 2025-02-05 13:21:04 [2025-02-05 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407971', 'tblTempUsageDetail_20' ) start [2025-02-05 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407971', 'tblTempUsageDetail_20' ) end [2025-02-05 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407971', 'tblTempVendorCDR_20' ) start [2025-02-05 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407971', 'tblTempVendorCDR_20' ) end [2025-02-05 13:21:22] Production.INFO: ProcessCDR(1,14407971,1,1,2) [2025-02-05 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407971', 'tblTempUsageDetail_20' ) start [2025-02-05 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407971', 'tblTempUsageDetail_20' ) end [2025-02-05 13:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:21:27] Production.INFO: ==19357== Releasing lock... [2025-02-05 13:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:21:27] Production.INFO: 65 MB #Memory Used# [2025-02-05 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:22:05 [end_date_ymd] => 2025-02-05 13:22:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:22:05' and `end` < '2025-02-05 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-02-05 13:22:19] Production.INFO: count ==4927 [2025-02-05 13:22:21] Production.ERROR: pbx CDR StartTime 2025-02-05 10:22:05 - End Time 2025-02-05 13:22:05 [2025-02-05 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407977', 'tblTempUsageDetail_20' ) start [2025-02-05 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407977', 'tblTempUsageDetail_20' ) end [2025-02-05 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407977', 'tblTempVendorCDR_20' ) start [2025-02-05 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407977', 'tblTempVendorCDR_20' ) end [2025-02-05 13:22:21] Production.INFO: ProcessCDR(1,14407977,1,1,2) [2025-02-05 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407977', 'tblTempUsageDetail_20' ) start [2025-02-05 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407977', 'tblTempUsageDetail_20' ) end [2025-02-05 13:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:22:26] Production.INFO: ==19442== Releasing lock... [2025-02-05 13:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:22:26] Production.INFO: 65 MB #Memory Used# [2025-02-05 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:23:05 [end_date_ymd] => 2025-02-05 13:23:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:23:05' and `end` < '2025-02-05 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-02-05 13:23:21] Production.INFO: count ==4910 [2025-02-05 13:23:23] Production.ERROR: pbx CDR StartTime 2025-02-05 10:23:05 - End Time 2025-02-05 13:23:05 [2025-02-05 13:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407982', 'tblTempUsageDetail_20' ) start [2025-02-05 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407982', 'tblTempUsageDetail_20' ) end [2025-02-05 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407982', 'tblTempVendorCDR_20' ) start [2025-02-05 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407982', 'tblTempVendorCDR_20' ) end [2025-02-05 13:23:23] Production.INFO: ProcessCDR(1,14407982,1,1,2) [2025-02-05 13:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407982', 'tblTempUsageDetail_20' ) start [2025-02-05 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407982', 'tblTempUsageDetail_20' ) end [2025-02-05 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:23:28] Production.INFO: ==19567== Releasing lock... [2025-02-05 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:23:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:24:05 [end_date_ymd] => 2025-02-05 13:24:05 [RateCDR] => 1 ) [2025-02-05 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:24:05' and `end` < '2025-02-05 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:24:20] Production.INFO: count ==4884 [2025-02-05 13:24:22] Production.ERROR: pbx CDR StartTime 2025-02-05 10:24:05 - End Time 2025-02-05 13:24:05 [2025-02-05 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407987', 'tblTempUsageDetail_20' ) start [2025-02-05 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407987', 'tblTempUsageDetail_20' ) end [2025-02-05 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407987', 'tblTempVendorCDR_20' ) start [2025-02-05 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407987', 'tblTempVendorCDR_20' ) end [2025-02-05 13:24:23] Production.INFO: ProcessCDR(1,14407987,1,1,2) [2025-02-05 13:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407987', 'tblTempUsageDetail_20' ) start [2025-02-05 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407987', 'tblTempUsageDetail_20' ) end [2025-02-05 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:24:27] Production.INFO: ==19645== Releasing lock... [2025-02-05 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:24:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:25:05 [end_date_ymd] => 2025-02-05 13:25:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:25:05' and `end` < '2025-02-05 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-02-05 13:25:29] Production.INFO: count ==4888 [2025-02-05 13:25:31] Production.ERROR: pbx CDR StartTime 2025-02-05 10:25:05 - End Time 2025-02-05 13:25:05 [2025-02-05 13:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407992', 'tblTempUsageDetail_20' ) start [2025-02-05 13:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407992', 'tblTempUsageDetail_20' ) end [2025-02-05 13:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407992', 'tblTempVendorCDR_20' ) start [2025-02-05 13:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407992', 'tblTempVendorCDR_20' ) end [2025-02-05 13:25:31] Production.INFO: ProcessCDR(1,14407992,1,1,2) [2025-02-05 13:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407992', 'tblTempUsageDetail_20' ) start [2025-02-05 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407992', 'tblTempUsageDetail_20' ) end [2025-02-05 13:25:36] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:25:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:25:36] Production.INFO: ==19728== Releasing lock... [2025-02-05 13:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:25:36] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:26:05 [end_date_ymd] => 2025-02-05 13:26:05 [RateCDR] => 1 ) [2025-02-05 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:26:05' and `end` < '2025-02-05 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:26:28] Production.INFO: count ==4880 [2025-02-05 13:26:30] Production.ERROR: pbx CDR StartTime 2025-02-05 10:26:05 - End Time 2025-02-05 13:26:05 [2025-02-05 13:26:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407997', 'tblTempUsageDetail_20' ) start [2025-02-05 13:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14407997', 'tblTempUsageDetail_20' ) end [2025-02-05 13:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407997', 'tblTempVendorCDR_20' ) start [2025-02-05 13:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14407997', 'tblTempVendorCDR_20' ) end [2025-02-05 13:26:30] Production.INFO: ProcessCDR(1,14407997,1,1,2) [2025-02-05 13:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14407997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:26:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14407997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:26:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14407997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14407997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407997', 'tblTempUsageDetail_20' ) start [2025-02-05 13:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14407997', 'tblTempUsageDetail_20' ) end [2025-02-05 13:26:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:26:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:26:35] Production.INFO: ==19806== Releasing lock... [2025-02-05 13:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:26:35] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:27:05 [end_date_ymd] => 2025-02-05 13:27:05 [RateCDR] => 1 ) [2025-02-05 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:27:05' and `end` < '2025-02-05 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:27:23] Production.INFO: count ==4893 [2025-02-05 13:27:25] Production.ERROR: pbx CDR StartTime 2025-02-05 10:27:05 - End Time 2025-02-05 13:27:05 [2025-02-05 13:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408002', 'tblTempUsageDetail_20' ) start [2025-02-05 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408002', 'tblTempUsageDetail_20' ) end [2025-02-05 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408002', 'tblTempVendorCDR_20' ) start [2025-02-05 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408002', 'tblTempVendorCDR_20' ) end [2025-02-05 13:27:25] Production.INFO: ProcessCDR(1,14408002,1,1,2) [2025-02-05 13:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408002', 'tblTempUsageDetail_20' ) start [2025-02-05 13:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408002', 'tblTempUsageDetail_20' ) end [2025-02-05 13:27:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:27:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:27:30] Production.INFO: ==19887== Releasing lock... [2025-02-05 13:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:27:30] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:28:05 [end_date_ymd] => 2025-02-05 13:28:05 [RateCDR] => 1 ) [2025-02-05 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:28:05' and `end` < '2025-02-05 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:28:21] Production.INFO: count ==4878 [2025-02-05 13:28:23] Production.ERROR: pbx CDR StartTime 2025-02-05 10:28:05 - End Time 2025-02-05 13:28:05 [2025-02-05 13:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408007', 'tblTempUsageDetail_20' ) start [2025-02-05 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408007', 'tblTempUsageDetail_20' ) end [2025-02-05 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408007', 'tblTempVendorCDR_20' ) start [2025-02-05 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408007', 'tblTempVendorCDR_20' ) end [2025-02-05 13:28:23] Production.INFO: ProcessCDR(1,14408007,1,1,2) [2025-02-05 13:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408007', 'tblTempUsageDetail_20' ) start [2025-02-05 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408007', 'tblTempUsageDetail_20' ) end [2025-02-05 13:28:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:28:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:28:28] Production.INFO: ==19965== Releasing lock... [2025-02-05 13:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:28:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:29:05 [end_date_ymd] => 2025-02-05 13:29:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:29:05' and `end` < '2025-02-05 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-02-05 13:29:19] Production.INFO: count ==4842 [2025-02-05 13:29:21] Production.ERROR: pbx CDR StartTime 2025-02-05 10:29:05 - End Time 2025-02-05 13:29:05 [2025-02-05 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408012', 'tblTempUsageDetail_20' ) start [2025-02-05 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408012', 'tblTempUsageDetail_20' ) end [2025-02-05 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408012', 'tblTempVendorCDR_20' ) start [2025-02-05 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408012', 'tblTempVendorCDR_20' ) end [2025-02-05 13:29:21] Production.INFO: ProcessCDR(1,14408012,1,1,2) [2025-02-05 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408012', 'tblTempUsageDetail_20' ) start [2025-02-05 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408012', 'tblTempUsageDetail_20' ) end [2025-02-05 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:29:26] Production.INFO: ==20049== Releasing lock... [2025-02-05 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:29:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:30:06 [end_date_ymd] => 2025-02-05 13:30:06 [RateCDR] => 1 ) [2025-02-05 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:30:06' and `end` < '2025-02-05 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:30:21] Production.INFO: count ==4835 [2025-02-05 13:30:23] Production.ERROR: pbx CDR StartTime 2025-02-05 10:30:06 - End Time 2025-02-05 13:30:06 [2025-02-05 13:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408017', 'tblTempUsageDetail_20' ) start [2025-02-05 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408017', 'tblTempUsageDetail_20' ) end [2025-02-05 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408017', 'tblTempVendorCDR_20' ) start [2025-02-05 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408017', 'tblTempVendorCDR_20' ) end [2025-02-05 13:30:23] Production.INFO: ProcessCDR(1,14408017,1,1,2) [2025-02-05 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408017', 'tblTempUsageDetail_20' ) start [2025-02-05 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408017', 'tblTempUsageDetail_20' ) end [2025-02-05 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:30:28] Production.INFO: ==20137== Releasing lock... [2025-02-05 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:30:28] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:31:05 [end_date_ymd] => 2025-02-05 13:31:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:31:05' and `end` < '2025-02-05 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-02-05 13:31:21] Production.INFO: count ==4784 [2025-02-05 13:31:23] Production.ERROR: pbx CDR StartTime 2025-02-05 10:31:05 - End Time 2025-02-05 13:31:05 [2025-02-05 13:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408023', 'tblTempUsageDetail_20' ) start [2025-02-05 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408023', 'tblTempUsageDetail_20' ) end [2025-02-05 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408023', 'tblTempVendorCDR_20' ) start [2025-02-05 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408023', 'tblTempVendorCDR_20' ) end [2025-02-05 13:31:23] Production.INFO: ProcessCDR(1,14408023,1,1,2) [2025-02-05 13:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408023', 'tblTempUsageDetail_20' ) start [2025-02-05 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408023', 'tblTempUsageDetail_20' ) end [2025-02-05 13:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:31:28] Production.INFO: ==20229== Releasing lock... [2025-02-05 13:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:31:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:32:06 [end_date_ymd] => 2025-02-05 13:32:06 [RateCDR] => 1 ) [2025-02-05 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:32:06' and `end` < '2025-02-05 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:32:23] Production.INFO: count ==4827 [2025-02-05 13:32:25] Production.ERROR: pbx CDR StartTime 2025-02-05 10:32:06 - End Time 2025-02-05 13:32:06 [2025-02-05 13:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408028', 'tblTempUsageDetail_20' ) start [2025-02-05 13:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408028', 'tblTempUsageDetail_20' ) end [2025-02-05 13:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408028', 'tblTempVendorCDR_20' ) start [2025-02-05 13:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408028', 'tblTempVendorCDR_20' ) end [2025-02-05 13:32:25] Production.INFO: ProcessCDR(1,14408028,1,1,2) [2025-02-05 13:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408028', 'tblTempUsageDetail_20' ) start [2025-02-05 13:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408028', 'tblTempUsageDetail_20' ) end [2025-02-05 13:32:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:32:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:32:30] Production.INFO: ==20312== Releasing lock... [2025-02-05 13:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:32:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:33:05 [end_date_ymd] => 2025-02-05 13:33:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:33:05' and `end` < '2025-02-05 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:33:21] Production.INFO: count ==4815 [2025-02-05 13:33:23] Production.ERROR: pbx CDR StartTime 2025-02-05 10:33:05 - End Time 2025-02-05 13:33:05 [2025-02-05 13:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408033', 'tblTempUsageDetail_20' ) start [2025-02-05 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408033', 'tblTempUsageDetail_20' ) end [2025-02-05 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408033', 'tblTempVendorCDR_20' ) start [2025-02-05 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408033', 'tblTempVendorCDR_20' ) end [2025-02-05 13:33:23] Production.INFO: ProcessCDR(1,14408033,1,1,2) [2025-02-05 13:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408033', 'tblTempUsageDetail_20' ) start [2025-02-05 13:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408033', 'tblTempUsageDetail_20' ) end [2025-02-05 13:33:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:33:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:33:28] Production.INFO: ==20396== Releasing lock... [2025-02-05 13:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:33:28] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:34:05 [end_date_ymd] => 2025-02-05 13:34:05 [RateCDR] => 1 ) [2025-02-05 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:34:05' and `end` < '2025-02-05 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:34:19] Production.INFO: count ==4814 [2025-02-05 13:34:21] Production.ERROR: pbx CDR StartTime 2025-02-05 10:34:05 - End Time 2025-02-05 13:34:05 [2025-02-05 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408038', 'tblTempUsageDetail_20' ) start [2025-02-05 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408038', 'tblTempUsageDetail_20' ) end [2025-02-05 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408038', 'tblTempVendorCDR_20' ) start [2025-02-05 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408038', 'tblTempVendorCDR_20' ) end [2025-02-05 13:34:21] Production.INFO: ProcessCDR(1,14408038,1,1,2) [2025-02-05 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408038', 'tblTempUsageDetail_20' ) start [2025-02-05 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408038', 'tblTempUsageDetail_20' ) end [2025-02-05 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:34:26] Production.INFO: ==20481== Releasing lock... [2025-02-05 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:34:26] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:35:04 [end_date_ymd] => 2025-02-05 13:35:04 [RateCDR] => 1 ) [2025-02-05 13:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:35:04' and `end` < '2025-02-05 13:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:35:23] Production.INFO: count ==4814 [2025-02-05 13:35:25] Production.ERROR: pbx CDR StartTime 2025-02-05 10:35:04 - End Time 2025-02-05 13:35:04 [2025-02-05 13:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408043', 'tblTempUsageDetail_20' ) start [2025-02-05 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408043', 'tblTempUsageDetail_20' ) end [2025-02-05 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408043', 'tblTempVendorCDR_20' ) start [2025-02-05 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408043', 'tblTempVendorCDR_20' ) end [2025-02-05 13:35:26] Production.INFO: ProcessCDR(1,14408043,1,1,2) [2025-02-05 13:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408043', 'tblTempUsageDetail_20' ) start [2025-02-05 13:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408043', 'tblTempUsageDetail_20' ) end [2025-02-05 13:35:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:35:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:35:30] Production.INFO: ==20565== Releasing lock... [2025-02-05 13:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:35:30] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:36:05 [end_date_ymd] => 2025-02-05 13:36:05 [RateCDR] => 1 ) [2025-02-05 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:36:05' and `end` < '2025-02-05 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:36:22] Production.INFO: count ==4811 [2025-02-05 13:36:24] Production.ERROR: pbx CDR StartTime 2025-02-05 10:36:05 - End Time 2025-02-05 13:36:05 [2025-02-05 13:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408048', 'tblTempUsageDetail_20' ) start [2025-02-05 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408048', 'tblTempUsageDetail_20' ) end [2025-02-05 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408048', 'tblTempVendorCDR_20' ) start [2025-02-05 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408048', 'tblTempVendorCDR_20' ) end [2025-02-05 13:36:24] Production.INFO: ProcessCDR(1,14408048,1,1,2) [2025-02-05 13:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408048', 'tblTempUsageDetail_20' ) start [2025-02-05 13:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408048', 'tblTempUsageDetail_20' ) end [2025-02-05 13:36:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:36:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:36:29] Production.INFO: ==20646== Releasing lock... [2025-02-05 13:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:36:29] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:37:05 [end_date_ymd] => 2025-02-05 13:37:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:37:05' and `end` < '2025-02-05 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-02-05 13:37:22] Production.INFO: count ==4815 [2025-02-05 13:37:24] Production.ERROR: pbx CDR StartTime 2025-02-05 10:37:05 - End Time 2025-02-05 13:37:05 [2025-02-05 13:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408053', 'tblTempUsageDetail_20' ) start [2025-02-05 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408053', 'tblTempUsageDetail_20' ) end [2025-02-05 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408053', 'tblTempVendorCDR_20' ) start [2025-02-05 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408053', 'tblTempVendorCDR_20' ) end [2025-02-05 13:37:24] Production.INFO: ProcessCDR(1,14408053,1,1,2) [2025-02-05 13:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408053', 'tblTempUsageDetail_20' ) start [2025-02-05 13:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408053', 'tblTempUsageDetail_20' ) end [2025-02-05 13:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:37:29] Production.INFO: ==20725== Releasing lock... [2025-02-05 13:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:37:29] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:38:04 [end_date_ymd] => 2025-02-05 13:38:04 [RateCDR] => 1 ) [2025-02-05 13:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:38:04' and `end` < '2025-02-05 13:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:38:18] Production.INFO: count ==4810 [2025-02-05 13:38:20] Production.ERROR: pbx CDR StartTime 2025-02-05 10:38:04 - End Time 2025-02-05 13:38:04 [2025-02-05 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408054', 'tblTempUsageDetail_20' ) start [2025-02-05 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408054', 'tblTempUsageDetail_20' ) end [2025-02-05 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408054', 'tblTempVendorCDR_20' ) start [2025-02-05 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408054', 'tblTempVendorCDR_20' ) end [2025-02-05 13:38:20] Production.INFO: ProcessCDR(1,14408054,1,1,2) [2025-02-05 13:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408054', 'tblTempUsageDetail_20' ) start [2025-02-05 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408054', 'tblTempUsageDetail_20' ) end [2025-02-05 13:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:38:25] Production.INFO: ==20805== Releasing lock... [2025-02-05 13:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:38:25] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:39:06 [end_date_ymd] => 2025-02-05 13:39:06 [RateCDR] => 1 ) [2025-02-05 13:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:39:06' and `end` < '2025-02-05 13:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:39:19] Production.INFO: count ==4825 [2025-02-05 13:39:21] Production.ERROR: pbx CDR StartTime 2025-02-05 10:39:06 - End Time 2025-02-05 13:39:06 [2025-02-05 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408063', 'tblTempUsageDetail_20' ) start [2025-02-05 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408063', 'tblTempUsageDetail_20' ) end [2025-02-05 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408063', 'tblTempVendorCDR_20' ) start [2025-02-05 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408063', 'tblTempVendorCDR_20' ) end [2025-02-05 13:39:21] Production.INFO: ProcessCDR(1,14408063,1,1,2) [2025-02-05 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408063', 'tblTempUsageDetail_20' ) start [2025-02-05 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408063', 'tblTempUsageDetail_20' ) end [2025-02-05 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:39:26] Production.INFO: ==20924== Releasing lock... [2025-02-05 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:39:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:40:05 [end_date_ymd] => 2025-02-05 13:40:05 [RateCDR] => 1 ) [2025-02-05 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:40:05' and `end` < '2025-02-05 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:40:20] Production.INFO: count ==4840 [2025-02-05 13:40:22] Production.ERROR: pbx CDR StartTime 2025-02-05 10:40:05 - End Time 2025-02-05 13:40:05 [2025-02-05 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408069', 'tblTempUsageDetail_20' ) start [2025-02-05 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408069', 'tblTempUsageDetail_20' ) end [2025-02-05 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408069', 'tblTempVendorCDR_20' ) start [2025-02-05 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408069', 'tblTempVendorCDR_20' ) end [2025-02-05 13:40:22] Production.INFO: ProcessCDR(1,14408069,1,1,2) [2025-02-05 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408069', 'tblTempUsageDetail_20' ) start [2025-02-05 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408069', 'tblTempUsageDetail_20' ) end [2025-02-05 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:40:27] Production.INFO: ==21004== Releasing lock... [2025-02-05 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:40:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:41:05 [end_date_ymd] => 2025-02-05 13:41:05 [RateCDR] => 1 ) [2025-02-05 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:41:05' and `end` < '2025-02-05 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:41:20] Production.INFO: count ==4790 [2025-02-05 13:41:22] Production.ERROR: pbx CDR StartTime 2025-02-05 10:41:05 - End Time 2025-02-05 13:41:05 [2025-02-05 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408074', 'tblTempUsageDetail_20' ) start [2025-02-05 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408074', 'tblTempUsageDetail_20' ) end [2025-02-05 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408074', 'tblTempVendorCDR_20' ) start [2025-02-05 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408074', 'tblTempVendorCDR_20' ) end [2025-02-05 13:41:22] Production.INFO: ProcessCDR(1,14408074,1,1,2) [2025-02-05 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408074', 'tblTempUsageDetail_20' ) start [2025-02-05 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408074', 'tblTempUsageDetail_20' ) end [2025-02-05 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:41:27] Production.INFO: ==21090== Releasing lock... [2025-02-05 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:41:27] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:42:05 [end_date_ymd] => 2025-02-05 13:42:05 [RateCDR] => 1 ) [2025-02-05 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:42:05' and `end` < '2025-02-05 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:42:19] Production.INFO: count ==4770 [2025-02-05 13:42:21] Production.ERROR: pbx CDR StartTime 2025-02-05 10:42:05 - End Time 2025-02-05 13:42:05 [2025-02-05 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408079', 'tblTempUsageDetail_20' ) start [2025-02-05 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408079', 'tblTempUsageDetail_20' ) end [2025-02-05 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408079', 'tblTempVendorCDR_20' ) start [2025-02-05 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408079', 'tblTempVendorCDR_20' ) end [2025-02-05 13:42:22] Production.INFO: ProcessCDR(1,14408079,1,1,2) [2025-02-05 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408079', 'tblTempUsageDetail_20' ) start [2025-02-05 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408079', 'tblTempUsageDetail_20' ) end [2025-02-05 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:42:26] Production.INFO: ==21170== Releasing lock... [2025-02-05 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:42:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:43:05 [end_date_ymd] => 2025-02-05 13:43:05 [RateCDR] => 1 ) [2025-02-05 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:43:05' and `end` < '2025-02-05 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:43:19] Production.INFO: count ==4753 [2025-02-05 13:43:21] Production.ERROR: pbx CDR StartTime 2025-02-05 10:43:05 - End Time 2025-02-05 13:43:05 [2025-02-05 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408084', 'tblTempUsageDetail_20' ) start [2025-02-05 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408084', 'tblTempUsageDetail_20' ) end [2025-02-05 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408084', 'tblTempVendorCDR_20' ) start [2025-02-05 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408084', 'tblTempVendorCDR_20' ) end [2025-02-05 13:43:21] Production.INFO: ProcessCDR(1,14408084,1,1,2) [2025-02-05 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408084', 'tblTempUsageDetail_20' ) start [2025-02-05 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408084', 'tblTempUsageDetail_20' ) end [2025-02-05 13:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:43:25] Production.INFO: ==21253== Releasing lock... [2025-02-05 13:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:43:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-05 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:44:05 [end_date_ymd] => 2025-02-05 13:44:05 [RateCDR] => 1 ) [2025-02-05 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:44:05' and `end` < '2025-02-05 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:44:19] Production.INFO: count ==4743 [2025-02-05 13:44:21] Production.ERROR: pbx CDR StartTime 2025-02-05 10:44:05 - End Time 2025-02-05 13:44:05 [2025-02-05 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408089', 'tblTempUsageDetail_20' ) start [2025-02-05 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408089', 'tblTempUsageDetail_20' ) end [2025-02-05 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408089', 'tblTempVendorCDR_20' ) start [2025-02-05 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408089', 'tblTempVendorCDR_20' ) end [2025-02-05 13:44:21] Production.INFO: ProcessCDR(1,14408089,1,1,2) [2025-02-05 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408089', 'tblTempUsageDetail_20' ) start [2025-02-05 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408089', 'tblTempUsageDetail_20' ) end [2025-02-05 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:44:26] Production.INFO: ==21340== Releasing lock... [2025-02-05 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:44:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-05 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:45:06 [end_date_ymd] => 2025-02-05 13:45:06 [RateCDR] => 1 ) [2025-02-05 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:45:06' and `end` < '2025-02-05 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:45:19] Production.INFO: count ==4744 [2025-02-05 13:45:21] Production.ERROR: pbx CDR StartTime 2025-02-05 10:45:06 - End Time 2025-02-05 13:45:06 [2025-02-05 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408094', 'tblTempUsageDetail_20' ) start [2025-02-05 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408094', 'tblTempUsageDetail_20' ) end [2025-02-05 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408094', 'tblTempVendorCDR_20' ) start [2025-02-05 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408094', 'tblTempVendorCDR_20' ) end [2025-02-05 13:45:21] Production.INFO: ProcessCDR(1,14408094,1,1,2) [2025-02-05 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408094', 'tblTempUsageDetail_20' ) start [2025-02-05 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408094', 'tblTempUsageDetail_20' ) end [2025-02-05 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:45:26] Production.INFO: ==21425== Releasing lock... [2025-02-05 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:45:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-05 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:46:05 [end_date_ymd] => 2025-02-05 13:46:05 [RateCDR] => 1 ) [2025-02-05 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:46:05' and `end` < '2025-02-05 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:46:21] Production.INFO: count ==4758 [2025-02-05 13:46:23] Production.ERROR: pbx CDR StartTime 2025-02-05 10:46:05 - End Time 2025-02-05 13:46:05 [2025-02-05 13:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408099', 'tblTempUsageDetail_20' ) start [2025-02-05 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408099', 'tblTempUsageDetail_20' ) end [2025-02-05 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408099', 'tblTempVendorCDR_20' ) start [2025-02-05 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408099', 'tblTempVendorCDR_20' ) end [2025-02-05 13:46:23] Production.INFO: ProcessCDR(1,14408099,1,1,2) [2025-02-05 13:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408099', 'tblTempUsageDetail_20' ) start [2025-02-05 13:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408099', 'tblTempUsageDetail_20' ) end [2025-02-05 13:46:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:46:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:46:29] Production.INFO: ==21503== Releasing lock... [2025-02-05 13:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:46:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:47:05 [end_date_ymd] => 2025-02-05 13:47:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:47:05' and `end` < '2025-02-05 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-02-05 13:47:22] Production.INFO: count ==4777 [2025-02-05 13:47:24] Production.ERROR: pbx CDR StartTime 2025-02-05 10:47:05 - End Time 2025-02-05 13:47:05 [2025-02-05 13:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408104', 'tblTempUsageDetail_20' ) start [2025-02-05 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408104', 'tblTempUsageDetail_20' ) end [2025-02-05 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408104', 'tblTempVendorCDR_20' ) start [2025-02-05 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408104', 'tblTempVendorCDR_20' ) end [2025-02-05 13:47:24] Production.INFO: ProcessCDR(1,14408104,1,1,2) [2025-02-05 13:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408104', 'tblTempUsageDetail_20' ) start [2025-02-05 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408104', 'tblTempUsageDetail_20' ) end [2025-02-05 13:47:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:47:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:47:29] Production.INFO: ==21584== Releasing lock... [2025-02-05 13:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:47:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:48:05 [end_date_ymd] => 2025-02-05 13:48:05 [RateCDR] => 1 ) [2025-02-05 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:48:05' and `end` < '2025-02-05 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:48:20] Production.INFO: count ==4781 [2025-02-05 13:48:22] Production.ERROR: pbx CDR StartTime 2025-02-05 10:48:05 - End Time 2025-02-05 13:48:05 [2025-02-05 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408109', 'tblTempUsageDetail_20' ) start [2025-02-05 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408109', 'tblTempUsageDetail_20' ) end [2025-02-05 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408109', 'tblTempVendorCDR_20' ) start [2025-02-05 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408109', 'tblTempVendorCDR_20' ) end [2025-02-05 13:48:22] Production.INFO: ProcessCDR(1,14408109,1,1,2) [2025-02-05 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408109', 'tblTempUsageDetail_20' ) start [2025-02-05 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408109', 'tblTempUsageDetail_20' ) end [2025-02-05 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:48:27] Production.INFO: ==21671== Releasing lock... [2025-02-05 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:48:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 13:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:49:04 [end_date_ymd] => 2025-02-05 13:49:04 [RateCDR] => 1 ) [2025-02-05 13:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:49:04' and `end` < '2025-02-05 13:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:49:25] Production.INFO: count ==4794 [2025-02-05 13:49:27] Production.ERROR: pbx CDR StartTime 2025-02-05 10:49:04 - End Time 2025-02-05 13:49:04 [2025-02-05 13:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408114', 'tblTempUsageDetail_20' ) start [2025-02-05 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408114', 'tblTempUsageDetail_20' ) end [2025-02-05 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408114', 'tblTempVendorCDR_20' ) start [2025-02-05 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408114', 'tblTempVendorCDR_20' ) end [2025-02-05 13:49:27] Production.INFO: ProcessCDR(1,14408114,1,1,2) [2025-02-05 13:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408114', 'tblTempUsageDetail_20' ) start [2025-02-05 13:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408114', 'tblTempUsageDetail_20' ) end [2025-02-05 13:49:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:49:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:49:32] Production.INFO: ==21754== Releasing lock... [2025-02-05 13:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:49:32] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:50:06 [end_date_ymd] => 2025-02-05 13:50:06 [RateCDR] => 1 ) [2025-02-05 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:50:06' and `end` < '2025-02-05 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:50:25] Production.INFO: count ==4800 [2025-02-05 13:50:27] Production.ERROR: pbx CDR StartTime 2025-02-05 10:50:06 - End Time 2025-02-05 13:50:06 [2025-02-05 13:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408120', 'tblTempUsageDetail_20' ) start [2025-02-05 13:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408120', 'tblTempUsageDetail_20' ) end [2025-02-05 13:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408120', 'tblTempVendorCDR_20' ) start [2025-02-05 13:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408120', 'tblTempVendorCDR_20' ) end [2025-02-05 13:50:28] Production.INFO: ProcessCDR(1,14408120,1,1,2) [2025-02-05 13:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408120', 'tblTempUsageDetail_20' ) start [2025-02-05 13:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408120', 'tblTempUsageDetail_20' ) end [2025-02-05 13:50:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:50:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:50:32] Production.INFO: ==21833== Releasing lock... [2025-02-05 13:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:50:32] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:51:05 [end_date_ymd] => 2025-02-05 13:51:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:51:05' and `end` < '2025-02-05 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-02-05 13:51:18] Production.INFO: count ==4791 [2025-02-05 13:51:20] Production.ERROR: pbx CDR StartTime 2025-02-05 10:51:05 - End Time 2025-02-05 13:51:05 [2025-02-05 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408125', 'tblTempUsageDetail_20' ) start [2025-02-05 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408125', 'tblTempUsageDetail_20' ) end [2025-02-05 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408125', 'tblTempVendorCDR_20' ) start [2025-02-05 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408125', 'tblTempVendorCDR_20' ) end [2025-02-05 13:51:21] Production.INFO: ProcessCDR(1,14408125,1,1,2) [2025-02-05 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408125', 'tblTempUsageDetail_20' ) start [2025-02-05 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408125', 'tblTempUsageDetail_20' ) end [2025-02-05 13:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:51:25] Production.INFO: ==21917== Releasing lock... [2025-02-05 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:51:25] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:52:05 [end_date_ymd] => 2025-02-05 13:52:05 [RateCDR] => 1 ) [2025-02-05 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:52:05' and `end` < '2025-02-05 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:52:27] Production.INFO: count ==4789 [2025-02-05 13:52:29] Production.ERROR: pbx CDR StartTime 2025-02-05 10:52:05 - End Time 2025-02-05 13:52:05 [2025-02-05 13:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408130', 'tblTempUsageDetail_20' ) start [2025-02-05 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408130', 'tblTempUsageDetail_20' ) end [2025-02-05 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408130', 'tblTempVendorCDR_20' ) start [2025-02-05 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408130', 'tblTempVendorCDR_20' ) end [2025-02-05 13:52:29] Production.INFO: ProcessCDR(1,14408130,1,1,2) [2025-02-05 13:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408130', 'tblTempUsageDetail_20' ) start [2025-02-05 13:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408130', 'tblTempUsageDetail_20' ) end [2025-02-05 13:52:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:52:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:52:34] Production.INFO: ==21998== Releasing lock... [2025-02-05 13:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:52:34] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:53:05 [end_date_ymd] => 2025-02-05 13:53:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:53:05' and `end` < '2025-02-05 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-02-05 13:53:23] Production.INFO: count ==4783 [2025-02-05 13:53:26] Production.ERROR: pbx CDR StartTime 2025-02-05 10:53:05 - End Time 2025-02-05 13:53:05 [2025-02-05 13:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408135', 'tblTempUsageDetail_20' ) start [2025-02-05 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408135', 'tblTempUsageDetail_20' ) end [2025-02-05 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408135', 'tblTempVendorCDR_20' ) start [2025-02-05 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408135', 'tblTempVendorCDR_20' ) end [2025-02-05 13:53:26] Production.INFO: ProcessCDR(1,14408135,1,1,2) [2025-02-05 13:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408135', 'tblTempUsageDetail_20' ) start [2025-02-05 13:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408135', 'tblTempUsageDetail_20' ) end [2025-02-05 13:53:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:53:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:53:31] Production.INFO: ==22077== Releasing lock... [2025-02-05 13:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:53:31] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:54:05 [end_date_ymd] => 2025-02-05 13:54:05 [RateCDR] => 1 ) [2025-02-05 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:54:05' and `end` < '2025-02-05 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:54:23] Production.INFO: count ==4805 [2025-02-05 13:54:25] Production.ERROR: pbx CDR StartTime 2025-02-05 10:54:05 - End Time 2025-02-05 13:54:05 [2025-02-05 13:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408140', 'tblTempUsageDetail_20' ) start [2025-02-05 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408140', 'tblTempUsageDetail_20' ) end [2025-02-05 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408140', 'tblTempVendorCDR_20' ) start [2025-02-05 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408140', 'tblTempVendorCDR_20' ) end [2025-02-05 13:54:25] Production.INFO: ProcessCDR(1,14408140,1,1,2) [2025-02-05 13:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408140', 'tblTempUsageDetail_20' ) start [2025-02-05 13:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408140', 'tblTempUsageDetail_20' ) end [2025-02-05 13:54:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:54:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:54:30] Production.INFO: ==22193== Releasing lock... [2025-02-05 13:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:54:30] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:55:05 [end_date_ymd] => 2025-02-05 13:55:05 [RateCDR] => 1 ) [2025-02-05 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:55:05' and `end` < '2025-02-05 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:55:23] Production.INFO: count ==4791 [2025-02-05 13:55:25] Production.ERROR: pbx CDR StartTime 2025-02-05 10:55:05 - End Time 2025-02-05 13:55:05 [2025-02-05 13:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408145', 'tblTempUsageDetail_20' ) start [2025-02-05 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408145', 'tblTempUsageDetail_20' ) end [2025-02-05 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408145', 'tblTempVendorCDR_20' ) start [2025-02-05 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408145', 'tblTempVendorCDR_20' ) end [2025-02-05 13:55:25] Production.INFO: ProcessCDR(1,14408145,1,1,2) [2025-02-05 13:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408145', 'tblTempUsageDetail_20' ) start [2025-02-05 13:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408145', 'tblTempUsageDetail_20' ) end [2025-02-05 13:55:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:55:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:55:30] Production.INFO: ==22269== Releasing lock... [2025-02-05 13:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:55:30] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:56:05 [end_date_ymd] => 2025-02-05 13:56:05 [RateCDR] => 1 ) [2025-02-05 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:56:05' and `end` < '2025-02-05 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:56:21] Production.INFO: count ==4809 [2025-02-05 13:56:23] Production.ERROR: pbx CDR StartTime 2025-02-05 10:56:05 - End Time 2025-02-05 13:56:05 [2025-02-05 13:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408150', 'tblTempUsageDetail_20' ) start [2025-02-05 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408150', 'tblTempUsageDetail_20' ) end [2025-02-05 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408150', 'tblTempVendorCDR_20' ) start [2025-02-05 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408150', 'tblTempVendorCDR_20' ) end [2025-02-05 13:56:23] Production.INFO: ProcessCDR(1,14408150,1,1,2) [2025-02-05 13:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408150', 'tblTempUsageDetail_20' ) start [2025-02-05 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408150', 'tblTempUsageDetail_20' ) end [2025-02-05 13:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:56:28] Production.INFO: ==22346== Releasing lock... [2025-02-05 13:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:56:28] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:57:05 [end_date_ymd] => 2025-02-05 13:57:05 [RateCDR] => 1 ) [2025-02-05 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:57:05' and `end` < '2025-02-05 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:57:20] Production.INFO: count ==4819 [2025-02-05 13:57:22] Production.ERROR: pbx CDR StartTime 2025-02-05 10:57:05 - End Time 2025-02-05 13:57:05 [2025-02-05 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408155', 'tblTempUsageDetail_20' ) start [2025-02-05 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408155', 'tblTempUsageDetail_20' ) end [2025-02-05 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408155', 'tblTempVendorCDR_20' ) start [2025-02-05 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408155', 'tblTempVendorCDR_20' ) end [2025-02-05 13:57:22] Production.INFO: ProcessCDR(1,14408155,1,1,2) [2025-02-05 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408155', 'tblTempUsageDetail_20' ) start [2025-02-05 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408155', 'tblTempUsageDetail_20' ) end [2025-02-05 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:57:27] Production.INFO: ==22430== Releasing lock... [2025-02-05 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:57:27] Production.INFO: 64 MB #Memory Used# [2025-02-05 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:58:05 [end_date_ymd] => 2025-02-05 13:58:05 [RateCDR] => 1 ) [2025-02-05 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 10:58:05' and `end` < '2025-02-05 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 13:58:22] Production.INFO: count ==4827 [2025-02-05 13:58:24] Production.ERROR: pbx CDR StartTime 2025-02-05 10:58:05 - End Time 2025-02-05 13:58:05 [2025-02-05 13:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408160', 'tblTempUsageDetail_20' ) start [2025-02-05 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408160', 'tblTempUsageDetail_20' ) end [2025-02-05 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408160', 'tblTempVendorCDR_20' ) start [2025-02-05 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408160', 'tblTempVendorCDR_20' ) end [2025-02-05 13:58:24] Production.INFO: ProcessCDR(1,14408160,1,1,2) [2025-02-05 13:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408160', 'tblTempUsageDetail_20' ) start [2025-02-05 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408160', 'tblTempUsageDetail_20' ) end [2025-02-05 13:58:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:58:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:58:29] Production.INFO: ==22523== Releasing lock... [2025-02-05 13:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:58:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 10:59:05 [end_date_ymd] => 2025-02-05 13:59:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 10:59:05' and `end` < '2025-02-05 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-02-05 13:59:31] Production.INFO: count ==4868 [2025-02-05 13:59:34] Production.ERROR: pbx CDR StartTime 2025-02-05 10:59:05 - End Time 2025-02-05 13:59:05 [2025-02-05 13:59:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 13:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408165', 'tblTempUsageDetail_20' ) start [2025-02-05 13:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408165', 'tblTempUsageDetail_20' ) end [2025-02-05 13:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408165', 'tblTempVendorCDR_20' ) start [2025-02-05 13:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408165', 'tblTempVendorCDR_20' ) end [2025-02-05 13:59:34] Production.INFO: ProcessCDR(1,14408165,1,1,2) [2025-02-05 13:59:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:59:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 13:59:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:59:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 13:59:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408165', 'tblTempUsageDetail_20' ) start [2025-02-05 13:59:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408165', 'tblTempUsageDetail_20' ) end [2025-02-05 13:59:39] Production.ERROR: pbx prc_insertCDR start [2025-02-05 13:59:39] Production.ERROR: pbx prc_insertCDR end [2025-02-05 13:59:39] Production.INFO: ==22603== Releasing lock... [2025-02-05 13:59:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 13:59:39] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:00:06 [end_date_ymd] => 2025-02-05 14:00:06 [RateCDR] => 1 ) [2025-02-05 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:00:06' and `end` < '2025-02-05 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:00:30] Production.INFO: count ==4871 [2025-02-05 14:00:32] Production.ERROR: pbx CDR StartTime 2025-02-05 11:00:06 - End Time 2025-02-05 14:00:06 [2025-02-05 14:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408170', 'tblTempUsageDetail_20' ) start [2025-02-05 14:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408170', 'tblTempUsageDetail_20' ) end [2025-02-05 14:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408170', 'tblTempVendorCDR_20' ) start [2025-02-05 14:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408170', 'tblTempVendorCDR_20' ) end [2025-02-05 14:00:33] Production.INFO: ProcessCDR(1,14408170,1,1,2) [2025-02-05 14:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:00:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:00:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408170', 'tblTempUsageDetail_20' ) start [2025-02-05 14:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408170', 'tblTempUsageDetail_20' ) end [2025-02-05 14:00:37] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:00:38] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:00:38] Production.INFO: ==22684== Releasing lock... [2025-02-05 14:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:00:38] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:01:05 [end_date_ymd] => 2025-02-05 14:01:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 11:01:05' and `end` < '2025-02-05 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-02-05 14:01:24] Production.INFO: count ==4888 [2025-02-05 14:01:26] Production.ERROR: pbx CDR StartTime 2025-02-05 11:01:05 - End Time 2025-02-05 14:01:05 [2025-02-05 14:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408176', 'tblTempUsageDetail_20' ) start [2025-02-05 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408176', 'tblTempUsageDetail_20' ) end [2025-02-05 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408176', 'tblTempVendorCDR_20' ) start [2025-02-05 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408176', 'tblTempVendorCDR_20' ) end [2025-02-05 14:01:26] Production.INFO: ProcessCDR(1,14408176,1,1,2) [2025-02-05 14:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408176', 'tblTempUsageDetail_20' ) start [2025-02-05 14:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408176', 'tblTempUsageDetail_20' ) end [2025-02-05 14:01:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:01:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:01:31] Production.INFO: ==22787== Releasing lock... [2025-02-05 14:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:01:31] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:02:05 [end_date_ymd] => 2025-02-05 14:02:05 [RateCDR] => 1 ) [2025-02-05 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:02:05' and `end` < '2025-02-05 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:02:20] Production.INFO: count ==4901 [2025-02-05 14:02:22] Production.ERROR: pbx CDR StartTime 2025-02-05 11:02:05 - End Time 2025-02-05 14:02:05 [2025-02-05 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408180', 'tblTempUsageDetail_20' ) start [2025-02-05 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408180', 'tblTempUsageDetail_20' ) end [2025-02-05 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408180', 'tblTempVendorCDR_20' ) start [2025-02-05 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408180', 'tblTempVendorCDR_20' ) end [2025-02-05 14:02:22] Production.INFO: ProcessCDR(1,14408180,1,1,2) [2025-02-05 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408180', 'tblTempUsageDetail_20' ) start [2025-02-05 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408180', 'tblTempUsageDetail_20' ) end [2025-02-05 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:02:26] Production.INFO: ==22874== Releasing lock... [2025-02-05 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:02:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:03:05 [end_date_ymd] => 2025-02-05 14:03:05 [RateCDR] => 1 ) [2025-02-05 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:03:05' and `end` < '2025-02-05 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-02-05 14:03:24] Production.INFO: count ==4914 [2025-02-05 14:03:26] Production.ERROR: pbx CDR StartTime 2025-02-05 11:03:05 - End Time 2025-02-05 14:03:05 [2025-02-05 14:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408186', 'tblTempUsageDetail_20' ) start [2025-02-05 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408186', 'tblTempUsageDetail_20' ) end [2025-02-05 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408186', 'tblTempVendorCDR_20' ) start [2025-02-05 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408186', 'tblTempVendorCDR_20' ) end [2025-02-05 14:03:26] Production.INFO: ProcessCDR(1,14408186,1,1,2) [2025-02-05 14:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408186', 'tblTempUsageDetail_20' ) start [2025-02-05 14:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408186', 'tblTempUsageDetail_20' ) end [2025-02-05 14:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:03:31] Production.INFO: ==22954== Releasing lock... [2025-02-05 14:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:03:31] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:04:05 [end_date_ymd] => 2025-02-05 14:04:05 [RateCDR] => 1 ) [2025-02-05 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:04:05' and `end` < '2025-02-05 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:04:21] Production.INFO: count ==4896 [2025-02-05 14:04:23] Production.ERROR: pbx CDR StartTime 2025-02-05 11:04:05 - End Time 2025-02-05 14:04:05 [2025-02-05 14:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408191', 'tblTempUsageDetail_20' ) start [2025-02-05 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408191', 'tblTempUsageDetail_20' ) end [2025-02-05 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408191', 'tblTempVendorCDR_20' ) start [2025-02-05 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408191', 'tblTempVendorCDR_20' ) end [2025-02-05 14:04:24] Production.INFO: ProcessCDR(1,14408191,1,1,2) [2025-02-05 14:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408191', 'tblTempUsageDetail_20' ) start [2025-02-05 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408191', 'tblTempUsageDetail_20' ) end [2025-02-05 14:04:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:04:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:04:28] Production.INFO: ==23030== Releasing lock... [2025-02-05 14:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:04:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:05:05 [end_date_ymd] => 2025-02-05 14:05:05 [RateCDR] => 1 ) [2025-02-05 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:05:05' and `end` < '2025-02-05 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:05:18] Production.INFO: count ==4900 [2025-02-05 14:05:20] Production.ERROR: pbx CDR StartTime 2025-02-05 11:05:05 - End Time 2025-02-05 14:05:05 [2025-02-05 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408196', 'tblTempUsageDetail_20' ) start [2025-02-05 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408196', 'tblTempUsageDetail_20' ) end [2025-02-05 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408196', 'tblTempVendorCDR_20' ) start [2025-02-05 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408196', 'tblTempVendorCDR_20' ) end [2025-02-05 14:05:21] Production.INFO: ProcessCDR(1,14408196,1,1,2) [2025-02-05 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408196', 'tblTempUsageDetail_20' ) start [2025-02-05 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408196', 'tblTempUsageDetail_20' ) end [2025-02-05 14:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:05:25] Production.INFO: ==23108== Releasing lock... [2025-02-05 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:05:25] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:06:05 [end_date_ymd] => 2025-02-05 14:06:05 [RateCDR] => 1 ) [2025-02-05 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:06:05' and `end` < '2025-02-05 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:06:19] Production.INFO: count ==4897 [2025-02-05 14:06:21] Production.ERROR: pbx CDR StartTime 2025-02-05 11:06:05 - End Time 2025-02-05 14:06:05 [2025-02-05 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408201', 'tblTempUsageDetail_20' ) start [2025-02-05 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408201', 'tblTempUsageDetail_20' ) end [2025-02-05 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408201', 'tblTempVendorCDR_20' ) start [2025-02-05 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408201', 'tblTempVendorCDR_20' ) end [2025-02-05 14:06:21] Production.INFO: ProcessCDR(1,14408201,1,1,2) [2025-02-05 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408201', 'tblTempUsageDetail_20' ) start [2025-02-05 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408201', 'tblTempUsageDetail_20' ) end [2025-02-05 14:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:06:26] Production.INFO: ==23182== Releasing lock... [2025-02-05 14:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:06:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:07:05 [end_date_ymd] => 2025-02-05 14:07:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 11:07:05' and `end` < '2025-02-05 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-02-05 14:07:22] Production.INFO: count ==4911 [2025-02-05 14:07:24] Production.ERROR: pbx CDR StartTime 2025-02-05 11:07:05 - End Time 2025-02-05 14:07:05 [2025-02-05 14:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408206', 'tblTempUsageDetail_20' ) start [2025-02-05 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408206', 'tblTempUsageDetail_20' ) end [2025-02-05 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408206', 'tblTempVendorCDR_20' ) start [2025-02-05 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408206', 'tblTempVendorCDR_20' ) end [2025-02-05 14:07:24] Production.INFO: ProcessCDR(1,14408206,1,1,2) [2025-02-05 14:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408206', 'tblTempUsageDetail_20' ) start [2025-02-05 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408206', 'tblTempUsageDetail_20' ) end [2025-02-05 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:07:28] Production.INFO: ==23260== Releasing lock... [2025-02-05 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:07:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:08:05 [end_date_ymd] => 2025-02-05 14:08:05 [RateCDR] => 1 ) [2025-02-05 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:08:05' and `end` < '2025-02-05 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:08:20] Production.INFO: count ==4929 [2025-02-05 14:08:22] Production.ERROR: pbx CDR StartTime 2025-02-05 11:08:05 - End Time 2025-02-05 14:08:05 [2025-02-05 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408211', 'tblTempUsageDetail_20' ) start [2025-02-05 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408211', 'tblTempUsageDetail_20' ) end [2025-02-05 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408211', 'tblTempVendorCDR_20' ) start [2025-02-05 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408211', 'tblTempVendorCDR_20' ) end [2025-02-05 14:08:22] Production.INFO: ProcessCDR(1,14408211,1,1,2) [2025-02-05 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408211', 'tblTempUsageDetail_20' ) start [2025-02-05 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408211', 'tblTempUsageDetail_20' ) end [2025-02-05 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:08:27] Production.INFO: ==23335== Releasing lock... [2025-02-05 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:08:27] Production.INFO: 65 MB #Memory Used# [2025-02-05 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:09:05 [end_date_ymd] => 2025-02-05 14:09:05 [RateCDR] => 1 ) [2025-02-05 14:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:09:05' and `end` < '2025-02-05 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:09:19] Production.INFO: count ==4922 [2025-02-05 14:09:21] Production.ERROR: pbx CDR StartTime 2025-02-05 11:09:05 - End Time 2025-02-05 14:09:05 [2025-02-05 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408216', 'tblTempUsageDetail_20' ) start [2025-02-05 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408216', 'tblTempUsageDetail_20' ) end [2025-02-05 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408216', 'tblTempVendorCDR_20' ) start [2025-02-05 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408216', 'tblTempVendorCDR_20' ) end [2025-02-05 14:09:22] Production.INFO: ProcessCDR(1,14408216,1,1,2) [2025-02-05 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408216', 'tblTempUsageDetail_20' ) start [2025-02-05 14:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408216', 'tblTempUsageDetail_20' ) end [2025-02-05 14:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:09:25] Production.INFO: ==23447== Releasing lock... [2025-02-05 14:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:09:25] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:10:06 [end_date_ymd] => 2025-02-05 14:10:06 [RateCDR] => 1 ) [2025-02-05 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:10:06' and `end` < '2025-02-05 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:10:20] Production.INFO: count ==4925 [2025-02-05 14:10:22] Production.ERROR: pbx CDR StartTime 2025-02-05 11:10:06 - End Time 2025-02-05 14:10:06 [2025-02-05 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408222', 'tblTempUsageDetail_20' ) start [2025-02-05 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408222', 'tblTempUsageDetail_20' ) end [2025-02-05 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408222', 'tblTempVendorCDR_20' ) start [2025-02-05 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408222', 'tblTempVendorCDR_20' ) end [2025-02-05 14:10:22] Production.INFO: ProcessCDR(1,14408222,1,1,2) [2025-02-05 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408222', 'tblTempUsageDetail_20' ) start [2025-02-05 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408222', 'tblTempUsageDetail_20' ) end [2025-02-05 14:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:10:26] Production.INFO: ==23524== Releasing lock... [2025-02-05 14:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:10:26] Production.INFO: 65 MB #Memory Used# [2025-02-05 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:11:05 [end_date_ymd] => 2025-02-05 14:11:05 [RateCDR] => 1 ) [2025-02-05 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:11:05' and `end` < '2025-02-05 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:11:23] Production.INFO: count ==4916 [2025-02-05 14:11:25] Production.ERROR: pbx CDR StartTime 2025-02-05 11:11:05 - End Time 2025-02-05 14:11:05 [2025-02-05 14:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408227', 'tblTempUsageDetail_20' ) start [2025-02-05 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408227', 'tblTempUsageDetail_20' ) end [2025-02-05 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408227', 'tblTempVendorCDR_20' ) start [2025-02-05 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408227', 'tblTempVendorCDR_20' ) end [2025-02-05 14:11:25] Production.INFO: ProcessCDR(1,14408227,1,1,2) [2025-02-05 14:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408227', 'tblTempUsageDetail_20' ) start [2025-02-05 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408227', 'tblTempUsageDetail_20' ) end [2025-02-05 14:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:11:30] Production.INFO: ==23612== Releasing lock... [2025-02-05 14:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:11:30] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 14:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:12:04 [end_date_ymd] => 2025-02-05 14:12:04 [RateCDR] => 1 ) [2025-02-05 14: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-02-05 11:12:04' and `end` < '2025-02-05 14: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-02-05 14:12:20] Production.INFO: count ==4911 [2025-02-05 14:12:22] Production.ERROR: pbx CDR StartTime 2025-02-05 11:12:04 - End Time 2025-02-05 14:12:04 [2025-02-05 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408232', 'tblTempUsageDetail_20' ) start [2025-02-05 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408232', 'tblTempUsageDetail_20' ) end [2025-02-05 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408232', 'tblTempVendorCDR_20' ) start [2025-02-05 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408232', 'tblTempVendorCDR_20' ) end [2025-02-05 14:12:22] Production.INFO: ProcessCDR(1,14408232,1,1,2) [2025-02-05 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408232', 'tblTempUsageDetail_20' ) start [2025-02-05 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408232', 'tblTempUsageDetail_20' ) end [2025-02-05 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:12:26] Production.INFO: ==23684== Releasing lock... [2025-02-05 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:12:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:13:05 [end_date_ymd] => 2025-02-05 14:13:05 [RateCDR] => 1 ) [2025-02-05 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:13:05' and `end` < '2025-02-05 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:13:19] Production.INFO: count ==4924 [2025-02-05 14:13:21] Production.ERROR: pbx CDR StartTime 2025-02-05 11:13:05 - End Time 2025-02-05 14:13:05 [2025-02-05 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408237', 'tblTempUsageDetail_20' ) start [2025-02-05 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408237', 'tblTempUsageDetail_20' ) end [2025-02-05 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408237', 'tblTempVendorCDR_20' ) start [2025-02-05 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408237', 'tblTempVendorCDR_20' ) end [2025-02-05 14:13:21] Production.INFO: ProcessCDR(1,14408237,1,1,2) [2025-02-05 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408237', 'tblTempUsageDetail_20' ) start [2025-02-05 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408237', 'tblTempUsageDetail_20' ) end [2025-02-05 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:13:26] Production.INFO: ==23761== Releasing lock... [2025-02-05 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:13:26] Production.INFO: 65 MB #Memory Used# [2025-02-05 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:14:06 [end_date_ymd] => 2025-02-05 14:14:06 [RateCDR] => 1 ) [2025-02-05 14:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:14:06' and `end` < '2025-02-05 14:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:14:26] Production.INFO: count ==4939 [2025-02-05 14:14:28] Production.ERROR: pbx CDR StartTime 2025-02-05 11:14:06 - End Time 2025-02-05 14:14:06 [2025-02-05 14:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408242', 'tblTempUsageDetail_20' ) start [2025-02-05 14:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408242', 'tblTempUsageDetail_20' ) end [2025-02-05 14:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408242', 'tblTempVendorCDR_20' ) start [2025-02-05 14:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408242', 'tblTempVendorCDR_20' ) end [2025-02-05 14:14:28] Production.INFO: ProcessCDR(1,14408242,1,1,2) [2025-02-05 14:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408242', 'tblTempUsageDetail_20' ) start [2025-02-05 14:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408242', 'tblTempUsageDetail_20' ) end [2025-02-05 14:14:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:14:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:14:33] Production.INFO: ==23838== Releasing lock... [2025-02-05 14:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:14:33] Production.INFO: 65 MB #Memory Used# [2025-02-05 14:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:15:04 [end_date_ymd] => 2025-02-05 14:15:04 [RateCDR] => 1 ) [2025-02-05 14:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:15:04' and `end` < '2025-02-05 14:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:15:19] Production.INFO: count ==4939 [2025-02-05 14:15:21] Production.ERROR: pbx CDR StartTime 2025-02-05 11:15:04 - End Time 2025-02-05 14:15:04 [2025-02-05 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408247', 'tblTempUsageDetail_20' ) start [2025-02-05 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408247', 'tblTempUsageDetail_20' ) end [2025-02-05 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408247', 'tblTempVendorCDR_20' ) start [2025-02-05 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408247', 'tblTempVendorCDR_20' ) end [2025-02-05 14:15:22] Production.INFO: ProcessCDR(1,14408247,1,1,2) [2025-02-05 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408247', 'tblTempUsageDetail_20' ) start [2025-02-05 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408247', 'tblTempUsageDetail_20' ) end [2025-02-05 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:15:26] Production.INFO: ==23918== Releasing lock... [2025-02-05 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:15:26] Production.INFO: 65 MB #Memory Used# [2025-02-05 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:16:05 [end_date_ymd] => 2025-02-05 14:16:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 11:16:05' and `end` < '2025-02-05 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-02-05 14:16:22] Production.INFO: count ==4954 [2025-02-05 14:16:25] Production.ERROR: pbx CDR StartTime 2025-02-05 11:16:05 - End Time 2025-02-05 14:16:05 [2025-02-05 14:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408252', 'tblTempUsageDetail_20' ) start [2025-02-05 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408252', 'tblTempUsageDetail_20' ) end [2025-02-05 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408252', 'tblTempVendorCDR_20' ) start [2025-02-05 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408252', 'tblTempVendorCDR_20' ) end [2025-02-05 14:16:25] Production.INFO: ProcessCDR(1,14408252,1,1,2) [2025-02-05 14:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408252', 'tblTempUsageDetail_20' ) start [2025-02-05 14:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408252', 'tblTempUsageDetail_20' ) end [2025-02-05 14:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:16:30] Production.INFO: ==23992== Releasing lock... [2025-02-05 14:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:16:30] Production.INFO: 65 MB #Memory Used# [2025-02-05 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:17:05 [end_date_ymd] => 2025-02-05 14:17:05 [RateCDR] => 1 ) [2025-02-05 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:17:05' and `end` < '2025-02-05 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:17:21] Production.INFO: count ==4940 [2025-02-05 14:17:23] Production.ERROR: pbx CDR StartTime 2025-02-05 11:17:05 - End Time 2025-02-05 14:17:05 [2025-02-05 14:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408257', 'tblTempUsageDetail_20' ) start [2025-02-05 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408257', 'tblTempUsageDetail_20' ) end [2025-02-05 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408257', 'tblTempVendorCDR_20' ) start [2025-02-05 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408257', 'tblTempVendorCDR_20' ) end [2025-02-05 14:17:23] Production.INFO: ProcessCDR(1,14408257,1,1,2) [2025-02-05 14:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408257', 'tblTempUsageDetail_20' ) start [2025-02-05 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408257', 'tblTempUsageDetail_20' ) end [2025-02-05 14:17:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:17:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:17:28] Production.INFO: ==24074== Releasing lock... [2025-02-05 14:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:17:28] Production.INFO: 65 MB #Memory Used# [2025-02-05 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:18:06 [end_date_ymd] => 2025-02-05 14:18:06 [RateCDR] => 1 ) [2025-02-05 14:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:18:06' and `end` < '2025-02-05 14:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:18:20] Production.INFO: count ==4954 [2025-02-05 14:18:22] Production.ERROR: pbx CDR StartTime 2025-02-05 11:18:06 - End Time 2025-02-05 14:18:06 [2025-02-05 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408262', 'tblTempUsageDetail_20' ) start [2025-02-05 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408262', 'tblTempUsageDetail_20' ) end [2025-02-05 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408262', 'tblTempVendorCDR_20' ) start [2025-02-05 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408262', 'tblTempVendorCDR_20' ) end [2025-02-05 14:18:22] Production.INFO: ProcessCDR(1,14408262,1,1,2) [2025-02-05 14:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408262', 'tblTempUsageDetail_20' ) start [2025-02-05 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408262', 'tblTempUsageDetail_20' ) end [2025-02-05 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:18:27] Production.INFO: ==24150== Releasing lock... [2025-02-05 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:18:27] Production.INFO: 65 MB #Memory Used# [2025-02-05 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:19:05 [end_date_ymd] => 2025-02-05 14:19:05 [RateCDR] => 1 ) [2025-02-05 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:19:05' and `end` < '2025-02-05 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:19:20] Production.INFO: count ==4964 [2025-02-05 14:19:22] Production.ERROR: pbx CDR StartTime 2025-02-05 11:19:05 - End Time 2025-02-05 14:19:05 [2025-02-05 14:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408267', 'tblTempUsageDetail_20' ) start [2025-02-05 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408267', 'tblTempUsageDetail_20' ) end [2025-02-05 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408267', 'tblTempVendorCDR_20' ) start [2025-02-05 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408267', 'tblTempVendorCDR_20' ) end [2025-02-05 14:19:22] Production.INFO: ProcessCDR(1,14408267,1,1,2) [2025-02-05 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408267', 'tblTempUsageDetail_20' ) start [2025-02-05 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408267', 'tblTempUsageDetail_20' ) end [2025-02-05 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:19:27] Production.INFO: ==24229== Releasing lock... [2025-02-05 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:19:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:20:06 [end_date_ymd] => 2025-02-05 14:20:06 [RateCDR] => 1 ) [2025-02-05 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:20:06' and `end` < '2025-02-05 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:20:29] Production.INFO: count ==4977 [2025-02-05 14:20:31] Production.ERROR: pbx CDR StartTime 2025-02-05 11:20:06 - End Time 2025-02-05 14:20:06 [2025-02-05 14:20:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408273', 'tblTempUsageDetail_20' ) start [2025-02-05 14:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408273', 'tblTempUsageDetail_20' ) end [2025-02-05 14:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408273', 'tblTempVendorCDR_20' ) start [2025-02-05 14:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408273', 'tblTempVendorCDR_20' ) end [2025-02-05 14:20:32] Production.INFO: ProcessCDR(1,14408273,1,1,2) [2025-02-05 14:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408273', 'tblTempUsageDetail_20' ) start [2025-02-05 14:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408273', 'tblTempUsageDetail_20' ) end [2025-02-05 14:20:36] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:20:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:20:36] Production.INFO: ==24307== Releasing lock... [2025-02-05 14:20:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:20:36] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:21:05 [end_date_ymd] => 2025-02-05 14:21:05 [RateCDR] => 1 ) [2025-02-05 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:21:05' and `end` < '2025-02-05 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:21:27] Production.INFO: count ==5005 [2025-02-05 14:21:29] Production.ERROR: pbx CDR StartTime 2025-02-05 11:21:05 - End Time 2025-02-05 14:21:05 [2025-02-05 14:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408278', 'tblTempUsageDetail_20' ) start [2025-02-05 14:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408278', 'tblTempUsageDetail_20' ) end [2025-02-05 14:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408278', 'tblTempVendorCDR_20' ) start [2025-02-05 14:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408278', 'tblTempVendorCDR_20' ) end [2025-02-05 14:21:30] Production.INFO: ProcessCDR(1,14408278,1,1,2) [2025-02-05 14:21:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:21:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:21:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:21:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408278', 'tblTempUsageDetail_20' ) start [2025-02-05 14:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408278', 'tblTempUsageDetail_20' ) end [2025-02-05 14:21:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:21:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:21:34] Production.INFO: ==24389== Releasing lock... [2025-02-05 14:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:21:34] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:22:05 [end_date_ymd] => 2025-02-05 14:22:05 [RateCDR] => 1 ) [2025-02-05 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:22:05' and `end` < '2025-02-05 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:22:22] Production.INFO: count ==5028 [2025-02-05 14:22:24] Production.ERROR: pbx CDR StartTime 2025-02-05 11:22:05 - End Time 2025-02-05 14:22:05 [2025-02-05 14:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408283', 'tblTempUsageDetail_20' ) start [2025-02-05 14:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408283', 'tblTempUsageDetail_20' ) end [2025-02-05 14:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408283', 'tblTempVendorCDR_20' ) start [2025-02-05 14:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408283', 'tblTempVendorCDR_20' ) end [2025-02-05 14:22:24] Production.INFO: ProcessCDR(1,14408283,1,1,2) [2025-02-05 14:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408283', 'tblTempUsageDetail_20' ) start [2025-02-05 14:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408283', 'tblTempUsageDetail_20' ) end [2025-02-05 14:22:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:22:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:22:30] Production.INFO: ==24468== Releasing lock... [2025-02-05 14:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:22:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:23:05 [end_date_ymd] => 2025-02-05 14:23:05 [RateCDR] => 1 ) [2025-02-05 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:23:05' and `end` < '2025-02-05 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:23:21] Production.INFO: count ==5034 [2025-02-05 14:23:23] Production.ERROR: pbx CDR StartTime 2025-02-05 11:23:05 - End Time 2025-02-05 14:23:05 [2025-02-05 14:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408288', 'tblTempUsageDetail_20' ) start [2025-02-05 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408288', 'tblTempUsageDetail_20' ) end [2025-02-05 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408288', 'tblTempVendorCDR_20' ) start [2025-02-05 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408288', 'tblTempVendorCDR_20' ) end [2025-02-05 14:23:23] Production.INFO: ProcessCDR(1,14408288,1,1,2) [2025-02-05 14:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408288', 'tblTempUsageDetail_20' ) start [2025-02-05 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408288', 'tblTempUsageDetail_20' ) end [2025-02-05 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:23:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:23:28] Production.INFO: ==24542== Releasing lock... [2025-02-05 14:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:23:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:24:05 [end_date_ymd] => 2025-02-05 14:24:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 11:24:05' and `end` < '2025-02-05 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-02-05 14:24:21] Production.INFO: count ==5017 [2025-02-05 14:24:23] Production.ERROR: pbx CDR StartTime 2025-02-05 11:24:05 - End Time 2025-02-05 14:24:05 [2025-02-05 14:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408293', 'tblTempUsageDetail_20' ) start [2025-02-05 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408293', 'tblTempUsageDetail_20' ) end [2025-02-05 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408293', 'tblTempVendorCDR_20' ) start [2025-02-05 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408293', 'tblTempVendorCDR_20' ) end [2025-02-05 14:24:23] Production.INFO: ProcessCDR(1,14408293,1,1,2) [2025-02-05 14:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408293', 'tblTempUsageDetail_20' ) start [2025-02-05 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408293', 'tblTempUsageDetail_20' ) end [2025-02-05 14:24:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:24:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:24:28] Production.INFO: ==24620== Releasing lock... [2025-02-05 14:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:24:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:25:05 [end_date_ymd] => 2025-02-05 14:25:05 [RateCDR] => 1 ) [2025-02-05 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:25:05' and `end` < '2025-02-05 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:25:19] Production.INFO: count ==5013 [2025-02-05 14:25:21] Production.ERROR: pbx CDR StartTime 2025-02-05 11:25:05 - End Time 2025-02-05 14:25:05 [2025-02-05 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408297', 'tblTempUsageDetail_20' ) start [2025-02-05 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408297', 'tblTempUsageDetail_20' ) end [2025-02-05 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408297', 'tblTempVendorCDR_20' ) start [2025-02-05 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408297', 'tblTempVendorCDR_20' ) end [2025-02-05 14:25:21] Production.INFO: ProcessCDR(1,14408297,1,1,2) [2025-02-05 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408297', 'tblTempUsageDetail_20' ) start [2025-02-05 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408297', 'tblTempUsageDetail_20' ) end [2025-02-05 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:25:26] Production.INFO: ==24744== Releasing lock... [2025-02-05 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:25:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:26:06 [end_date_ymd] => 2025-02-05 14:26:06 [RateCDR] => 1 ) [2025-02-05 14:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:26:06' and `end` < '2025-02-05 14:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:26:23] Production.INFO: count ==5030 [2025-02-05 14:26:25] Production.ERROR: pbx CDR StartTime 2025-02-05 11:26:06 - End Time 2025-02-05 14:26:06 [2025-02-05 14:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408303', 'tblTempUsageDetail_20' ) start [2025-02-05 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408303', 'tblTempUsageDetail_20' ) end [2025-02-05 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408303', 'tblTempVendorCDR_20' ) start [2025-02-05 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408303', 'tblTempVendorCDR_20' ) end [2025-02-05 14:26:25] Production.INFO: ProcessCDR(1,14408303,1,1,2) [2025-02-05 14:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408303', 'tblTempUsageDetail_20' ) start [2025-02-05 14:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408303', 'tblTempUsageDetail_20' ) end [2025-02-05 14:26:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:26:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:26:30] Production.INFO: ==24826== Releasing lock... [2025-02-05 14:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:26:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:27:05 [end_date_ymd] => 2025-02-05 14:27:05 [RateCDR] => 1 ) [2025-02-05 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:27:05' and `end` < '2025-02-05 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:27:21] Production.INFO: count ==5030 [2025-02-05 14:27:23] Production.ERROR: pbx CDR StartTime 2025-02-05 11:27:05 - End Time 2025-02-05 14:27:05 [2025-02-05 14:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408308', 'tblTempUsageDetail_20' ) start [2025-02-05 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408308', 'tblTempUsageDetail_20' ) end [2025-02-05 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408308', 'tblTempVendorCDR_20' ) start [2025-02-05 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408308', 'tblTempVendorCDR_20' ) end [2025-02-05 14:27:24] Production.INFO: ProcessCDR(1,14408308,1,1,2) [2025-02-05 14:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408308', 'tblTempUsageDetail_20' ) start [2025-02-05 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408308', 'tblTempUsageDetail_20' ) end [2025-02-05 14:27:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:27:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:27:28] Production.INFO: ==24900== Releasing lock... [2025-02-05 14:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:27:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:28:05 [end_date_ymd] => 2025-02-05 14:28:05 [RateCDR] => 1 ) [2025-02-05 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:28:05' and `end` < '2025-02-05 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:28:23] Production.INFO: count ==5033 [2025-02-05 14:28:26] Production.ERROR: pbx CDR StartTime 2025-02-05 11:28:05 - End Time 2025-02-05 14:28:05 [2025-02-05 14:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408313', 'tblTempUsageDetail_20' ) start [2025-02-05 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408313', 'tblTempUsageDetail_20' ) end [2025-02-05 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408313', 'tblTempVendorCDR_20' ) start [2025-02-05 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408313', 'tblTempVendorCDR_20' ) end [2025-02-05 14:28:26] Production.INFO: ProcessCDR(1,14408313,1,1,2) [2025-02-05 14:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408313', 'tblTempUsageDetail_20' ) start [2025-02-05 14:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408313', 'tblTempUsageDetail_20' ) end [2025-02-05 14:28:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:28:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:28:31] Production.INFO: ==24983== Releasing lock... [2025-02-05 14:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:28:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:29:05 [end_date_ymd] => 2025-02-05 14:29:05 [RateCDR] => 1 ) [2025-02-05 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:29:05' and `end` < '2025-02-05 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:29:21] Production.INFO: count ==5026 [2025-02-05 14:29:23] Production.ERROR: pbx CDR StartTime 2025-02-05 11:29:05 - End Time 2025-02-05 14:29:05 [2025-02-05 14:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408318', 'tblTempUsageDetail_20' ) start [2025-02-05 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408318', 'tblTempUsageDetail_20' ) end [2025-02-05 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408318', 'tblTempVendorCDR_20' ) start [2025-02-05 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408318', 'tblTempVendorCDR_20' ) end [2025-02-05 14:29:23] Production.INFO: ProcessCDR(1,14408318,1,1,2) [2025-02-05 14:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408318', 'tblTempUsageDetail_20' ) start [2025-02-05 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408318', 'tblTempUsageDetail_20' ) end [2025-02-05 14:29:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:29:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:29:28] Production.INFO: ==25064== Releasing lock... [2025-02-05 14:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:29:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:30:06 [end_date_ymd] => 2025-02-05 14:30:06 [RateCDR] => 1 ) [2025-02-05 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:30:06' and `end` < '2025-02-05 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:30:20] Production.INFO: count ==5007 [2025-02-05 14:30:22] Production.ERROR: pbx CDR StartTime 2025-02-05 11:30:06 - End Time 2025-02-05 14:30:06 [2025-02-05 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408323', 'tblTempUsageDetail_20' ) start [2025-02-05 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408323', 'tblTempUsageDetail_20' ) end [2025-02-05 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408323', 'tblTempVendorCDR_20' ) start [2025-02-05 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408323', 'tblTempVendorCDR_20' ) end [2025-02-05 14:30:22] Production.INFO: ProcessCDR(1,14408323,1,1,2) [2025-02-05 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408323', 'tblTempUsageDetail_20' ) start [2025-02-05 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408323', 'tblTempUsageDetail_20' ) end [2025-02-05 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:30:27] Production.INFO: ==25141== Releasing lock... [2025-02-05 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:30:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:31:05 [end_date_ymd] => 2025-02-05 14:31:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 11:31:05' and `end` < '2025-02-05 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-02-05 14:31:20] Production.INFO: count ==5002 [2025-02-05 14:31:22] Production.ERROR: pbx CDR StartTime 2025-02-05 11:31:05 - End Time 2025-02-05 14:31:05 [2025-02-05 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408329', 'tblTempUsageDetail_20' ) start [2025-02-05 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408329', 'tblTempUsageDetail_20' ) end [2025-02-05 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408329', 'tblTempVendorCDR_20' ) start [2025-02-05 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408329', 'tblTempVendorCDR_20' ) end [2025-02-05 14:31:22] Production.INFO: ProcessCDR(1,14408329,1,1,2) [2025-02-05 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408329', 'tblTempUsageDetail_20' ) start [2025-02-05 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408329', 'tblTempUsageDetail_20' ) end [2025-02-05 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:31:27] Production.INFO: ==25223== Releasing lock... [2025-02-05 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:31:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:32:05 [end_date_ymd] => 2025-02-05 14:32:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 11:32:05' and `end` < '2025-02-05 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-02-05 14:32:21] Production.INFO: count ==5017 [2025-02-05 14:32:23] Production.ERROR: pbx CDR StartTime 2025-02-05 11:32:05 - End Time 2025-02-05 14:32:05 [2025-02-05 14:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408334', 'tblTempUsageDetail_20' ) start [2025-02-05 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408334', 'tblTempUsageDetail_20' ) end [2025-02-05 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408334', 'tblTempVendorCDR_20' ) start [2025-02-05 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408334', 'tblTempVendorCDR_20' ) end [2025-02-05 14:32:23] Production.INFO: ProcessCDR(1,14408334,1,1,2) [2025-02-05 14:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408334', 'tblTempUsageDetail_20' ) start [2025-02-05 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408334', 'tblTempUsageDetail_20' ) end [2025-02-05 14:32:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:32:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:32:28] Production.INFO: ==25300== Releasing lock... [2025-02-05 14:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:32:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:33:06 [end_date_ymd] => 2025-02-05 14:33:06 [RateCDR] => 1 ) [2025-02-05 14:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:33:06' and `end` < '2025-02-05 14:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:33:22] Production.INFO: count ==5036 [2025-02-05 14:33:24] Production.ERROR: pbx CDR StartTime 2025-02-05 11:33:06 - End Time 2025-02-05 14:33:06 [2025-02-05 14:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408339', 'tblTempUsageDetail_20' ) start [2025-02-05 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408339', 'tblTempUsageDetail_20' ) end [2025-02-05 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408339', 'tblTempVendorCDR_20' ) start [2025-02-05 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408339', 'tblTempVendorCDR_20' ) end [2025-02-05 14:33:24] Production.INFO: ProcessCDR(1,14408339,1,1,2) [2025-02-05 14:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408339', 'tblTempUsageDetail_20' ) start [2025-02-05 14:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408339', 'tblTempUsageDetail_20' ) end [2025-02-05 14:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:33:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:33:29] Production.INFO: ==25378== Releasing lock... [2025-02-05 14:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:33:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:34:05 [end_date_ymd] => 2025-02-05 14:34:05 [RateCDR] => 1 ) [2025-02-05 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:34:05' and `end` < '2025-02-05 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:34:22] Production.INFO: count ==5058 [2025-02-05 14:34:24] Production.ERROR: pbx CDR StartTime 2025-02-05 11:34:05 - End Time 2025-02-05 14:34:05 [2025-02-05 14:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408344', 'tblTempUsageDetail_20' ) start [2025-02-05 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408344', 'tblTempUsageDetail_20' ) end [2025-02-05 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408344', 'tblTempVendorCDR_20' ) start [2025-02-05 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408344', 'tblTempVendorCDR_20' ) end [2025-02-05 14:34:24] Production.INFO: ProcessCDR(1,14408344,1,1,2) [2025-02-05 14:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408344', 'tblTempUsageDetail_20' ) start [2025-02-05 14:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408344', 'tblTempUsageDetail_20' ) end [2025-02-05 14:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:34:29] Production.INFO: ==25459== Releasing lock... [2025-02-05 14:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:34:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:35:06 [end_date_ymd] => 2025-02-05 14:35:06 [RateCDR] => 1 ) [2025-02-05 14:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:35:06' and `end` < '2025-02-05 14:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:35:20] Production.INFO: count ==5058 [2025-02-05 14:35:23] Production.ERROR: pbx CDR StartTime 2025-02-05 11:35:06 - End Time 2025-02-05 14:35:06 [2025-02-05 14:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408349', 'tblTempUsageDetail_20' ) start [2025-02-05 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408349', 'tblTempUsageDetail_20' ) end [2025-02-05 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408349', 'tblTempVendorCDR_20' ) start [2025-02-05 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408349', 'tblTempVendorCDR_20' ) end [2025-02-05 14:35:23] Production.INFO: ProcessCDR(1,14408349,1,1,2) [2025-02-05 14:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408349', 'tblTempUsageDetail_20' ) start [2025-02-05 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408349', 'tblTempUsageDetail_20' ) end [2025-02-05 14:35:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:35:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:35:28] Production.INFO: ==25547== Releasing lock... [2025-02-05 14:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:35:28] Production.INFO: 66 MB #Memory Used# [2025-02-05 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:36:05 [end_date_ymd] => 2025-02-05 14:36:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 11:36:05' and `end` < '2025-02-05 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-02-05 14:36:30] Production.INFO: count ==5086 [2025-02-05 14:36:32] Production.ERROR: pbx CDR StartTime 2025-02-05 11:36:05 - End Time 2025-02-05 14:36:05 [2025-02-05 14:36:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408354', 'tblTempUsageDetail_20' ) start [2025-02-05 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408354', 'tblTempUsageDetail_20' ) end [2025-02-05 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408354', 'tblTempVendorCDR_20' ) start [2025-02-05 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408354', 'tblTempVendorCDR_20' ) end [2025-02-05 14:36:32] Production.INFO: ProcessCDR(1,14408354,1,1,2) [2025-02-05 14:36:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:36:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:36:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:36:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:36:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408354', 'tblTempUsageDetail_20' ) start [2025-02-05 14:36:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408354', 'tblTempUsageDetail_20' ) end [2025-02-05 14:36:37] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:36:37] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:36:37] Production.INFO: ==25626== Releasing lock... [2025-02-05 14:36:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:36:37] Production.INFO: 66 MB #Memory Used# [2025-02-05 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:37:05 [end_date_ymd] => 2025-02-05 14:37:05 [RateCDR] => 1 ) [2025-02-05 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:37:05' and `end` < '2025-02-05 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:37:28] Production.INFO: count ==5113 [2025-02-05 14:37:30] Production.ERROR: pbx CDR StartTime 2025-02-05 11:37:05 - End Time 2025-02-05 14:37:05 [2025-02-05 14:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408359', 'tblTempUsageDetail_20' ) start [2025-02-05 14:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408359', 'tblTempUsageDetail_20' ) end [2025-02-05 14:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408359', 'tblTempVendorCDR_20' ) start [2025-02-05 14:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408359', 'tblTempVendorCDR_20' ) end [2025-02-05 14:37:30] Production.INFO: ProcessCDR(1,14408359,1,1,2) [2025-02-05 14:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408359', 'tblTempUsageDetail_20' ) start [2025-02-05 14:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408359', 'tblTempUsageDetail_20' ) end [2025-02-05 14:37:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:37:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:37:35] Production.INFO: ==25705== Releasing lock... [2025-02-05 14:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:37:35] Production.INFO: 66.25 MB #Memory Used# [2025-02-05 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:38:06 [end_date_ymd] => 2025-02-05 14:38:06 [RateCDR] => 1 ) [2025-02-05 14:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:38:06' and `end` < '2025-02-05 14:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:38:28] Production.INFO: count ==5176 [2025-02-05 14:38:30] Production.ERROR: pbx CDR StartTime 2025-02-05 11:38:06 - End Time 2025-02-05 14:38:06 [2025-02-05 14:38:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408364', 'tblTempUsageDetail_20' ) start [2025-02-05 14:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408364', 'tblTempUsageDetail_20' ) end [2025-02-05 14:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408364', 'tblTempVendorCDR_20' ) start [2025-02-05 14:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408364', 'tblTempVendorCDR_20' ) end [2025-02-05 14:38:30] Production.INFO: ProcessCDR(1,14408364,1,1,2) [2025-02-05 14:38:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:38:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:38:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:38:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408364', 'tblTempUsageDetail_20' ) start [2025-02-05 14:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408364', 'tblTempUsageDetail_20' ) end [2025-02-05 14:38:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:38:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:38:35] Production.INFO: ==25799== Releasing lock... [2025-02-05 14:38:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:38:35] Production.INFO: 66.75 MB #Memory Used# [2025-02-05 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:39:05 [end_date_ymd] => 2025-02-05 14:39:05 [RateCDR] => 1 ) [2025-02-05 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:39:05' and `end` < '2025-02-05 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:39:22] Production.INFO: count ==5158 [2025-02-05 14:39:24] Production.ERROR: pbx CDR StartTime 2025-02-05 11:39:05 - End Time 2025-02-05 14:39:05 [2025-02-05 14:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408369', 'tblTempUsageDetail_20' ) start [2025-02-05 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408369', 'tblTempUsageDetail_20' ) end [2025-02-05 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408369', 'tblTempVendorCDR_20' ) start [2025-02-05 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408369', 'tblTempVendorCDR_20' ) end [2025-02-05 14:39:24] Production.INFO: ProcessCDR(1,14408369,1,1,2) [2025-02-05 14:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408369', 'tblTempUsageDetail_20' ) start [2025-02-05 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408369', 'tblTempUsageDetail_20' ) end [2025-02-05 14:39:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:39:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:39:29] Production.INFO: ==25876== Releasing lock... [2025-02-05 14:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:39:29] Production.INFO: 66.75 MB #Memory Used# [2025-02-05 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:40:06 [end_date_ymd] => 2025-02-05 14:40:06 [RateCDR] => 1 ) [2025-02-05 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:40:06' and `end` < '2025-02-05 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:40:21] Production.INFO: count ==5155 [2025-02-05 14:40:24] Production.ERROR: pbx CDR StartTime 2025-02-05 11:40:06 - End Time 2025-02-05 14:40:06 [2025-02-05 14:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408374', 'tblTempUsageDetail_20' ) start [2025-02-05 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408374', 'tblTempUsageDetail_20' ) end [2025-02-05 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408374', 'tblTempVendorCDR_20' ) start [2025-02-05 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408374', 'tblTempVendorCDR_20' ) end [2025-02-05 14:40:24] Production.INFO: ProcessCDR(1,14408374,1,1,2) [2025-02-05 14:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408374', 'tblTempUsageDetail_20' ) start [2025-02-05 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408374', 'tblTempUsageDetail_20' ) end [2025-02-05 14:40:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:40:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:40:29] Production.INFO: ==25999== Releasing lock... [2025-02-05 14:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:40:29] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:41:05 [end_date_ymd] => 2025-02-05 14:41:05 [RateCDR] => 1 ) [2025-02-05 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:41:05' and `end` < '2025-02-05 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:41:20] Production.INFO: count ==5143 [2025-02-05 14:41:22] Production.ERROR: pbx CDR StartTime 2025-02-05 11:41:05 - End Time 2025-02-05 14:41:05 [2025-02-05 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408380', 'tblTempUsageDetail_20' ) start [2025-02-05 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408380', 'tblTempUsageDetail_20' ) end [2025-02-05 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408380', 'tblTempVendorCDR_20' ) start [2025-02-05 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408380', 'tblTempVendorCDR_20' ) end [2025-02-05 14:41:22] Production.INFO: ProcessCDR(1,14408380,1,1,2) [2025-02-05 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408380', 'tblTempUsageDetail_20' ) start [2025-02-05 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408380', 'tblTempUsageDetail_20' ) end [2025-02-05 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:41:27] Production.INFO: ==26084== Releasing lock... [2025-02-05 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:41:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:42:05 [end_date_ymd] => 2025-02-05 14:42:05 [RateCDR] => 1 ) [2025-02-05 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:42:05' and `end` < '2025-02-05 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:42:19] Production.INFO: count ==5144 [2025-02-05 14:42:21] Production.ERROR: pbx CDR StartTime 2025-02-05 11:42:05 - End Time 2025-02-05 14:42:05 [2025-02-05 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408385', 'tblTempUsageDetail_20' ) start [2025-02-05 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408385', 'tblTempUsageDetail_20' ) end [2025-02-05 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408385', 'tblTempVendorCDR_20' ) start [2025-02-05 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408385', 'tblTempVendorCDR_20' ) end [2025-02-05 14:42:21] Production.INFO: ProcessCDR(1,14408385,1,1,2) [2025-02-05 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408385', 'tblTempUsageDetail_20' ) start [2025-02-05 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408385', 'tblTempUsageDetail_20' ) end [2025-02-05 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:42:26] Production.INFO: ==26165== Releasing lock... [2025-02-05 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:42:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:43:04 [end_date_ymd] => 2025-02-05 14:43:04 [RateCDR] => 1 ) [2025-02-05 14:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:43:04' and `end` < '2025-02-05 14:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:43:26] Production.INFO: count ==5127 [2025-02-05 14:43:28] Production.ERROR: pbx CDR StartTime 2025-02-05 11:43:04 - End Time 2025-02-05 14:43:04 [2025-02-05 14:43:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408386', 'tblTempUsageDetail_20' ) start [2025-02-05 14:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408386', 'tblTempUsageDetail_20' ) end [2025-02-05 14:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408386', 'tblTempVendorCDR_20' ) start [2025-02-05 14:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408386', 'tblTempVendorCDR_20' ) end [2025-02-05 14:43:28] Production.INFO: ProcessCDR(1,14408386,1,1,2) [2025-02-05 14:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408386', 'tblTempUsageDetail_20' ) start [2025-02-05 14:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408386', 'tblTempUsageDetail_20' ) end [2025-02-05 14:43:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:43:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:43:33] Production.INFO: ==26241== Releasing lock... [2025-02-05 14:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:43:33] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:44:05 [end_date_ymd] => 2025-02-05 14:44:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 11:44:05' and `end` < '2025-02-05 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-02-05 14:44:20] Production.INFO: count ==5138 [2025-02-05 14:44:22] Production.ERROR: pbx CDR StartTime 2025-02-05 11:44:05 - End Time 2025-02-05 14:44:05 [2025-02-05 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408395', 'tblTempUsageDetail_20' ) start [2025-02-05 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408395', 'tblTempUsageDetail_20' ) end [2025-02-05 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408395', 'tblTempVendorCDR_20' ) start [2025-02-05 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408395', 'tblTempVendorCDR_20' ) end [2025-02-05 14:44:23] Production.INFO: ProcessCDR(1,14408395,1,1,2) [2025-02-05 14:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408395', 'tblTempUsageDetail_20' ) start [2025-02-05 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408395', 'tblTempUsageDetail_20' ) end [2025-02-05 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:44:27] Production.INFO: ==26323== Releasing lock... [2025-02-05 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:44:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:45:05 [end_date_ymd] => 2025-02-05 14:45:05 [RateCDR] => 1 ) [2025-02-05 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:45:05' and `end` < '2025-02-05 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:45:28] Production.INFO: count ==5137 [2025-02-05 14:45:30] Production.ERROR: pbx CDR StartTime 2025-02-05 11:45:05 - End Time 2025-02-05 14:45:05 [2025-02-05 14:45:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408400', 'tblTempUsageDetail_20' ) start [2025-02-05 14:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408400', 'tblTempUsageDetail_20' ) end [2025-02-05 14:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408400', 'tblTempVendorCDR_20' ) start [2025-02-05 14:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408400', 'tblTempVendorCDR_20' ) end [2025-02-05 14:45:30] Production.INFO: ProcessCDR(1,14408400,1,1,2) [2025-02-05 14:45:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408400', 'tblTempUsageDetail_20' ) start [2025-02-05 14:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408400', 'tblTempUsageDetail_20' ) end [2025-02-05 14:45:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:45:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:45:35] Production.INFO: ==26407== Releasing lock... [2025-02-05 14:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:45:35] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:46:05 [end_date_ymd] => 2025-02-05 14:46:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 11:46:05' and `end` < '2025-02-05 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-02-05 14:46:29] Production.INFO: count ==5117 [2025-02-05 14:46:31] Production.ERROR: pbx CDR StartTime 2025-02-05 11:46:05 - End Time 2025-02-05 14:46:05 [2025-02-05 14:46:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408405', 'tblTempUsageDetail_20' ) start [2025-02-05 14:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408405', 'tblTempUsageDetail_20' ) end [2025-02-05 14:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408405', 'tblTempVendorCDR_20' ) start [2025-02-05 14:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408405', 'tblTempVendorCDR_20' ) end [2025-02-05 14:46:31] Production.INFO: ProcessCDR(1,14408405,1,1,2) [2025-02-05 14:46:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:46:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:46:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408405', 'tblTempUsageDetail_20' ) start [2025-02-05 14:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408405', 'tblTempUsageDetail_20' ) end [2025-02-05 14:46:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:46:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:46:35] Production.INFO: ==26485== Releasing lock... [2025-02-05 14:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:46:35] Production.INFO: 66.25 MB #Memory Used# [2025-02-05 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:47:05 [end_date_ymd] => 2025-02-05 14:47:05 [RateCDR] => 1 ) [2025-02-05 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:47:05' and `end` < '2025-02-05 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:47:26] Production.INFO: count ==5105 [2025-02-05 14:47:28] Production.ERROR: pbx CDR StartTime 2025-02-05 11:47:05 - End Time 2025-02-05 14:47:05 [2025-02-05 14:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408410', 'tblTempUsageDetail_20' ) start [2025-02-05 14:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408410', 'tblTempUsageDetail_20' ) end [2025-02-05 14:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408410', 'tblTempVendorCDR_20' ) start [2025-02-05 14:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408410', 'tblTempVendorCDR_20' ) end [2025-02-05 14:47:28] Production.INFO: ProcessCDR(1,14408410,1,1,2) [2025-02-05 14:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408410', 'tblTempUsageDetail_20' ) start [2025-02-05 14:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408410', 'tblTempUsageDetail_20' ) end [2025-02-05 14:47:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:47:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:47:33] Production.INFO: ==26562== Releasing lock... [2025-02-05 14:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:47:33] Production.INFO: 66.25 MB #Memory Used# [2025-02-05 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:48:05 [end_date_ymd] => 2025-02-05 14:48:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 11:48:05' and `end` < '2025-02-05 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:48:26] Production.INFO: count ==5082 [2025-02-05 14:48:29] Production.ERROR: pbx CDR StartTime 2025-02-05 11:48:05 - End Time 2025-02-05 14:48:05 [2025-02-05 14:48:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408415', 'tblTempUsageDetail_20' ) start [2025-02-05 14:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408415', 'tblTempUsageDetail_20' ) end [2025-02-05 14:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408415', 'tblTempVendorCDR_20' ) start [2025-02-05 14:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408415', 'tblTempVendorCDR_20' ) end [2025-02-05 14:48:29] Production.INFO: ProcessCDR(1,14408415,1,1,2) [2025-02-05 14:48:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:48:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:48:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408415', 'tblTempUsageDetail_20' ) start [2025-02-05 14:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408415', 'tblTempUsageDetail_20' ) end [2025-02-05 14:48:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:48:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:48:34] Production.INFO: ==26642== Releasing lock... [2025-02-05 14:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:48:34] Production.INFO: 66 MB #Memory Used# [2025-02-05 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:49:06 [end_date_ymd] => 2025-02-05 14:49:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 11:49:06' and `end` < '2025-02-05 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-02-05 14:49:28] Production.INFO: count ==5039 [2025-02-05 14:49:30] Production.ERROR: pbx CDR StartTime 2025-02-05 11:49:06 - End Time 2025-02-05 14:49:06 [2025-02-05 14:49:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408420', 'tblTempUsageDetail_20' ) start [2025-02-05 14:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408420', 'tblTempUsageDetail_20' ) end [2025-02-05 14:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408420', 'tblTempVendorCDR_20' ) start [2025-02-05 14:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408420', 'tblTempVendorCDR_20' ) end [2025-02-05 14:49:31] Production.INFO: ProcessCDR(1,14408420,1,1,2) [2025-02-05 14:49:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:49:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:49:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:49:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:49:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408420', 'tblTempUsageDetail_20' ) start [2025-02-05 14:49:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408420', 'tblTempUsageDetail_20' ) end [2025-02-05 14:49:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:49:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:49:35] Production.INFO: ==26727== Releasing lock... [2025-02-05 14:49:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:49:35] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:50:06 [end_date_ymd] => 2025-02-05 14:50:06 [RateCDR] => 1 ) [2025-02-05 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:50:06' and `end` < '2025-02-05 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:50:26] Production.INFO: count ==5014 [2025-02-05 14:50:28] Production.ERROR: pbx CDR StartTime 2025-02-05 11:50:06 - End Time 2025-02-05 14:50:06 [2025-02-05 14:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408426', 'tblTempUsageDetail_20' ) start [2025-02-05 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408426', 'tblTempUsageDetail_20' ) end [2025-02-05 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408426', 'tblTempVendorCDR_20' ) start [2025-02-05 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408426', 'tblTempVendorCDR_20' ) end [2025-02-05 14:50:28] Production.INFO: ProcessCDR(1,14408426,1,1,2) [2025-02-05 14:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408426', 'tblTempUsageDetail_20' ) start [2025-02-05 14:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408426', 'tblTempUsageDetail_20' ) end [2025-02-05 14:50:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:50:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:50:33] Production.INFO: ==26806== Releasing lock... [2025-02-05 14:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:50:33] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:51:05 [end_date_ymd] => 2025-02-05 14:51:05 [RateCDR] => 1 ) [2025-02-05 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:51:05' and `end` < '2025-02-05 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:51:25] Production.INFO: count ==5054 [2025-02-05 14:51:27] Production.ERROR: pbx CDR StartTime 2025-02-05 11:51:05 - End Time 2025-02-05 14:51:05 [2025-02-05 14:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408431', 'tblTempUsageDetail_20' ) start [2025-02-05 14:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408431', 'tblTempUsageDetail_20' ) end [2025-02-05 14:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408431', 'tblTempVendorCDR_20' ) start [2025-02-05 14:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408431', 'tblTempVendorCDR_20' ) end [2025-02-05 14:51:27] Production.INFO: ProcessCDR(1,14408431,1,1,2) [2025-02-05 14:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408431', 'tblTempUsageDetail_20' ) start [2025-02-05 14:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408431', 'tblTempUsageDetail_20' ) end [2025-02-05 14:51:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:51:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:51:32] Production.INFO: ==26887== Releasing lock... [2025-02-05 14:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:51:32] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:52:05 [end_date_ymd] => 2025-02-05 14:52:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 11:52:05' and `end` < '2025-02-05 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-02-05 14:52:24] Production.INFO: count ==5060 [2025-02-05 14:52:26] Production.ERROR: pbx CDR StartTime 2025-02-05 11:52:05 - End Time 2025-02-05 14:52:05 [2025-02-05 14:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408436', 'tblTempUsageDetail_20' ) start [2025-02-05 14:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408436', 'tblTempUsageDetail_20' ) end [2025-02-05 14:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408436', 'tblTempVendorCDR_20' ) start [2025-02-05 14:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408436', 'tblTempVendorCDR_20' ) end [2025-02-05 14:52:26] Production.INFO: ProcessCDR(1,14408436,1,1,2) [2025-02-05 14:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408436', 'tblTempUsageDetail_20' ) start [2025-02-05 14:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408436', 'tblTempUsageDetail_20' ) end [2025-02-05 14:52:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:52:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:52:30] Production.INFO: ==26979== Releasing lock... [2025-02-05 14:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:52:30] Production.INFO: 66 MB #Memory Used# [2025-02-05 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:53:05 [end_date_ymd] => 2025-02-05 14:53:05 [RateCDR] => 1 ) [2025-02-05 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:53:05' and `end` < '2025-02-05 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:53:22] Production.INFO: count ==5062 [2025-02-05 14:53:24] Production.ERROR: pbx CDR StartTime 2025-02-05 11:53:05 - End Time 2025-02-05 14:53:05 [2025-02-05 14:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408441', 'tblTempUsageDetail_20' ) start [2025-02-05 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408441', 'tblTempUsageDetail_20' ) end [2025-02-05 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408441', 'tblTempVendorCDR_20' ) start [2025-02-05 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408441', 'tblTempVendorCDR_20' ) end [2025-02-05 14:53:25] Production.INFO: ProcessCDR(1,14408441,1,1,2) [2025-02-05 14:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408441', 'tblTempUsageDetail_20' ) start [2025-02-05 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408441', 'tblTempUsageDetail_20' ) end [2025-02-05 14:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:53:29] Production.INFO: ==27056== Releasing lock... [2025-02-05 14:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:53:29] Production.INFO: 66 MB #Memory Used# [2025-02-05 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:54:06 [end_date_ymd] => 2025-02-05 14:54:06 [RateCDR] => 1 ) [2025-02-05 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:54:06' and `end` < '2025-02-05 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:54:26] Production.INFO: count ==5092 [2025-02-05 14:54:28] Production.ERROR: pbx CDR StartTime 2025-02-05 11:54:06 - End Time 2025-02-05 14:54:06 [2025-02-05 14:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408446', 'tblTempUsageDetail_20' ) start [2025-02-05 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408446', 'tblTempUsageDetail_20' ) end [2025-02-05 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408446', 'tblTempVendorCDR_20' ) start [2025-02-05 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408446', 'tblTempVendorCDR_20' ) end [2025-02-05 14:54:28] Production.INFO: ProcessCDR(1,14408446,1,1,2) [2025-02-05 14:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408446', 'tblTempUsageDetail_20' ) start [2025-02-05 14:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408446', 'tblTempUsageDetail_20' ) end [2025-02-05 14:54:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:54:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:54:33] Production.INFO: ==27138== Releasing lock... [2025-02-05 14:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:54:33] Production.INFO: 66.25 MB #Memory Used# [2025-02-05 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:55:05 [end_date_ymd] => 2025-02-05 14:55:05 [RateCDR] => 1 ) [2025-02-05 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:55:05' and `end` < '2025-02-05 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:55:28] Production.INFO: count ==5141 [2025-02-05 14:55:30] Production.ERROR: pbx CDR StartTime 2025-02-05 11:55:05 - End Time 2025-02-05 14:55:05 [2025-02-05 14:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408451', 'tblTempUsageDetail_20' ) start [2025-02-05 14:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408451', 'tblTempUsageDetail_20' ) end [2025-02-05 14:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408451', 'tblTempVendorCDR_20' ) start [2025-02-05 14:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408451', 'tblTempVendorCDR_20' ) end [2025-02-05 14:55:31] Production.INFO: ProcessCDR(1,14408451,1,1,2) [2025-02-05 14:55:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:55:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:55:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:55:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408451', 'tblTempUsageDetail_20' ) start [2025-02-05 14:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408451', 'tblTempUsageDetail_20' ) end [2025-02-05 14:55:36] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:55:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:55:36] Production.INFO: ==27222== Releasing lock... [2025-02-05 14:55:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:55:36] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:56:06 [end_date_ymd] => 2025-02-05 14:56:06 [RateCDR] => 1 ) [2025-02-05 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:56:06' and `end` < '2025-02-05 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:56:27] Production.INFO: count ==5140 [2025-02-05 14:56:29] Production.ERROR: pbx CDR StartTime 2025-02-05 11:56:06 - End Time 2025-02-05 14:56:06 [2025-02-05 14:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408456', 'tblTempUsageDetail_20' ) start [2025-02-05 14:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408456', 'tblTempUsageDetail_20' ) end [2025-02-05 14:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408456', 'tblTempVendorCDR_20' ) start [2025-02-05 14:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408456', 'tblTempVendorCDR_20' ) end [2025-02-05 14:56:29] Production.INFO: ProcessCDR(1,14408456,1,1,2) [2025-02-05 14:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:56:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:56:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:56:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408456', 'tblTempUsageDetail_20' ) start [2025-02-05 14:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408456', 'tblTempUsageDetail_20' ) end [2025-02-05 14:56:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:56:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:56:34] Production.INFO: ==27345== Releasing lock... [2025-02-05 14:56:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:56:34] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:57:05 [end_date_ymd] => 2025-02-05 14:57:05 [RateCDR] => 1 ) [2025-02-05 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:57:05' and `end` < '2025-02-05 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:57:21] Production.INFO: count ==5156 [2025-02-05 14:57:23] Production.ERROR: pbx CDR StartTime 2025-02-05 11:57:05 - End Time 2025-02-05 14:57:05 [2025-02-05 14:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408461', 'tblTempUsageDetail_20' ) start [2025-02-05 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408461', 'tblTempUsageDetail_20' ) end [2025-02-05 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408461', 'tblTempVendorCDR_20' ) start [2025-02-05 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408461', 'tblTempVendorCDR_20' ) end [2025-02-05 14:57:23] Production.INFO: ProcessCDR(1,14408461,1,1,2) [2025-02-05 14:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408461', 'tblTempUsageDetail_20' ) start [2025-02-05 14:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408461', 'tblTempUsageDetail_20' ) end [2025-02-05 14:57:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:57:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:57:28] Production.INFO: ==27421== Releasing lock... [2025-02-05 14:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:57:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:58:05 [end_date_ymd] => 2025-02-05 14:58:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 11:58:05' and `end` < '2025-02-05 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-02-05 14:58:23] Production.INFO: count ==5133 [2025-02-05 14:58:25] Production.ERROR: pbx CDR StartTime 2025-02-05 11:58:05 - End Time 2025-02-05 14:58:05 [2025-02-05 14:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408466', 'tblTempUsageDetail_20' ) start [2025-02-05 14:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408466', 'tblTempUsageDetail_20' ) end [2025-02-05 14:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408466', 'tblTempVendorCDR_20' ) start [2025-02-05 14:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408466', 'tblTempVendorCDR_20' ) end [2025-02-05 14:58:25] Production.INFO: ProcessCDR(1,14408466,1,1,2) [2025-02-05 14:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408466', 'tblTempUsageDetail_20' ) start [2025-02-05 14:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408466', 'tblTempUsageDetail_20' ) end [2025-02-05 14:58:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:58:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:58:30] Production.INFO: ==27499== Releasing lock... [2025-02-05 14:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:58:30] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 11:59:05 [end_date_ymd] => 2025-02-05 14:59:05 [RateCDR] => 1 ) [2025-02-05 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 11:59:05' and `end` < '2025-02-05 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 14:59:23] Production.INFO: count ==5128 [2025-02-05 14:59:25] Production.ERROR: pbx CDR StartTime 2025-02-05 11:59:05 - End Time 2025-02-05 14:59:05 [2025-02-05 14:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408471', 'tblTempUsageDetail_20' ) start [2025-02-05 14:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408471', 'tblTempUsageDetail_20' ) end [2025-02-05 14:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408471', 'tblTempVendorCDR_20' ) start [2025-02-05 14:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408471', 'tblTempVendorCDR_20' ) end [2025-02-05 14:59:26] Production.INFO: ProcessCDR(1,14408471,1,1,2) [2025-02-05 14:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 14:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 14:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408471', 'tblTempUsageDetail_20' ) start [2025-02-05 14:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408471', 'tblTempUsageDetail_20' ) end [2025-02-05 14:59:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 14:59:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 14:59:30] Production.INFO: ==27586== Releasing lock... [2025-02-05 14:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 14:59:30] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:00:06 [end_date_ymd] => 2025-02-05 15:00:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:00:06' and `end` < '2025-02-05 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-02-05 15:00:33] Production.INFO: count ==5118 [2025-02-05 15:00:36] Production.ERROR: pbx CDR StartTime 2025-02-05 12:00:06 - End Time 2025-02-05 15:00:06 [2025-02-05 15:00:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408477', 'tblTempUsageDetail_20' ) start [2025-02-05 15:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408477', 'tblTempUsageDetail_20' ) end [2025-02-05 15:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408477', 'tblTempVendorCDR_20' ) start [2025-02-05 15:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408477', 'tblTempVendorCDR_20' ) end [2025-02-05 15:00:36] Production.INFO: ProcessCDR(1,14408477,1,1,2) [2025-02-05 15:00:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:00:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:00:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:00:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408477', 'tblTempUsageDetail_20' ) start [2025-02-05 15:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408477', 'tblTempUsageDetail_20' ) end [2025-02-05 15:00:41] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:00:41] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:00:41] Production.INFO: ==27674== Releasing lock... [2025-02-05 15:00:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:00:41] Production.INFO: 66.25 MB #Memory Used# [2025-02-05 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:01:05 [end_date_ymd] => 2025-02-05 15:01:05 [RateCDR] => 1 ) [2025-02-05 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:01:05' and `end` < '2025-02-05 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:01:29] Production.INFO: count ==5059 [2025-02-05 15:01:31] Production.ERROR: pbx CDR StartTime 2025-02-05 12:01:05 - End Time 2025-02-05 15:01:05 [2025-02-05 15:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408482', 'tblTempUsageDetail_20' ) start [2025-02-05 15:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408482', 'tblTempUsageDetail_20' ) end [2025-02-05 15:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408482', 'tblTempVendorCDR_20' ) start [2025-02-05 15:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408482', 'tblTempVendorCDR_20' ) end [2025-02-05 15:01:31] Production.INFO: ProcessCDR(1,14408482,1,1,2) [2025-02-05 15:01:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:01:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:01:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:01:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408482', 'tblTempUsageDetail_20' ) start [2025-02-05 15:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408482', 'tblTempUsageDetail_20' ) end [2025-02-05 15:01:36] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:01:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:01:36] Production.INFO: ==27770== Releasing lock... [2025-02-05 15:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:01:36] Production.INFO: 66 MB #Memory Used# [2025-02-05 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:02:05 [end_date_ymd] => 2025-02-05 15:02:05 [RateCDR] => 1 ) [2025-02-05 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:02:05' and `end` < '2025-02-05 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:02:29] Production.INFO: count ==5037 [2025-02-05 15:02:31] Production.ERROR: pbx CDR StartTime 2025-02-05 12:02:05 - End Time 2025-02-05 15:02:05 [2025-02-05 15:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408487', 'tblTempUsageDetail_20' ) start [2025-02-05 15:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408487', 'tblTempUsageDetail_20' ) end [2025-02-05 15:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408487', 'tblTempVendorCDR_20' ) start [2025-02-05 15:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408487', 'tblTempVendorCDR_20' ) end [2025-02-05 15:02:31] Production.INFO: ProcessCDR(1,14408487,1,1,2) [2025-02-05 15:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408487', 'tblTempUsageDetail_20' ) start [2025-02-05 15:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408487', 'tblTempUsageDetail_20' ) end [2025-02-05 15:02:36] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:02:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:02:36] Production.INFO: ==27926== Releasing lock... [2025-02-05 15:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:02:36] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:03:05 [end_date_ymd] => 2025-02-05 15:03:05 [RateCDR] => 1 ) [2025-02-05 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:03:05' and `end` < '2025-02-05 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:03:23] Production.INFO: count ==5034 [2025-02-05 15:03:25] Production.ERROR: pbx CDR StartTime 2025-02-05 12:03:05 - End Time 2025-02-05 15:03:05 [2025-02-05 15:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408492', 'tblTempUsageDetail_20' ) start [2025-02-05 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408492', 'tblTempUsageDetail_20' ) end [2025-02-05 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408492', 'tblTempVendorCDR_20' ) start [2025-02-05 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408492', 'tblTempVendorCDR_20' ) end [2025-02-05 15:03:26] Production.INFO: ProcessCDR(1,14408492,1,1,2) [2025-02-05 15:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408492', 'tblTempUsageDetail_20' ) start [2025-02-05 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408492', 'tblTempUsageDetail_20' ) end [2025-02-05 15:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:03:30] Production.INFO: ==28006== Releasing lock... [2025-02-05 15:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:03:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:04:05 [end_date_ymd] => 2025-02-05 15:04:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:04:05' and `end` < '2025-02-05 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-02-05 15:04:23] Production.INFO: count ==5015 [2025-02-05 15:04:25] Production.ERROR: pbx CDR StartTime 2025-02-05 12:04:05 - End Time 2025-02-05 15:04:05 [2025-02-05 15:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408497', 'tblTempUsageDetail_20' ) start [2025-02-05 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408497', 'tblTempUsageDetail_20' ) end [2025-02-05 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408497', 'tblTempVendorCDR_20' ) start [2025-02-05 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408497', 'tblTempVendorCDR_20' ) end [2025-02-05 15:04:25] Production.INFO: ProcessCDR(1,14408497,1,1,2) [2025-02-05 15:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408497', 'tblTempUsageDetail_20' ) start [2025-02-05 15:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408497', 'tblTempUsageDetail_20' ) end [2025-02-05 15:04:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:04:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:04:29] Production.INFO: ==28088== Releasing lock... [2025-02-05 15:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:04:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:05:05 [end_date_ymd] => 2025-02-05 15:05:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:05:05' and `end` < '2025-02-05 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-02-05 15:05:19] Production.INFO: count ==5011 [2025-02-05 15:05:22] Production.ERROR: pbx CDR StartTime 2025-02-05 12:05:05 - End Time 2025-02-05 15:05:05 [2025-02-05 15:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408502', 'tblTempUsageDetail_20' ) start [2025-02-05 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408502', 'tblTempUsageDetail_20' ) end [2025-02-05 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408502', 'tblTempVendorCDR_20' ) start [2025-02-05 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408502', 'tblTempVendorCDR_20' ) end [2025-02-05 15:05:22] Production.INFO: ProcessCDR(1,14408502,1,1,2) [2025-02-05 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408502', 'tblTempUsageDetail_20' ) start [2025-02-05 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408502', 'tblTempUsageDetail_20' ) end [2025-02-05 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:05:27] Production.INFO: ==28249== Releasing lock... [2025-02-05 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:05:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:06:05 [end_date_ymd] => 2025-02-05 15:06:05 [RateCDR] => 1 ) [2025-02-05 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:06:05' and `end` < '2025-02-05 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:06:19] Production.INFO: count ==5015 [2025-02-05 15:06:21] Production.ERROR: pbx CDR StartTime 2025-02-05 12:06:05 - End Time 2025-02-05 15:06:05 [2025-02-05 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408507', 'tblTempUsageDetail_20' ) start [2025-02-05 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408507', 'tblTempUsageDetail_20' ) end [2025-02-05 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408507', 'tblTempVendorCDR_20' ) start [2025-02-05 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408507', 'tblTempVendorCDR_20' ) end [2025-02-05 15:06:22] Production.INFO: ProcessCDR(1,14408507,1,1,2) [2025-02-05 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408507', 'tblTempUsageDetail_20' ) start [2025-02-05 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408507', 'tblTempUsageDetail_20' ) end [2025-02-05 15:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:06:26] Production.INFO: ==28331== Releasing lock... [2025-02-05 15:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:06:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:07:05 [end_date_ymd] => 2025-02-05 15:07:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:07:05' and `end` < '2025-02-05 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-02-05 15:07:23] Production.INFO: count ==5010 [2025-02-05 15:07:25] Production.ERROR: pbx CDR StartTime 2025-02-05 12:07:05 - End Time 2025-02-05 15:07:05 [2025-02-05 15:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408512', 'tblTempUsageDetail_20' ) start [2025-02-05 15:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408512', 'tblTempUsageDetail_20' ) end [2025-02-05 15:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408512', 'tblTempVendorCDR_20' ) start [2025-02-05 15:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408512', 'tblTempVendorCDR_20' ) end [2025-02-05 15:07:26] Production.INFO: ProcessCDR(1,14408512,1,1,2) [2025-02-05 15:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408512', 'tblTempUsageDetail_20' ) start [2025-02-05 15:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408512', 'tblTempUsageDetail_20' ) end [2025-02-05 15:07:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:07:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:07:30] Production.INFO: ==28412== Releasing lock... [2025-02-05 15:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:07:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:08:05 [end_date_ymd] => 2025-02-05 15:08:05 [RateCDR] => 1 ) [2025-02-05 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:08:05' and `end` < '2025-02-05 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:08:25] Production.INFO: count ==5001 [2025-02-05 15:08:27] Production.ERROR: pbx CDR StartTime 2025-02-05 12:08:05 - End Time 2025-02-05 15:08:05 [2025-02-05 15:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408517', 'tblTempUsageDetail_20' ) start [2025-02-05 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408517', 'tblTempUsageDetail_20' ) end [2025-02-05 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408517', 'tblTempVendorCDR_20' ) start [2025-02-05 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408517', 'tblTempVendorCDR_20' ) end [2025-02-05 15:08:27] Production.INFO: ProcessCDR(1,14408517,1,1,2) [2025-02-05 15:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408517', 'tblTempUsageDetail_20' ) start [2025-02-05 15:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408517', 'tblTempUsageDetail_20' ) end [2025-02-05 15:08:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:08:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:08:32] Production.INFO: ==28568== Releasing lock... [2025-02-05 15:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:08:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:09:05 [end_date_ymd] => 2025-02-05 15:09:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:09:05' and `end` < '2025-02-05 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-02-05 15:09:24] Production.INFO: count ==4986 [2025-02-05 15:09:26] Production.ERROR: pbx CDR StartTime 2025-02-05 12:09:05 - End Time 2025-02-05 15:09:05 [2025-02-05 15:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408522', 'tblTempUsageDetail_20' ) start [2025-02-05 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408522', 'tblTempUsageDetail_20' ) end [2025-02-05 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408522', 'tblTempVendorCDR_20' ) start [2025-02-05 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408522', 'tblTempVendorCDR_20' ) end [2025-02-05 15:09:26] Production.INFO: ProcessCDR(1,14408522,1,1,2) [2025-02-05 15:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408522', 'tblTempUsageDetail_20' ) start [2025-02-05 15:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408522', 'tblTempUsageDetail_20' ) end [2025-02-05 15:09:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:09:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:09:30] Production.INFO: ==28648== Releasing lock... [2025-02-05 15:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:09:30] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:10:06 [end_date_ymd] => 2025-02-05 15:10:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:10:06' and `end` < '2025-02-05 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-02-05 15:10:20] Production.INFO: count ==4997 [2025-02-05 15:10:22] Production.ERROR: pbx CDR StartTime 2025-02-05 12:10:06 - End Time 2025-02-05 15:10:06 [2025-02-05 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408528', 'tblTempUsageDetail_20' ) start [2025-02-05 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408528', 'tblTempUsageDetail_20' ) end [2025-02-05 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408528', 'tblTempVendorCDR_20' ) start [2025-02-05 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408528', 'tblTempVendorCDR_20' ) end [2025-02-05 15:10:22] Production.INFO: ProcessCDR(1,14408528,1,1,2) [2025-02-05 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408528', 'tblTempUsageDetail_20' ) start [2025-02-05 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408528', 'tblTempUsageDetail_20' ) end [2025-02-05 15:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:10:27] Production.INFO: ==28729== Releasing lock... [2025-02-05 15:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:10:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:11:05 [end_date_ymd] => 2025-02-05 15:11:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:11:05' and `end` < '2025-02-05 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:11:23] Production.INFO: count ==4996 [2025-02-05 15:11:25] Production.ERROR: pbx CDR StartTime 2025-02-05 12:11:05 - End Time 2025-02-05 15:11:05 [2025-02-05 15:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408533', 'tblTempUsageDetail_20' ) start [2025-02-05 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408533', 'tblTempUsageDetail_20' ) end [2025-02-05 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408533', 'tblTempVendorCDR_20' ) start [2025-02-05 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408533', 'tblTempVendorCDR_20' ) end [2025-02-05 15:11:25] Production.INFO: ProcessCDR(1,14408533,1,1,2) [2025-02-05 15:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408533', 'tblTempUsageDetail_20' ) start [2025-02-05 15:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408533', 'tblTempUsageDetail_20' ) end [2025-02-05 15:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:11:30] Production.INFO: ==28847== Releasing lock... [2025-02-05 15:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:11:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:12:05 [end_date_ymd] => 2025-02-05 15:12:05 [RateCDR] => 1 ) [2025-02-05 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:12:05' and `end` < '2025-02-05 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:12:27] Production.INFO: count ==4971 [2025-02-05 15:12:29] Production.ERROR: pbx CDR StartTime 2025-02-05 12:12:05 - End Time 2025-02-05 15:12:05 [2025-02-05 15:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408538', 'tblTempUsageDetail_20' ) start [2025-02-05 15:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408538', 'tblTempUsageDetail_20' ) end [2025-02-05 15:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408538', 'tblTempVendorCDR_20' ) start [2025-02-05 15:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408538', 'tblTempVendorCDR_20' ) end [2025-02-05 15:12:30] Production.INFO: ProcessCDR(1,14408538,1,1,2) [2025-02-05 15:12:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:12:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:12:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:12:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408538', 'tblTempUsageDetail_20' ) start [2025-02-05 15:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408538', 'tblTempUsageDetail_20' ) end [2025-02-05 15:12:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:12:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:12:34] Production.INFO: ==28999== Releasing lock... [2025-02-05 15:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:12:34] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:13:04 [end_date_ymd] => 2025-02-05 15:13:04 [RateCDR] => 1 ) [2025-02-05 15:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:13:04' and `end` < '2025-02-05 15:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:13:23] Production.INFO: count ==4968 [2025-02-05 15:13:25] Production.ERROR: pbx CDR StartTime 2025-02-05 12:13:04 - End Time 2025-02-05 15:13:04 [2025-02-05 15:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408543', 'tblTempUsageDetail_20' ) start [2025-02-05 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408543', 'tblTempUsageDetail_20' ) end [2025-02-05 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408543', 'tblTempVendorCDR_20' ) start [2025-02-05 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408543', 'tblTempVendorCDR_20' ) end [2025-02-05 15:13:25] Production.INFO: ProcessCDR(1,14408543,1,1,2) [2025-02-05 15:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408543', 'tblTempUsageDetail_20' ) start [2025-02-05 15:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408543', 'tblTempUsageDetail_20' ) end [2025-02-05 15:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:13:30] Production.INFO: ==29078== Releasing lock... [2025-02-05 15:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:13:30] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:14:05 [end_date_ymd] => 2025-02-05 15:14:05 [RateCDR] => 1 ) [2025-02-05 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:14:05' and `end` < '2025-02-05 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:14:20] Production.INFO: count ==4957 [2025-02-05 15:14:22] Production.ERROR: pbx CDR StartTime 2025-02-05 12:14:05 - End Time 2025-02-05 15:14:05 [2025-02-05 15:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408548', 'tblTempUsageDetail_20' ) start [2025-02-05 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408548', 'tblTempUsageDetail_20' ) end [2025-02-05 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408548', 'tblTempVendorCDR_20' ) start [2025-02-05 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408548', 'tblTempVendorCDR_20' ) end [2025-02-05 15:14:22] Production.INFO: ProcessCDR(1,14408548,1,1,2) [2025-02-05 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408548', 'tblTempUsageDetail_20' ) start [2025-02-05 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408548', 'tblTempUsageDetail_20' ) end [2025-02-05 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:14:27] Production.INFO: ==29160== Releasing lock... [2025-02-05 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:14:27] Production.INFO: 65 MB #Memory Used# [2025-02-05 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:15:05 [end_date_ymd] => 2025-02-05 15:15:05 [RateCDR] => 1 ) [2025-02-05 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:15:05' and `end` < '2025-02-05 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:15:20] Production.INFO: count ==4974 [2025-02-05 15:15:22] Production.ERROR: pbx CDR StartTime 2025-02-05 12:15:05 - End Time 2025-02-05 15:15:05 [2025-02-05 15:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408553', 'tblTempUsageDetail_20' ) start [2025-02-05 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408553', 'tblTempUsageDetail_20' ) end [2025-02-05 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408553', 'tblTempVendorCDR_20' ) start [2025-02-05 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408553', 'tblTempVendorCDR_20' ) end [2025-02-05 15:15:22] Production.INFO: ProcessCDR(1,14408553,1,1,2) [2025-02-05 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408553', 'tblTempUsageDetail_20' ) start [2025-02-05 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408553', 'tblTempUsageDetail_20' ) end [2025-02-05 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:15:27] Production.INFO: ==29315== Releasing lock... [2025-02-05 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:15:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:16:05 [end_date_ymd] => 2025-02-05 15:16:05 [RateCDR] => 1 ) [2025-02-05 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:16:05' and `end` < '2025-02-05 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:16:24] Production.INFO: count ==4959 [2025-02-05 15:16:26] Production.ERROR: pbx CDR StartTime 2025-02-05 12:16:05 - End Time 2025-02-05 15:16:05 [2025-02-05 15:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408558', 'tblTempUsageDetail_20' ) start [2025-02-05 15:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408558', 'tblTempUsageDetail_20' ) end [2025-02-05 15:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408558', 'tblTempVendorCDR_20' ) start [2025-02-05 15:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408558', 'tblTempVendorCDR_20' ) end [2025-02-05 15:16:27] Production.INFO: ProcessCDR(1,14408558,1,1,2) [2025-02-05 15:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408558', 'tblTempUsageDetail_20' ) start [2025-02-05 15:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408558', 'tblTempUsageDetail_20' ) end [2025-02-05 15:16:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:16:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:16:31] Production.INFO: ==29395== Releasing lock... [2025-02-05 15:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:16:31] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:17:05 [end_date_ymd] => 2025-02-05 15:17:05 [RateCDR] => 1 ) [2025-02-05 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:17:05' and `end` < '2025-02-05 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:17:23] Production.INFO: count ==4974 [2025-02-05 15:17:25] Production.ERROR: pbx CDR StartTime 2025-02-05 12:17:05 - End Time 2025-02-05 15:17:05 [2025-02-05 15:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408563', 'tblTempUsageDetail_20' ) start [2025-02-05 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408563', 'tblTempUsageDetail_20' ) end [2025-02-05 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408563', 'tblTempVendorCDR_20' ) start [2025-02-05 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408563', 'tblTempVendorCDR_20' ) end [2025-02-05 15:17:25] Production.INFO: ProcessCDR(1,14408563,1,1,2) [2025-02-05 15:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408563', 'tblTempUsageDetail_20' ) start [2025-02-05 15:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408563', 'tblTempUsageDetail_20' ) end [2025-02-05 15:17:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:17:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:17:29] Production.INFO: ==29474== Releasing lock... [2025-02-05 15:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:17:29] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:18:05 [end_date_ymd] => 2025-02-05 15:18:05 [RateCDR] => 1 ) [2025-02-05 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:18:05' and `end` < '2025-02-05 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:18:23] Production.INFO: count ==4964 [2025-02-05 15:18:25] Production.ERROR: pbx CDR StartTime 2025-02-05 12:18:05 - End Time 2025-02-05 15:18:05 [2025-02-05 15:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408568', 'tblTempUsageDetail_20' ) start [2025-02-05 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408568', 'tblTempUsageDetail_20' ) end [2025-02-05 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408568', 'tblTempVendorCDR_20' ) start [2025-02-05 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408568', 'tblTempVendorCDR_20' ) end [2025-02-05 15:18:25] Production.INFO: ProcessCDR(1,14408568,1,1,2) [2025-02-05 15:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408568', 'tblTempUsageDetail_20' ) start [2025-02-05 15:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408568', 'tblTempUsageDetail_20' ) end [2025-02-05 15:18:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:18:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:18:31] Production.INFO: ==29551== Releasing lock... [2025-02-05 15:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:18:31] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:19:05 [end_date_ymd] => 2025-02-05 15:19:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:19:05' and `end` < '2025-02-05 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-02-05 15:19:22] Production.INFO: count ==4961 [2025-02-05 15:19:24] Production.ERROR: pbx CDR StartTime 2025-02-05 12:19:05 - End Time 2025-02-05 15:19:05 [2025-02-05 15:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408570', 'tblTempUsageDetail_20' ) start [2025-02-05 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408570', 'tblTempUsageDetail_20' ) end [2025-02-05 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408570', 'tblTempVendorCDR_20' ) start [2025-02-05 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408570', 'tblTempVendorCDR_20' ) end [2025-02-05 15:19:24] Production.INFO: ProcessCDR(1,14408570,1,1,2) [2025-02-05 15:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408570', 'tblTempUsageDetail_20' ) start [2025-02-05 15:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408570', 'tblTempUsageDetail_20' ) end [2025-02-05 15:19:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:19:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:19:29] Production.INFO: ==29635== Releasing lock... [2025-02-05 15:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:19:29] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:20:05 [end_date_ymd] => 2025-02-05 15:20:05 [RateCDR] => 1 ) [2025-02-05 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:20:05' and `end` < '2025-02-05 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:20:20] Production.INFO: count ==4966 [2025-02-05 15:20:22] Production.ERROR: pbx CDR StartTime 2025-02-05 12:20:05 - End Time 2025-02-05 15:20:05 [2025-02-05 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408578', 'tblTempUsageDetail_20' ) start [2025-02-05 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408578', 'tblTempUsageDetail_20' ) end [2025-02-05 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408578', 'tblTempVendorCDR_20' ) start [2025-02-05 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408578', 'tblTempVendorCDR_20' ) end [2025-02-05 15:20:22] Production.INFO: ProcessCDR(1,14408578,1,1,2) [2025-02-05 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408578', 'tblTempUsageDetail_20' ) start [2025-02-05 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408578', 'tblTempUsageDetail_20' ) end [2025-02-05 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:20:27] Production.INFO: ==29715== Releasing lock... [2025-02-05 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:20:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:21:05 [end_date_ymd] => 2025-02-05 15:21:05 [RateCDR] => 1 ) [2025-02-05 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:21:05' and `end` < '2025-02-05 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:21:21] Production.INFO: count ==5032 [2025-02-05 15:21:23] Production.ERROR: pbx CDR StartTime 2025-02-05 12:21:05 - End Time 2025-02-05 15:21:05 [2025-02-05 15:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408584', 'tblTempUsageDetail_20' ) start [2025-02-05 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408584', 'tblTempUsageDetail_20' ) end [2025-02-05 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408584', 'tblTempVendorCDR_20' ) start [2025-02-05 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408584', 'tblTempVendorCDR_20' ) end [2025-02-05 15:21:23] Production.INFO: ProcessCDR(1,14408584,1,1,2) [2025-02-05 15:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408584', 'tblTempUsageDetail_20' ) start [2025-02-05 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408584', 'tblTempUsageDetail_20' ) end [2025-02-05 15:21:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:21:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:21:28] Production.INFO: ==29793== Releasing lock... [2025-02-05 15:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:21:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:22:06 [end_date_ymd] => 2025-02-05 15:22:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:22:06' and `end` < '2025-02-05 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-02-05 15:22:21] Production.INFO: count ==5026 [2025-02-05 15:22:23] Production.ERROR: pbx CDR StartTime 2025-02-05 12:22:06 - End Time 2025-02-05 15:22:06 [2025-02-05 15:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408589', 'tblTempUsageDetail_20' ) start [2025-02-05 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408589', 'tblTempUsageDetail_20' ) end [2025-02-05 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408589', 'tblTempVendorCDR_20' ) start [2025-02-05 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408589', 'tblTempVendorCDR_20' ) end [2025-02-05 15:22:23] Production.INFO: ProcessCDR(1,14408589,1,1,2) [2025-02-05 15:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408589', 'tblTempUsageDetail_20' ) start [2025-02-05 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408589', 'tblTempUsageDetail_20' ) end [2025-02-05 15:22:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:22:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:22:28] Production.INFO: ==29869== Releasing lock... [2025-02-05 15:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:22:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:23:05 [end_date_ymd] => 2025-02-05 15:23:05 [RateCDR] => 1 ) [2025-02-05 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:23:05' and `end` < '2025-02-05 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:23:30] Production.INFO: count ==5024 [2025-02-05 15:23:32] Production.ERROR: pbx CDR StartTime 2025-02-05 12:23:05 - End Time 2025-02-05 15:23:05 [2025-02-05 15:23:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408594', 'tblTempUsageDetail_20' ) start [2025-02-05 15:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408594', 'tblTempUsageDetail_20' ) end [2025-02-05 15:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408594', 'tblTempVendorCDR_20' ) start [2025-02-05 15:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408594', 'tblTempVendorCDR_20' ) end [2025-02-05 15:23:32] Production.INFO: ProcessCDR(1,14408594,1,1,2) [2025-02-05 15:23:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:23:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:23:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:23:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408594', 'tblTempUsageDetail_20' ) start [2025-02-05 15:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408594', 'tblTempUsageDetail_20' ) end [2025-02-05 15:23:37] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:23:37] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:23:37] Production.INFO: ==29950== Releasing lock... [2025-02-05 15:23:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:23:37] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:24:06 [end_date_ymd] => 2025-02-05 15:24:06 [RateCDR] => 1 ) [2025-02-05 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:24:06' and `end` < '2025-02-05 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:24:25] Production.INFO: count ==5025 [2025-02-05 15:24:27] Production.ERROR: pbx CDR StartTime 2025-02-05 12:24:06 - End Time 2025-02-05 15:24:06 [2025-02-05 15:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408599', 'tblTempUsageDetail_20' ) start [2025-02-05 15:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408599', 'tblTempUsageDetail_20' ) end [2025-02-05 15:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408599', 'tblTempVendorCDR_20' ) start [2025-02-05 15:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408599', 'tblTempVendorCDR_20' ) end [2025-02-05 15:24:27] Production.INFO: ProcessCDR(1,14408599,1,1,2) [2025-02-05 15:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408599', 'tblTempUsageDetail_20' ) start [2025-02-05 15:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408599', 'tblTempUsageDetail_20' ) end [2025-02-05 15:24:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:24:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:24:31] Production.INFO: ==30024== Releasing lock... [2025-02-05 15:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:24:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:25:05 [end_date_ymd] => 2025-02-05 15:25:05 [RateCDR] => 1 ) [2025-02-05 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:25:05' and `end` < '2025-02-05 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:25:25] Production.INFO: count ==5008 [2025-02-05 15:25:27] Production.ERROR: pbx CDR StartTime 2025-02-05 12:25:05 - End Time 2025-02-05 15:25:05 [2025-02-05 15:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408604', 'tblTempUsageDetail_20' ) start [2025-02-05 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408604', 'tblTempUsageDetail_20' ) end [2025-02-05 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408604', 'tblTempVendorCDR_20' ) start [2025-02-05 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408604', 'tblTempVendorCDR_20' ) end [2025-02-05 15:25:27] Production.INFO: ProcessCDR(1,14408604,1,1,2) [2025-02-05 15:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408604', 'tblTempUsageDetail_20' ) start [2025-02-05 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408604', 'tblTempUsageDetail_20' ) end [2025-02-05 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:25:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:25:31] Production.INFO: ==30101== Releasing lock... [2025-02-05 15:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:25:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:26:05 [end_date_ymd] => 2025-02-05 15:26:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:26:05' and `end` < '2025-02-05 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-02-05 15:26:25] Production.INFO: count ==4986 [2025-02-05 15:26:27] Production.ERROR: pbx CDR StartTime 2025-02-05 12:26:05 - End Time 2025-02-05 15:26:05 [2025-02-05 15:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408609', 'tblTempUsageDetail_20' ) start [2025-02-05 15:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408609', 'tblTempUsageDetail_20' ) end [2025-02-05 15:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408609', 'tblTempVendorCDR_20' ) start [2025-02-05 15:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408609', 'tblTempVendorCDR_20' ) end [2025-02-05 15:26:27] Production.INFO: ProcessCDR(1,14408609,1,1,2) [2025-02-05 15:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408609', 'tblTempUsageDetail_20' ) start [2025-02-05 15:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408609', 'tblTempUsageDetail_20' ) end [2025-02-05 15:26:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:26:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:26:31] Production.INFO: ==30179== Releasing lock... [2025-02-05 15:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:26:31] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:27:04 [end_date_ymd] => 2025-02-05 15:27:04 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:27:04' and `end` < '2025-02-05 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-02-05 15:27:21] Production.INFO: count ==4960 [2025-02-05 15:27:23] Production.ERROR: pbx CDR StartTime 2025-02-05 12:27:04 - End Time 2025-02-05 15:27:04 [2025-02-05 15:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408614', 'tblTempUsageDetail_20' ) start [2025-02-05 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408614', 'tblTempUsageDetail_20' ) end [2025-02-05 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408614', 'tblTempVendorCDR_20' ) start [2025-02-05 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408614', 'tblTempVendorCDR_20' ) end [2025-02-05 15:27:24] Production.INFO: ProcessCDR(1,14408614,1,1,2) [2025-02-05 15:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408614', 'tblTempUsageDetail_20' ) start [2025-02-05 15:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408614', 'tblTempUsageDetail_20' ) end [2025-02-05 15:27:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:27:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:27:28] Production.INFO: ==30302== Releasing lock... [2025-02-05 15:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:27:28] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:28:05 [end_date_ymd] => 2025-02-05 15:28:05 [RateCDR] => 1 ) [2025-02-05 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:28:05' and `end` < '2025-02-05 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:28:21] Production.INFO: count ==4942 [2025-02-05 15:28:23] Production.ERROR: pbx CDR StartTime 2025-02-05 12:28:05 - End Time 2025-02-05 15:28:05 [2025-02-05 15:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408619', 'tblTempUsageDetail_20' ) start [2025-02-05 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408619', 'tblTempUsageDetail_20' ) end [2025-02-05 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408619', 'tblTempVendorCDR_20' ) start [2025-02-05 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408619', 'tblTempVendorCDR_20' ) end [2025-02-05 15:28:23] Production.INFO: ProcessCDR(1,14408619,1,1,2) [2025-02-05 15:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408619', 'tblTempUsageDetail_20' ) start [2025-02-05 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408619', 'tblTempUsageDetail_20' ) end [2025-02-05 15:28:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:28:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:28:28] Production.INFO: ==30388== Releasing lock... [2025-02-05 15:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:28:28] Production.INFO: 65 MB #Memory Used# [2025-02-05 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:29:05 [end_date_ymd] => 2025-02-05 15:29:05 [RateCDR] => 1 ) [2025-02-05 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:29:05' and `end` < '2025-02-05 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:29:19] Production.INFO: count ==4940 [2025-02-05 15:29:21] Production.ERROR: pbx CDR StartTime 2025-02-05 12:29:05 - End Time 2025-02-05 15:29:05 [2025-02-05 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408624', 'tblTempUsageDetail_20' ) start [2025-02-05 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408624', 'tblTempUsageDetail_20' ) end [2025-02-05 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408624', 'tblTempVendorCDR_20' ) start [2025-02-05 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408624', 'tblTempVendorCDR_20' ) end [2025-02-05 15:29:21] Production.INFO: ProcessCDR(1,14408624,1,1,2) [2025-02-05 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408624', 'tblTempUsageDetail_20' ) start [2025-02-05 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408624', 'tblTempUsageDetail_20' ) end [2025-02-05 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:29:26] Production.INFO: ==30465== Releasing lock... [2025-02-05 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:29:26] Production.INFO: 65 MB #Memory Used# [2025-02-05 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:30:06 [end_date_ymd] => 2025-02-05 15:30:06 [RateCDR] => 1 ) [2025-02-05 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:30:06' and `end` < '2025-02-05 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:30:24] Production.INFO: count ==4936 [2025-02-05 15:30:26] Production.ERROR: pbx CDR StartTime 2025-02-05 12:30:06 - End Time 2025-02-05 15:30:06 [2025-02-05 15:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408630', 'tblTempUsageDetail_20' ) start [2025-02-05 15:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408630', 'tblTempUsageDetail_20' ) end [2025-02-05 15:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408630', 'tblTempVendorCDR_20' ) start [2025-02-05 15:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408630', 'tblTempVendorCDR_20' ) end [2025-02-05 15:30:26] Production.INFO: ProcessCDR(1,14408630,1,1,2) [2025-02-05 15:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408630', 'tblTempUsageDetail_20' ) start [2025-02-05 15:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408630', 'tblTempUsageDetail_20' ) end [2025-02-05 15:30:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:30:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:30:30] Production.INFO: ==30546== Releasing lock... [2025-02-05 15:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:30:30] Production.INFO: 65 MB #Memory Used# [2025-02-05 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:31:06 [end_date_ymd] => 2025-02-05 15:31:06 [RateCDR] => 1 ) [2025-02-05 15:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:31:06' and `end` < '2025-02-05 15:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:31:21] Production.INFO: count ==4967 [2025-02-05 15:31:23] Production.ERROR: pbx CDR StartTime 2025-02-05 12:31:06 - End Time 2025-02-05 15:31:06 [2025-02-05 15:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408635', 'tblTempUsageDetail_20' ) start [2025-02-05 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408635', 'tblTempUsageDetail_20' ) end [2025-02-05 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408635', 'tblTempVendorCDR_20' ) start [2025-02-05 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408635', 'tblTempVendorCDR_20' ) end [2025-02-05 15:31:23] Production.INFO: ProcessCDR(1,14408635,1,1,2) [2025-02-05 15:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408635', 'tblTempUsageDetail_20' ) start [2025-02-05 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408635', 'tblTempUsageDetail_20' ) end [2025-02-05 15:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:31:28] Production.INFO: ==30624== Releasing lock... [2025-02-05 15:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:31:28] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:32:05 [end_date_ymd] => 2025-02-05 15:32:05 [RateCDR] => 1 ) [2025-02-05 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:32:05' and `end` < '2025-02-05 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:32:20] Production.INFO: count ==4954 [2025-02-05 15:32:22] Production.ERROR: pbx CDR StartTime 2025-02-05 12:32:05 - End Time 2025-02-05 15:32:05 [2025-02-05 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408640', 'tblTempUsageDetail_20' ) start [2025-02-05 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408640', 'tblTempUsageDetail_20' ) end [2025-02-05 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408640', 'tblTempVendorCDR_20' ) start [2025-02-05 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408640', 'tblTempVendorCDR_20' ) end [2025-02-05 15:32:22] Production.INFO: ProcessCDR(1,14408640,1,1,2) [2025-02-05 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408640', 'tblTempUsageDetail_20' ) start [2025-02-05 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408640', 'tblTempUsageDetail_20' ) end [2025-02-05 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:32:26] Production.INFO: ==30695== Releasing lock... [2025-02-05 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:32:26] Production.INFO: 65 MB #Memory Used# [2025-02-05 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:33:05 [end_date_ymd] => 2025-02-05 15:33:05 [RateCDR] => 1 ) [2025-02-05 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:33:05' and `end` < '2025-02-05 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:33:32] Production.INFO: count ==4984 [2025-02-05 15:33:34] Production.ERROR: pbx CDR StartTime 2025-02-05 12:33:05 - End Time 2025-02-05 15:33:05 [2025-02-05 15:33:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408645', 'tblTempUsageDetail_20' ) start [2025-02-05 15:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408645', 'tblTempUsageDetail_20' ) end [2025-02-05 15:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408645', 'tblTempVendorCDR_20' ) start [2025-02-05 15:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408645', 'tblTempVendorCDR_20' ) end [2025-02-05 15:33:34] Production.INFO: ProcessCDR(1,14408645,1,1,2) [2025-02-05 15:33:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:33:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:33:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:33:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:33:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408645', 'tblTempUsageDetail_20' ) start [2025-02-05 15:33:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408645', 'tblTempUsageDetail_20' ) end [2025-02-05 15:33:39] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:33:39] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:33:39] Production.INFO: ==30770== Releasing lock... [2025-02-05 15:33:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:33:39] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:34:05 [end_date_ymd] => 2025-02-05 15:34:05 [RateCDR] => 1 ) [2025-02-05 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:34:05' and `end` < '2025-02-05 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:34:23] Production.INFO: count ==4988 [2025-02-05 15:34:25] Production.ERROR: pbx CDR StartTime 2025-02-05 12:34:05 - End Time 2025-02-05 15:34:05 [2025-02-05 15:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408650', 'tblTempUsageDetail_20' ) start [2025-02-05 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408650', 'tblTempUsageDetail_20' ) end [2025-02-05 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408650', 'tblTempVendorCDR_20' ) start [2025-02-05 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408650', 'tblTempVendorCDR_20' ) end [2025-02-05 15:34:25] Production.INFO: ProcessCDR(1,14408650,1,1,2) [2025-02-05 15:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408650', 'tblTempUsageDetail_20' ) start [2025-02-05 15:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408650', 'tblTempUsageDetail_20' ) end [2025-02-05 15:34:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:34:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:34:30] Production.INFO: ==30845== Releasing lock... [2025-02-05 15:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:34:30] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:35:05 [end_date_ymd] => 2025-02-05 15:35:05 [RateCDR] => 1 ) [2025-02-05 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:35:05' and `end` < '2025-02-05 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:35:29] Production.INFO: count ==5040 [2025-02-05 15:35:31] Production.ERROR: pbx CDR StartTime 2025-02-05 12:35:05 - End Time 2025-02-05 15:35:05 [2025-02-05 15:35:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408655', 'tblTempUsageDetail_20' ) start [2025-02-05 15:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408655', 'tblTempUsageDetail_20' ) end [2025-02-05 15:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408655', 'tblTempVendorCDR_20' ) start [2025-02-05 15:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408655', 'tblTempVendorCDR_20' ) end [2025-02-05 15:35:31] Production.INFO: ProcessCDR(1,14408655,1,1,2) [2025-02-05 15:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:35:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:35:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408655', 'tblTempUsageDetail_20' ) start [2025-02-05 15:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408655', 'tblTempUsageDetail_20' ) end [2025-02-05 15:35:36] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:35:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:35:36] Production.INFO: ==30931== Releasing lock... [2025-02-05 15:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:35:36] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:36:05 [end_date_ymd] => 2025-02-05 15:36:05 [RateCDR] => 1 ) [2025-02-05 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:36:05' and `end` < '2025-02-05 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:36:24] Production.INFO: count ==5020 [2025-02-05 15:36:26] Production.ERROR: pbx CDR StartTime 2025-02-05 12:36:05 - End Time 2025-02-05 15:36:05 [2025-02-05 15:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408660', 'tblTempUsageDetail_20' ) start [2025-02-05 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408660', 'tblTempUsageDetail_20' ) end [2025-02-05 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408660', 'tblTempVendorCDR_20' ) start [2025-02-05 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408660', 'tblTempVendorCDR_20' ) end [2025-02-05 15:36:26] Production.INFO: ProcessCDR(1,14408660,1,1,2) [2025-02-05 15:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408660', 'tblTempUsageDetail_20' ) start [2025-02-05 15:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408660', 'tblTempUsageDetail_20' ) end [2025-02-05 15:36:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:36:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:36:31] Production.INFO: ==31008== Releasing lock... [2025-02-05 15:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:36:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:37:05 [end_date_ymd] => 2025-02-05 15:37:05 [RateCDR] => 1 ) [2025-02-05 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:37:05' and `end` < '2025-02-05 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:37:21] Production.INFO: count ==5020 [2025-02-05 15:37:23] Production.ERROR: pbx CDR StartTime 2025-02-05 12:37:05 - End Time 2025-02-05 15:37:05 [2025-02-05 15:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408665', 'tblTempUsageDetail_20' ) start [2025-02-05 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408665', 'tblTempUsageDetail_20' ) end [2025-02-05 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408665', 'tblTempVendorCDR_20' ) start [2025-02-05 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408665', 'tblTempVendorCDR_20' ) end [2025-02-05 15:37:23] Production.INFO: ProcessCDR(1,14408665,1,1,2) [2025-02-05 15:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408665', 'tblTempUsageDetail_20' ) start [2025-02-05 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408665', 'tblTempUsageDetail_20' ) end [2025-02-05 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:37:27] Production.INFO: ==31087== Releasing lock... [2025-02-05 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:37:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:38:06 [end_date_ymd] => 2025-02-05 15:38:06 [RateCDR] => 1 ) [2025-02-05 15:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:38:06' and `end` < '2025-02-05 15:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:38:21] Production.INFO: count ==5012 [2025-02-05 15:38:23] Production.ERROR: pbx CDR StartTime 2025-02-05 12:38:06 - End Time 2025-02-05 15:38:06 [2025-02-05 15:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408670', 'tblTempUsageDetail_20' ) start [2025-02-05 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408670', 'tblTempUsageDetail_20' ) end [2025-02-05 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408670', 'tblTempVendorCDR_20' ) start [2025-02-05 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408670', 'tblTempVendorCDR_20' ) end [2025-02-05 15:38:23] Production.INFO: ProcessCDR(1,14408670,1,1,2) [2025-02-05 15:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408670', 'tblTempUsageDetail_20' ) start [2025-02-05 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408670', 'tblTempUsageDetail_20' ) end [2025-02-05 15:38:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:38:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:38:28] Production.INFO: ==31167== Releasing lock... [2025-02-05 15:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:38:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:39:05 [end_date_ymd] => 2025-02-05 15:39:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:39:05' and `end` < '2025-02-05 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-02-05 15:39:23] Production.INFO: count ==5014 [2025-02-05 15:39:25] Production.ERROR: pbx CDR StartTime 2025-02-05 12:39:05 - End Time 2025-02-05 15:39:05 [2025-02-05 15:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408675', 'tblTempUsageDetail_20' ) start [2025-02-05 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408675', 'tblTempUsageDetail_20' ) end [2025-02-05 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408675', 'tblTempVendorCDR_20' ) start [2025-02-05 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408675', 'tblTempVendorCDR_20' ) end [2025-02-05 15:39:26] Production.INFO: ProcessCDR(1,14408675,1,1,2) [2025-02-05 15:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408675', 'tblTempUsageDetail_20' ) start [2025-02-05 15:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408675', 'tblTempUsageDetail_20' ) end [2025-02-05 15:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:39:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:39:30] Production.INFO: ==31241== Releasing lock... [2025-02-05 15:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:39:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:40:06 [end_date_ymd] => 2025-02-05 15:40:06 [RateCDR] => 1 ) [2025-02-05 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:40:06' and `end` < '2025-02-05 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:40:25] Production.INFO: count ==5022 [2025-02-05 15:40:27] Production.ERROR: pbx CDR StartTime 2025-02-05 12:40:06 - End Time 2025-02-05 15:40:06 [2025-02-05 15:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408681', 'tblTempUsageDetail_20' ) start [2025-02-05 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408681', 'tblTempUsageDetail_20' ) end [2025-02-05 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408681', 'tblTempVendorCDR_20' ) start [2025-02-05 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408681', 'tblTempVendorCDR_20' ) end [2025-02-05 15:40:27] Production.INFO: ProcessCDR(1,14408681,1,1,2) [2025-02-05 15:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408681', 'tblTempUsageDetail_20' ) start [2025-02-05 15:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408681', 'tblTempUsageDetail_20' ) end [2025-02-05 15:40:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:40:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:40:32] Production.INFO: ==31319== Releasing lock... [2025-02-05 15:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:40:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:41:05 [end_date_ymd] => 2025-02-05 15:41:05 [RateCDR] => 1 ) [2025-02-05 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:41:05' and `end` < '2025-02-05 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:41:24] Production.INFO: count ==5058 [2025-02-05 15:41:26] Production.ERROR: pbx CDR StartTime 2025-02-05 12:41:05 - End Time 2025-02-05 15:41:05 [2025-02-05 15:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408686', 'tblTempUsageDetail_20' ) start [2025-02-05 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408686', 'tblTempUsageDetail_20' ) end [2025-02-05 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408686', 'tblTempVendorCDR_20' ) start [2025-02-05 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408686', 'tblTempVendorCDR_20' ) end [2025-02-05 15:41:26] Production.INFO: ProcessCDR(1,14408686,1,1,2) [2025-02-05 15:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408686', 'tblTempUsageDetail_20' ) start [2025-02-05 15:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408686', 'tblTempUsageDetail_20' ) end [2025-02-05 15:41:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:41:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:41:31] Production.INFO: ==31397== Releasing lock... [2025-02-05 15:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:41:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:42:05 [end_date_ymd] => 2025-02-05 15:42:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:42:05' and `end` < '2025-02-05 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-02-05 15:42:21] Production.INFO: count ==5085 [2025-02-05 15:42:23] Production.ERROR: pbx CDR StartTime 2025-02-05 12:42:05 - End Time 2025-02-05 15:42:05 [2025-02-05 15:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408691', 'tblTempUsageDetail_20' ) start [2025-02-05 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408691', 'tblTempUsageDetail_20' ) end [2025-02-05 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408691', 'tblTempVendorCDR_20' ) start [2025-02-05 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408691', 'tblTempVendorCDR_20' ) end [2025-02-05 15:42:23] Production.INFO: ProcessCDR(1,14408691,1,1,2) [2025-02-05 15:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408691', 'tblTempUsageDetail_20' ) start [2025-02-05 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408691', 'tblTempUsageDetail_20' ) end [2025-02-05 15:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:42:28] Production.INFO: ==31513== Releasing lock... [2025-02-05 15:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:42:28] Production.INFO: 66 MB #Memory Used# [2025-02-05 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:43:05 [end_date_ymd] => 2025-02-05 15:43:05 [RateCDR] => 1 ) [2025-02-05 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:43:05' and `end` < '2025-02-05 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:43:28] Production.INFO: count ==5094 [2025-02-05 15:43:30] Production.ERROR: pbx CDR StartTime 2025-02-05 12:43:05 - End Time 2025-02-05 15:43:05 [2025-02-05 15:43:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408696', 'tblTempUsageDetail_20' ) start [2025-02-05 15:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408696', 'tblTempUsageDetail_20' ) end [2025-02-05 15:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408696', 'tblTempVendorCDR_20' ) start [2025-02-05 15:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408696', 'tblTempVendorCDR_20' ) end [2025-02-05 15:43:30] Production.INFO: ProcessCDR(1,14408696,1,1,2) [2025-02-05 15:43:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:43:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:43:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:43:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408696', 'tblTempUsageDetail_20' ) start [2025-02-05 15:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408696', 'tblTempUsageDetail_20' ) end [2025-02-05 15:43:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:43:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:43:35] Production.INFO: ==31585== Releasing lock... [2025-02-05 15:43:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:43:35] Production.INFO: 66.25 MB #Memory Used# [2025-02-05 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:44:05 [end_date_ymd] => 2025-02-05 15:44:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:44:05' and `end` < '2025-02-05 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-02-05 15:44:22] Production.INFO: count ==5138 [2025-02-05 15:44:24] Production.ERROR: pbx CDR StartTime 2025-02-05 12:44:05 - End Time 2025-02-05 15:44:05 [2025-02-05 15:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408701', 'tblTempUsageDetail_20' ) start [2025-02-05 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408701', 'tblTempUsageDetail_20' ) end [2025-02-05 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408701', 'tblTempVendorCDR_20' ) start [2025-02-05 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408701', 'tblTempVendorCDR_20' ) end [2025-02-05 15:44:24] Production.INFO: ProcessCDR(1,14408701,1,1,2) [2025-02-05 15:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408701', 'tblTempUsageDetail_20' ) start [2025-02-05 15:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408701', 'tblTempUsageDetail_20' ) end [2025-02-05 15:44:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:44:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:44:30] Production.INFO: ==31656== Releasing lock... [2025-02-05 15:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:44:30] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:45:06 [end_date_ymd] => 2025-02-05 15:45:06 [RateCDR] => 1 ) [2025-02-05 15:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:45:06' and `end` < '2025-02-05 15:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:45:27] Production.INFO: count ==5162 [2025-02-05 15:45:29] Production.ERROR: pbx CDR StartTime 2025-02-05 12:45:06 - End Time 2025-02-05 15:45:06 [2025-02-05 15:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408706', 'tblTempUsageDetail_20' ) start [2025-02-05 15:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408706', 'tblTempUsageDetail_20' ) end [2025-02-05 15:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408706', 'tblTempVendorCDR_20' ) start [2025-02-05 15:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408706', 'tblTempVendorCDR_20' ) end [2025-02-05 15:45:29] Production.INFO: ProcessCDR(1,14408706,1,1,2) [2025-02-05 15:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408706', 'tblTempUsageDetail_20' ) start [2025-02-05 15:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408706', 'tblTempUsageDetail_20' ) end [2025-02-05 15:45:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:45:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:45:34] Production.INFO: ==31731== Releasing lock... [2025-02-05 15:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:45:34] Production.INFO: 66.75 MB #Memory Used# [2025-02-05 15:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:46:04 [end_date_ymd] => 2025-02-05 15:46:04 [RateCDR] => 1 ) [2025-02-05 15:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:46:04' and `end` < '2025-02-05 15:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:46:30] Production.INFO: count ==5155 [2025-02-05 15:46:32] Production.ERROR: pbx CDR StartTime 2025-02-05 12:46:04 - End Time 2025-02-05 15:46:04 [2025-02-05 15:46:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408711', 'tblTempUsageDetail_20' ) start [2025-02-05 15:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408711', 'tblTempUsageDetail_20' ) end [2025-02-05 15:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408711', 'tblTempVendorCDR_20' ) start [2025-02-05 15:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408711', 'tblTempVendorCDR_20' ) end [2025-02-05 15:46:33] Production.INFO: ProcessCDR(1,14408711,1,1,2) [2025-02-05 15:46:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:46:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:46:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:46:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:46:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408711', 'tblTempUsageDetail_20' ) start [2025-02-05 15:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408711', 'tblTempUsageDetail_20' ) end [2025-02-05 15:46:38] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:46:38] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:46:38] Production.INFO: ==31828== Releasing lock... [2025-02-05 15:46:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:46:38] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:47:05 [end_date_ymd] => 2025-02-05 15:47:05 [RateCDR] => 1 ) [2025-02-05 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:47:05' and `end` < '2025-02-05 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:47:25] Production.INFO: count ==5171 [2025-02-05 15:47:27] Production.ERROR: pbx CDR StartTime 2025-02-05 12:47:05 - End Time 2025-02-05 15:47:05 [2025-02-05 15:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408716', 'tblTempUsageDetail_20' ) start [2025-02-05 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408716', 'tblTempUsageDetail_20' ) end [2025-02-05 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408716', 'tblTempVendorCDR_20' ) start [2025-02-05 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408716', 'tblTempVendorCDR_20' ) end [2025-02-05 15:47:27] Production.INFO: ProcessCDR(1,14408716,1,1,2) [2025-02-05 15:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408716', 'tblTempUsageDetail_20' ) start [2025-02-05 15:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408716', 'tblTempUsageDetail_20' ) end [2025-02-05 15:47:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:47:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:47:30] Production.INFO: ==31907== Releasing lock... [2025-02-05 15:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:47:30] Production.INFO: 66.75 MB #Memory Used# [2025-02-05 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:48:05 [end_date_ymd] => 2025-02-05 15:48:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 12:48:05' and `end` < '2025-02-05 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-02-05 15:48:24] Production.INFO: count ==5190 [2025-02-05 15:48:26] Production.ERROR: pbx CDR StartTime 2025-02-05 12:48:05 - End Time 2025-02-05 15:48:05 [2025-02-05 15:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408721', 'tblTempUsageDetail_20' ) start [2025-02-05 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408721', 'tblTempUsageDetail_20' ) end [2025-02-05 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408721', 'tblTempVendorCDR_20' ) start [2025-02-05 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408721', 'tblTempVendorCDR_20' ) end [2025-02-05 15:48:26] Production.INFO: ProcessCDR(1,14408721,1,1,2) [2025-02-05 15:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408721', 'tblTempUsageDetail_20' ) start [2025-02-05 15:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408721', 'tblTempUsageDetail_20' ) end [2025-02-05 15:48:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:48:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:48:31] Production.INFO: ==31978== Releasing lock... [2025-02-05 15:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:48:31] Production.INFO: 66.75 MB #Memory Used# [2025-02-05 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:49:05 [end_date_ymd] => 2025-02-05 15:49:05 [RateCDR] => 1 ) [2025-02-05 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:49:05' and `end` < '2025-02-05 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:49:35] Production.INFO: count ==5180 [2025-02-05 15:49:37] Production.ERROR: pbx CDR StartTime 2025-02-05 12:49:05 - End Time 2025-02-05 15:49:05 [2025-02-05 15:49:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:49:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408726', 'tblTempUsageDetail_20' ) start [2025-02-05 15:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408726', 'tblTempUsageDetail_20' ) end [2025-02-05 15:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408726', 'tblTempVendorCDR_20' ) start [2025-02-05 15:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408726', 'tblTempVendorCDR_20' ) end [2025-02-05 15:49:38] Production.INFO: ProcessCDR(1,14408726,1,1,2) [2025-02-05 15:49:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:49:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:49:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:49:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:49:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408726', 'tblTempUsageDetail_20' ) start [2025-02-05 15:49:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408726', 'tblTempUsageDetail_20' ) end [2025-02-05 15:49:42] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:49:42] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:49:42] Production.INFO: ==32064== Releasing lock... [2025-02-05 15:49:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:49:42] Production.INFO: 66.75 MB #Memory Used# [2025-02-05 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:50:06 [end_date_ymd] => 2025-02-05 15:50:06 [RateCDR] => 1 ) [2025-02-05 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:50:06' and `end` < '2025-02-05 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:50:29] Production.INFO: count ==5196 [2025-02-05 15:50:31] Production.ERROR: pbx CDR StartTime 2025-02-05 12:50:06 - End Time 2025-02-05 15:50:06 [2025-02-05 15:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408732', 'tblTempUsageDetail_20' ) start [2025-02-05 15:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408732', 'tblTempUsageDetail_20' ) end [2025-02-05 15:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408732', 'tblTempVendorCDR_20' ) start [2025-02-05 15:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408732', 'tblTempVendorCDR_20' ) end [2025-02-05 15:50:31] Production.INFO: ProcessCDR(1,14408732,1,1,2) [2025-02-05 15:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408732', 'tblTempUsageDetail_20' ) start [2025-02-05 15:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408732', 'tblTempUsageDetail_20' ) end [2025-02-05 15:50:36] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:50:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:50:36] Production.INFO: ==32145== Releasing lock... [2025-02-05 15:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:50:36] Production.INFO: 67 MB #Memory Used# [2025-02-05 15:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:51:04 [end_date_ymd] => 2025-02-05 15:51:04 [RateCDR] => 1 ) [2025-02-05 15:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:51:04' and `end` < '2025-02-05 15:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:51:23] Production.INFO: count ==5201 [2025-02-05 15:51:25] Production.ERROR: pbx CDR StartTime 2025-02-05 12:51:04 - End Time 2025-02-05 15:51:04 [2025-02-05 15:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408737', 'tblTempUsageDetail_20' ) start [2025-02-05 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408737', 'tblTempUsageDetail_20' ) end [2025-02-05 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408737', 'tblTempVendorCDR_20' ) start [2025-02-05 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408737', 'tblTempVendorCDR_20' ) end [2025-02-05 15:51:25] Production.INFO: ProcessCDR(1,14408737,1,1,2) [2025-02-05 15:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408737', 'tblTempUsageDetail_20' ) start [2025-02-05 15:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408737', 'tblTempUsageDetail_20' ) end [2025-02-05 15:51:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:51:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:51:30] Production.INFO: ==32219== Releasing lock... [2025-02-05 15:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:51:30] Production.INFO: 67 MB #Memory Used# [2025-02-05 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:52:06 [end_date_ymd] => 2025-02-05 15:52:06 [RateCDR] => 1 ) [2025-02-05 15:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:52:06' and `end` < '2025-02-05 15:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:52:30] Production.INFO: count ==5221 [2025-02-05 15:52:32] Production.ERROR: pbx CDR StartTime 2025-02-05 12:52:06 - End Time 2025-02-05 15:52:06 [2025-02-05 15:52:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408742', 'tblTempUsageDetail_20' ) start [2025-02-05 15:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408742', 'tblTempUsageDetail_20' ) end [2025-02-05 15:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408742', 'tblTempVendorCDR_20' ) start [2025-02-05 15:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408742', 'tblTempVendorCDR_20' ) end [2025-02-05 15:52:32] Production.INFO: ProcessCDR(1,14408742,1,1,2) [2025-02-05 15:52:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:52:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:52:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:52:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:52:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408742', 'tblTempUsageDetail_20' ) start [2025-02-05 15:52:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408742', 'tblTempUsageDetail_20' ) end [2025-02-05 15:52:37] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:52:37] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:52:37] Production.INFO: ==32293== Releasing lock... [2025-02-05 15:52:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:52:37] Production.INFO: 67 MB #Memory Used# [2025-02-05 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:53:05 [end_date_ymd] => 2025-02-05 15:53:05 [RateCDR] => 1 ) [2025-02-05 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:53:05' and `end` < '2025-02-05 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:53:26] Production.INFO: count ==5231 [2025-02-05 15:53:28] Production.ERROR: pbx CDR StartTime 2025-02-05 12:53:05 - End Time 2025-02-05 15:53:05 [2025-02-05 15:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408747', 'tblTempUsageDetail_20' ) start [2025-02-05 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408747', 'tblTempUsageDetail_20' ) end [2025-02-05 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408747', 'tblTempVendorCDR_20' ) start [2025-02-05 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408747', 'tblTempVendorCDR_20' ) end [2025-02-05 15:53:28] Production.INFO: ProcessCDR(1,14408747,1,1,2) [2025-02-05 15:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408747', 'tblTempUsageDetail_20' ) start [2025-02-05 15:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408747', 'tblTempUsageDetail_20' ) end [2025-02-05 15:53:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:53:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:53:33] Production.INFO: ==32368== Releasing lock... [2025-02-05 15:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:53:33] Production.INFO: 67.25 MB #Memory Used# [2025-02-05 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:54:05 [end_date_ymd] => 2025-02-05 15:54:05 [RateCDR] => 1 ) [2025-02-05 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:54:05' and `end` < '2025-02-05 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:54:23] Production.INFO: count ==5200 [2025-02-05 15:54:25] Production.ERROR: pbx CDR StartTime 2025-02-05 12:54:05 - End Time 2025-02-05 15:54:05 [2025-02-05 15:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408752', 'tblTempUsageDetail_20' ) start [2025-02-05 15:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408752', 'tblTempUsageDetail_20' ) end [2025-02-05 15:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408752', 'tblTempVendorCDR_20' ) start [2025-02-05 15:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408752', 'tblTempVendorCDR_20' ) end [2025-02-05 15:54:25] Production.INFO: ProcessCDR(1,14408752,1,1,2) [2025-02-05 15:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408752', 'tblTempUsageDetail_20' ) start [2025-02-05 15:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408752', 'tblTempUsageDetail_20' ) end [2025-02-05 15:54:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:54:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:54:30] Production.INFO: ==32440== Releasing lock... [2025-02-05 15:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:54:30] Production.INFO: 67 MB #Memory Used# [2025-02-05 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:55:06 [end_date_ymd] => 2025-02-05 15:55:06 [RateCDR] => 1 ) [2025-02-05 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:55:06' and `end` < '2025-02-05 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:55:33] Production.INFO: count ==5193 [2025-02-05 15:55:35] Production.ERROR: pbx CDR StartTime 2025-02-05 12:55:06 - End Time 2025-02-05 15:55:06 [2025-02-05 15:55:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408757', 'tblTempUsageDetail_20' ) start [2025-02-05 15:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408757', 'tblTempUsageDetail_20' ) end [2025-02-05 15:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408757', 'tblTempVendorCDR_20' ) start [2025-02-05 15:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408757', 'tblTempVendorCDR_20' ) end [2025-02-05 15:55:35] Production.INFO: ProcessCDR(1,14408757,1,1,2) [2025-02-05 15:55:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:55:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:55:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:55:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408757', 'tblTempUsageDetail_20' ) start [2025-02-05 15:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408757', 'tblTempUsageDetail_20' ) end [2025-02-05 15:55:39] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:55:39] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:55:39] Production.INFO: ==32512== Releasing lock... [2025-02-05 15:55:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:55:39] Production.INFO: 66.75 MB #Memory Used# [2025-02-05 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:56:05 [end_date_ymd] => 2025-02-05 15:56:05 [RateCDR] => 1 ) [2025-02-05 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:56:05' and `end` < '2025-02-05 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:56:22] Production.INFO: count ==5180 [2025-02-05 15:56:24] Production.ERROR: pbx CDR StartTime 2025-02-05 12:56:05 - End Time 2025-02-05 15:56:05 [2025-02-05 15:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408762', 'tblTempUsageDetail_20' ) start [2025-02-05 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408762', 'tblTempUsageDetail_20' ) end [2025-02-05 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408762', 'tblTempVendorCDR_20' ) start [2025-02-05 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408762', 'tblTempVendorCDR_20' ) end [2025-02-05 15:56:24] Production.INFO: ProcessCDR(1,14408762,1,1,2) [2025-02-05 15:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408762', 'tblTempUsageDetail_20' ) start [2025-02-05 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408762', 'tblTempUsageDetail_20' ) end [2025-02-05 15:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:56:28] Production.INFO: ==32585== Releasing lock... [2025-02-05 15:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:56:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-05 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:57:05 [end_date_ymd] => 2025-02-05 15:57:05 [RateCDR] => 1 ) [2025-02-05 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:57:05' and `end` < '2025-02-05 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:57:21] Production.INFO: count ==5164 [2025-02-05 15:57:23] Production.ERROR: pbx CDR StartTime 2025-02-05 12:57:05 - End Time 2025-02-05 15:57:05 [2025-02-05 15:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408767', 'tblTempUsageDetail_20' ) start [2025-02-05 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408767', 'tblTempUsageDetail_20' ) end [2025-02-05 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408767', 'tblTempVendorCDR_20' ) start [2025-02-05 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408767', 'tblTempVendorCDR_20' ) end [2025-02-05 15:57:23] Production.INFO: ProcessCDR(1,14408767,1,1,2) [2025-02-05 15:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408767', 'tblTempUsageDetail_20' ) start [2025-02-05 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408767', 'tblTempUsageDetail_20' ) end [2025-02-05 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:57:28] Production.INFO: ==32655== Releasing lock... [2025-02-05 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:57:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-05 15:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:58:04 [end_date_ymd] => 2025-02-05 15:58:04 [RateCDR] => 1 ) [2025-02-05 15:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:58:04' and `end` < '2025-02-05 15:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:58:22] Production.INFO: count ==5143 [2025-02-05 15:58:24] Production.ERROR: pbx CDR StartTime 2025-02-05 12:58:04 - End Time 2025-02-05 15:58:04 [2025-02-05 15:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408772', 'tblTempUsageDetail_20' ) start [2025-02-05 15:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408772', 'tblTempUsageDetail_20' ) end [2025-02-05 15:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408772', 'tblTempVendorCDR_20' ) start [2025-02-05 15:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408772', 'tblTempVendorCDR_20' ) end [2025-02-05 15:58:24] Production.INFO: ProcessCDR(1,14408772,1,1,2) [2025-02-05 15:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408772', 'tblTempUsageDetail_20' ) start [2025-02-05 15:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408772', 'tblTempUsageDetail_20' ) end [2025-02-05 15:58:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:58:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:58:29] Production.INFO: ==303== Releasing lock... [2025-02-05 15:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:58:29] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 12:59:05 [end_date_ymd] => 2025-02-05 15:59:05 [RateCDR] => 1 ) [2025-02-05 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 12:59:05' and `end` < '2025-02-05 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 15:59:25] Production.INFO: count ==5120 [2025-02-05 15:59:27] Production.ERROR: pbx CDR StartTime 2025-02-05 12:59:05 - End Time 2025-02-05 15:59:05 [2025-02-05 15:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 15:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408777', 'tblTempUsageDetail_20' ) start [2025-02-05 15:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408777', 'tblTempUsageDetail_20' ) end [2025-02-05 15:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408777', 'tblTempVendorCDR_20' ) start [2025-02-05 15:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408777', 'tblTempVendorCDR_20' ) end [2025-02-05 15:59:27] Production.INFO: ProcessCDR(1,14408777,1,1,2) [2025-02-05 15:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 15:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:59:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 15:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408777', 'tblTempUsageDetail_20' ) start [2025-02-05 15:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408777', 'tblTempUsageDetail_20' ) end [2025-02-05 15:59:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 15:59:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 15:59:32] Production.INFO: ==394== Releasing lock... [2025-02-05 15:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 15:59:32] Production.INFO: 66.25 MB #Memory Used# [2025-02-05 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:00:05 [end_date_ymd] => 2025-02-05 16:00:05 [RateCDR] => 1 ) [2025-02-05 16:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:00:05' and `end` < '2025-02-05 16:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:00:27] Production.INFO: count ==5128 [2025-02-05 16:00:29] Production.ERROR: pbx CDR StartTime 2025-02-05 13:00:05 - End Time 2025-02-05 16:00:05 [2025-02-05 16:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408781', 'tblTempUsageDetail_20' ) start [2025-02-05 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408781', 'tblTempUsageDetail_20' ) end [2025-02-05 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408781', 'tblTempVendorCDR_20' ) start [2025-02-05 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408781', 'tblTempVendorCDR_20' ) end [2025-02-05 16:00:29] Production.INFO: ProcessCDR(1,14408781,1,1,2) [2025-02-05 16:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408781', 'tblTempUsageDetail_20' ) start [2025-02-05 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408781', 'tblTempUsageDetail_20' ) end [2025-02-05 16:00:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:00:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:00:34] Production.INFO: ==473== Releasing lock... [2025-02-05 16:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:00:34] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:01:05 [end_date_ymd] => 2025-02-05 16:01:05 [RateCDR] => 1 ) [2025-02-05 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:01:05' and `end` < '2025-02-05 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:01:29] Production.INFO: count ==5142 [2025-02-05 16:01:31] Production.ERROR: pbx CDR StartTime 2025-02-05 13:01:05 - End Time 2025-02-05 16:01:05 [2025-02-05 16:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408788', 'tblTempUsageDetail_20' ) start [2025-02-05 16:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408788', 'tblTempUsageDetail_20' ) end [2025-02-05 16:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408788', 'tblTempVendorCDR_20' ) start [2025-02-05 16:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408788', 'tblTempVendorCDR_20' ) end [2025-02-05 16:01:31] Production.INFO: ProcessCDR(1,14408788,1,1,2) [2025-02-05 16:01:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:01:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:01:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:01:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408788', 'tblTempUsageDetail_20' ) start [2025-02-05 16:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408788', 'tblTempUsageDetail_20' ) end [2025-02-05 16:01:36] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:01:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:01:36] Production.INFO: ==573== Releasing lock... [2025-02-05 16:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:01:36] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:02:06 [end_date_ymd] => 2025-02-05 16:02:06 [RateCDR] => 1 ) [2025-02-05 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:02:06' and `end` < '2025-02-05 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:02:24] Production.INFO: count ==5143 [2025-02-05 16:02:26] Production.ERROR: pbx CDR StartTime 2025-02-05 13:02:06 - End Time 2025-02-05 16:02:06 [2025-02-05 16:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408793', 'tblTempUsageDetail_20' ) start [2025-02-05 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408793', 'tblTempUsageDetail_20' ) end [2025-02-05 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408793', 'tblTempVendorCDR_20' ) start [2025-02-05 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408793', 'tblTempVendorCDR_20' ) end [2025-02-05 16:02:26] Production.INFO: ProcessCDR(1,14408793,1,1,2) [2025-02-05 16:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408793', 'tblTempUsageDetail_20' ) start [2025-02-05 16:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408793', 'tblTempUsageDetail_20' ) end [2025-02-05 16:02:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:02:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:02:30] Production.INFO: ==656== Releasing lock... [2025-02-05 16:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:02:30] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:03:05 [end_date_ymd] => 2025-02-05 16:03:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 13:03:05' and `end` < '2025-02-05 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-02-05 16:03:23] Production.INFO: count ==5147 [2025-02-05 16:03:25] Production.ERROR: pbx CDR StartTime 2025-02-05 13:03:05 - End Time 2025-02-05 16:03:05 [2025-02-05 16:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408798', 'tblTempUsageDetail_20' ) start [2025-02-05 16:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408798', 'tblTempUsageDetail_20' ) end [2025-02-05 16:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408798', 'tblTempVendorCDR_20' ) start [2025-02-05 16:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408798', 'tblTempVendorCDR_20' ) end [2025-02-05 16:03:26] Production.INFO: ProcessCDR(1,14408798,1,1,2) [2025-02-05 16:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408798', 'tblTempUsageDetail_20' ) start [2025-02-05 16:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408798', 'tblTempUsageDetail_20' ) end [2025-02-05 16:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:03:31] Production.INFO: ==758== Releasing lock... [2025-02-05 16:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:03:31] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:04:05 [end_date_ymd] => 2025-02-05 16:04:05 [RateCDR] => 1 ) [2025-02-05 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:04:05' and `end` < '2025-02-05 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:04:22] Production.INFO: count ==5133 [2025-02-05 16:04:24] Production.ERROR: pbx CDR StartTime 2025-02-05 13:04:05 - End Time 2025-02-05 16:04:05 [2025-02-05 16:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408803', 'tblTempUsageDetail_20' ) start [2025-02-05 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408803', 'tblTempUsageDetail_20' ) end [2025-02-05 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408803', 'tblTempVendorCDR_20' ) start [2025-02-05 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408803', 'tblTempVendorCDR_20' ) end [2025-02-05 16:04:24] Production.INFO: ProcessCDR(1,14408803,1,1,2) [2025-02-05 16:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408803', 'tblTempUsageDetail_20' ) start [2025-02-05 16:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408803', 'tblTempUsageDetail_20' ) end [2025-02-05 16:04:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:04:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:04:29] Production.INFO: ==831== Releasing lock... [2025-02-05 16:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:04:29] Production.INFO: 66.5 MB #Memory Used# [2025-02-05 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:05:04 [end_date_ymd] => 2025-02-05 16:05:04 [RateCDR] => 1 ) [2025-02-05 16:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:05:04' and `end` < '2025-02-05 16:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:05:23] Production.INFO: count ==5114 [2025-02-05 16:05:25] Production.ERROR: pbx CDR StartTime 2025-02-05 13:05:04 - End Time 2025-02-05 16:05:04 [2025-02-05 16:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408808', 'tblTempUsageDetail_20' ) start [2025-02-05 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408808', 'tblTempUsageDetail_20' ) end [2025-02-05 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408808', 'tblTempVendorCDR_20' ) start [2025-02-05 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408808', 'tblTempVendorCDR_20' ) end [2025-02-05 16:05:25] Production.INFO: ProcessCDR(1,14408808,1,1,2) [2025-02-05 16:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408808', 'tblTempUsageDetail_20' ) start [2025-02-05 16:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408808', 'tblTempUsageDetail_20' ) end [2025-02-05 16:05:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:05:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:05:30] Production.INFO: ==918== Releasing lock... [2025-02-05 16:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:05:30] Production.INFO: 66.25 MB #Memory Used# [2025-02-05 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:06:05 [end_date_ymd] => 2025-02-05 16:06:05 [RateCDR] => 1 ) [2025-02-05 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:06:05' and `end` < '2025-02-05 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:06:21] Production.INFO: count ==5103 [2025-02-05 16:06:23] Production.ERROR: pbx CDR StartTime 2025-02-05 13:06:05 - End Time 2025-02-05 16:06:05 [2025-02-05 16:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408813', 'tblTempUsageDetail_20' ) start [2025-02-05 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408813', 'tblTempUsageDetail_20' ) end [2025-02-05 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408813', 'tblTempVendorCDR_20' ) start [2025-02-05 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408813', 'tblTempVendorCDR_20' ) end [2025-02-05 16:06:23] Production.INFO: ProcessCDR(1,14408813,1,1,2) [2025-02-05 16:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408813', 'tblTempUsageDetail_20' ) start [2025-02-05 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408813', 'tblTempUsageDetail_20' ) end [2025-02-05 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:06:27] Production.INFO: ==991== Releasing lock... [2025-02-05 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:06:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-05 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:07:04 [end_date_ymd] => 2025-02-05 16:07:04 [RateCDR] => 1 ) [2025-02-05 16:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:07:04' and `end` < '2025-02-05 16:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:07:24] Production.INFO: count ==5095 [2025-02-05 16:07:26] Production.ERROR: pbx CDR StartTime 2025-02-05 13:07:04 - End Time 2025-02-05 16:07:04 [2025-02-05 16:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408818', 'tblTempUsageDetail_20' ) start [2025-02-05 16:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408818', 'tblTempUsageDetail_20' ) end [2025-02-05 16:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408818', 'tblTempVendorCDR_20' ) start [2025-02-05 16:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408818', 'tblTempVendorCDR_20' ) end [2025-02-05 16:07:26] Production.INFO: ProcessCDR(1,14408818,1,1,2) [2025-02-05 16:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408818', 'tblTempUsageDetail_20' ) start [2025-02-05 16:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408818', 'tblTempUsageDetail_20' ) end [2025-02-05 16:07:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:07:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:07:30] Production.INFO: ==1064== Releasing lock... [2025-02-05 16:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:07:30] Production.INFO: 66.25 MB #Memory Used# [2025-02-05 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:08:05 [end_date_ymd] => 2025-02-05 16:08:05 [RateCDR] => 1 ) [2025-02-05 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:08:05' and `end` < '2025-02-05 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:08:24] Production.INFO: count ==5095 [2025-02-05 16:08:26] Production.ERROR: pbx CDR StartTime 2025-02-05 13:08:05 - End Time 2025-02-05 16:08:05 [2025-02-05 16:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408823', 'tblTempUsageDetail_20' ) start [2025-02-05 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408823', 'tblTempUsageDetail_20' ) end [2025-02-05 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408823', 'tblTempVendorCDR_20' ) start [2025-02-05 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408823', 'tblTempVendorCDR_20' ) end [2025-02-05 16:08:26] Production.INFO: ProcessCDR(1,14408823,1,1,2) [2025-02-05 16:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408823', 'tblTempUsageDetail_20' ) start [2025-02-05 16:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408823', 'tblTempUsageDetail_20' ) end [2025-02-05 16:08:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:08:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:08:31] Production.INFO: ==1140== Releasing lock... [2025-02-05 16:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:08:31] Production.INFO: 66.25 MB #Memory Used# [2025-02-05 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:09:05 [end_date_ymd] => 2025-02-05 16:09:05 [RateCDR] => 1 ) [2025-02-05 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:09:05' and `end` < '2025-02-05 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:09:24] Production.INFO: count ==5107 [2025-02-05 16:09:26] Production.ERROR: pbx CDR StartTime 2025-02-05 13:09:05 - End Time 2025-02-05 16:09:05 [2025-02-05 16:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408828', 'tblTempUsageDetail_20' ) start [2025-02-05 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408828', 'tblTempUsageDetail_20' ) end [2025-02-05 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408828', 'tblTempVendorCDR_20' ) start [2025-02-05 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408828', 'tblTempVendorCDR_20' ) end [2025-02-05 16:09:26] Production.INFO: ProcessCDR(1,14408828,1,1,2) [2025-02-05 16:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408828', 'tblTempUsageDetail_20' ) start [2025-02-05 16:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408828', 'tblTempUsageDetail_20' ) end [2025-02-05 16:09:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:09:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:09:31] Production.INFO: ==1220== Releasing lock... [2025-02-05 16:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:09:31] Production.INFO: 66.25 MB #Memory Used# [2025-02-05 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:10:05 [end_date_ymd] => 2025-02-05 16:10:05 [RateCDR] => 1 ) [2025-02-05 16:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:10:05' and `end` < '2025-02-05 16:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:10:23] Production.INFO: count ==5092 [2025-02-05 16:10:25] Production.ERROR: pbx CDR StartTime 2025-02-05 13:10:05 - End Time 2025-02-05 16:10:05 [2025-02-05 16:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408833', 'tblTempUsageDetail_20' ) start [2025-02-05 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408833', 'tblTempUsageDetail_20' ) end [2025-02-05 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408833', 'tblTempVendorCDR_20' ) start [2025-02-05 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408833', 'tblTempVendorCDR_20' ) end [2025-02-05 16:10:25] Production.INFO: ProcessCDR(1,14408833,1,1,2) [2025-02-05 16:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408833', 'tblTempUsageDetail_20' ) start [2025-02-05 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408833', 'tblTempUsageDetail_20' ) end [2025-02-05 16:10:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:10:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:10:29] Production.INFO: ==1315== Releasing lock... [2025-02-05 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:10:29] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:11:05 [end_date_ymd] => 2025-02-05 16:11:05 [RateCDR] => 1 ) [2025-02-05 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:11:05' and `end` < '2025-02-05 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:11:25] Production.INFO: count ==5094 [2025-02-05 16:11:27] Production.ERROR: pbx CDR StartTime 2025-02-05 13:11:05 - End Time 2025-02-05 16:11:05 [2025-02-05 16:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408839', 'tblTempUsageDetail_20' ) start [2025-02-05 16:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408839', 'tblTempUsageDetail_20' ) end [2025-02-05 16:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408839', 'tblTempVendorCDR_20' ) start [2025-02-05 16:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408839', 'tblTempVendorCDR_20' ) end [2025-02-05 16:11:27] Production.INFO: ProcessCDR(1,14408839,1,1,2) [2025-02-05 16:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408839', 'tblTempUsageDetail_20' ) start [2025-02-05 16:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408839', 'tblTempUsageDetail_20' ) end [2025-02-05 16:11:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:11:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:11:32] Production.INFO: ==1393== Releasing lock... [2025-02-05 16:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:11:32] Production.INFO: 66.25 MB #Memory Used# [2025-02-05 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:12:05 [end_date_ymd] => 2025-02-05 16:12:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 13:12:05' and `end` < '2025-02-05 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-02-05 16:12:22] Production.INFO: count ==5091 [2025-02-05 16:12:24] Production.ERROR: pbx CDR StartTime 2025-02-05 13:12:05 - End Time 2025-02-05 16:12:05 [2025-02-05 16:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408844', 'tblTempUsageDetail_20' ) start [2025-02-05 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408844', 'tblTempUsageDetail_20' ) end [2025-02-05 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408844', 'tblTempVendorCDR_20' ) start [2025-02-05 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408844', 'tblTempVendorCDR_20' ) end [2025-02-05 16:12:24] Production.INFO: ProcessCDR(1,14408844,1,1,2) [2025-02-05 16:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408844', 'tblTempUsageDetail_20' ) start [2025-02-05 16:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408844', 'tblTempUsageDetail_20' ) end [2025-02-05 16:12:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:12:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:12:29] Production.INFO: ==1468== Releasing lock... [2025-02-05 16:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:12:29] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:13:05 [end_date_ymd] => 2025-02-05 16:13:05 [RateCDR] => 1 ) [2025-02-05 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:13:05' and `end` < '2025-02-05 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:13:22] Production.INFO: count ==5069 [2025-02-05 16:13:24] Production.ERROR: pbx CDR StartTime 2025-02-05 13:13:05 - End Time 2025-02-05 16:13:05 [2025-02-05 16:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408849', 'tblTempUsageDetail_20' ) start [2025-02-05 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408849', 'tblTempUsageDetail_20' ) end [2025-02-05 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408849', 'tblTempVendorCDR_20' ) start [2025-02-05 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408849', 'tblTempVendorCDR_20' ) end [2025-02-05 16:13:24] Production.INFO: ProcessCDR(1,14408849,1,1,2) [2025-02-05 16:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408849', 'tblTempUsageDetail_20' ) start [2025-02-05 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408849', 'tblTempUsageDetail_20' ) end [2025-02-05 16:13:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:13:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:13:28] Production.INFO: ==1620== Releasing lock... [2025-02-05 16:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:13:28] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:14:05 [end_date_ymd] => 2025-02-05 16:14:05 [RateCDR] => 1 ) [2025-02-05 16:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:14:05' and `end` < '2025-02-05 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:14:24] Production.INFO: count ==5042 [2025-02-05 16:14:26] Production.ERROR: pbx CDR StartTime 2025-02-05 13:14:05 - End Time 2025-02-05 16:14:05 [2025-02-05 16:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408854', 'tblTempUsageDetail_20' ) start [2025-02-05 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408854', 'tblTempUsageDetail_20' ) end [2025-02-05 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408854', 'tblTempVendorCDR_20' ) start [2025-02-05 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408854', 'tblTempVendorCDR_20' ) end [2025-02-05 16:14:26] Production.INFO: ProcessCDR(1,14408854,1,1,2) [2025-02-05 16:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408854', 'tblTempUsageDetail_20' ) start [2025-02-05 16:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408854', 'tblTempUsageDetail_20' ) end [2025-02-05 16:14:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:14:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:14:31] Production.INFO: ==1708== Releasing lock... [2025-02-05 16:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:14:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:15:05 [end_date_ymd] => 2025-02-05 16:15:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 13:15:05' and `end` < '2025-02-05 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-02-05 16:15:24] Production.INFO: count ==5027 [2025-02-05 16:15:26] Production.ERROR: pbx CDR StartTime 2025-02-05 13:15:05 - End Time 2025-02-05 16:15:05 [2025-02-05 16:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408859', 'tblTempUsageDetail_20' ) start [2025-02-05 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408859', 'tblTempUsageDetail_20' ) end [2025-02-05 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408859', 'tblTempVendorCDR_20' ) start [2025-02-05 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408859', 'tblTempVendorCDR_20' ) end [2025-02-05 16:15:26] Production.INFO: ProcessCDR(1,14408859,1,1,2) [2025-02-05 16:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408859', 'tblTempUsageDetail_20' ) start [2025-02-05 16:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408859', 'tblTempUsageDetail_20' ) end [2025-02-05 16:15:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:15:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:15:30] Production.INFO: ==1792== Releasing lock... [2025-02-05 16:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:15:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:16:06 [end_date_ymd] => 2025-02-05 16:16:06 [RateCDR] => 1 ) [2025-02-05 16:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:16:06' and `end` < '2025-02-05 16:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:16:20] Production.INFO: count ==5012 [2025-02-05 16:16:22] Production.ERROR: pbx CDR StartTime 2025-02-05 13:16:06 - End Time 2025-02-05 16:16:06 [2025-02-05 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408864', 'tblTempUsageDetail_20' ) start [2025-02-05 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408864', 'tblTempUsageDetail_20' ) end [2025-02-05 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408864', 'tblTempVendorCDR_20' ) start [2025-02-05 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408864', 'tblTempVendorCDR_20' ) end [2025-02-05 16:16:22] Production.INFO: ProcessCDR(1,14408864,1,1,2) [2025-02-05 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408864', 'tblTempUsageDetail_20' ) start [2025-02-05 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408864', 'tblTempUsageDetail_20' ) end [2025-02-05 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:16:27] Production.INFO: ==1876== Releasing lock... [2025-02-05 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:16:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 16:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:17:04 [end_date_ymd] => 2025-02-05 16:17:04 [RateCDR] => 1 ) [2025-02-05 16:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:17:04' and `end` < '2025-02-05 16:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:17:19] Production.INFO: count ==5016 [2025-02-05 16:17:21] Production.ERROR: pbx CDR StartTime 2025-02-05 13:17:04 - End Time 2025-02-05 16:17:04 [2025-02-05 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408869', 'tblTempUsageDetail_20' ) start [2025-02-05 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408869', 'tblTempUsageDetail_20' ) end [2025-02-05 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408869', 'tblTempVendorCDR_20' ) start [2025-02-05 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408869', 'tblTempVendorCDR_20' ) end [2025-02-05 16:17:22] Production.INFO: ProcessCDR(1,14408869,1,1,2) [2025-02-05 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408869', 'tblTempUsageDetail_20' ) start [2025-02-05 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408869', 'tblTempUsageDetail_20' ) end [2025-02-05 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:17:26] Production.INFO: ==1956== Releasing lock... [2025-02-05 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:17:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:18:05 [end_date_ymd] => 2025-02-05 16:18:05 [RateCDR] => 1 ) [2025-02-05 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:18:05' and `end` < '2025-02-05 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:18:19] Production.INFO: count ==4999 [2025-02-05 16:18:21] Production.ERROR: pbx CDR StartTime 2025-02-05 13:18:05 - End Time 2025-02-05 16:18:05 [2025-02-05 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408874', 'tblTempUsageDetail_20' ) start [2025-02-05 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408874', 'tblTempUsageDetail_20' ) end [2025-02-05 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408874', 'tblTempVendorCDR_20' ) start [2025-02-05 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408874', 'tblTempVendorCDR_20' ) end [2025-02-05 16:18:21] Production.INFO: ProcessCDR(1,14408874,1,1,2) [2025-02-05 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408874', 'tblTempUsageDetail_20' ) start [2025-02-05 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408874', 'tblTempUsageDetail_20' ) end [2025-02-05 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:18:26] Production.INFO: ==2046== Releasing lock... [2025-02-05 16:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:18:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:19:04 [end_date_ymd] => 2025-02-05 16:19:04 [RateCDR] => 1 ) [2025-02-05 16:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:19:04' and `end` < '2025-02-05 16:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:19:19] Production.INFO: count ==4976 [2025-02-05 16:19:21] Production.ERROR: pbx CDR StartTime 2025-02-05 13:19:04 - End Time 2025-02-05 16:19:04 [2025-02-05 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408879', 'tblTempUsageDetail_20' ) start [2025-02-05 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408879', 'tblTempUsageDetail_20' ) end [2025-02-05 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408879', 'tblTempVendorCDR_20' ) start [2025-02-05 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408879', 'tblTempVendorCDR_20' ) end [2025-02-05 16:19:21] Production.INFO: ProcessCDR(1,14408879,1,1,2) [2025-02-05 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408879', 'tblTempUsageDetail_20' ) start [2025-02-05 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408879', 'tblTempUsageDetail_20' ) end [2025-02-05 16:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:19:24] Production.INFO: ==2122== Releasing lock... [2025-02-05 16:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:19:24] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:20:06 [end_date_ymd] => 2025-02-05 16:20:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 13:20:06' and `end` < '2025-02-05 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-02-05 16:20:21] Production.INFO: count ==4997 [2025-02-05 16:20:23] Production.ERROR: pbx CDR StartTime 2025-02-05 13:20:06 - End Time 2025-02-05 16:20:06 [2025-02-05 16:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408885', 'tblTempUsageDetail_20' ) start [2025-02-05 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408885', 'tblTempUsageDetail_20' ) end [2025-02-05 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408885', 'tblTempVendorCDR_20' ) start [2025-02-05 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408885', 'tblTempVendorCDR_20' ) end [2025-02-05 16:20:24] Production.INFO: ProcessCDR(1,14408885,1,1,2) [2025-02-05 16:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408885', 'tblTempUsageDetail_20' ) start [2025-02-05 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408885', 'tblTempUsageDetail_20' ) end [2025-02-05 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:20:28] Production.INFO: ==2209== Releasing lock... [2025-02-05 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:20:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:21:05 [end_date_ymd] => 2025-02-05 16:21:05 [RateCDR] => 1 ) [2025-02-05 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:21:05' and `end` < '2025-02-05 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:21:30] Production.INFO: count ==5065 [2025-02-05 16:21:32] Production.ERROR: pbx CDR StartTime 2025-02-05 13:21:05 - End Time 2025-02-05 16:21:05 [2025-02-05 16:21:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408890', 'tblTempUsageDetail_20' ) start [2025-02-05 16:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408890', 'tblTempUsageDetail_20' ) end [2025-02-05 16:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408890', 'tblTempVendorCDR_20' ) start [2025-02-05 16:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408890', 'tblTempVendorCDR_20' ) end [2025-02-05 16:21:32] Production.INFO: ProcessCDR(1,14408890,1,1,2) [2025-02-05 16:21:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:21:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:21:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:21:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:21:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408890', 'tblTempUsageDetail_20' ) start [2025-02-05 16:21:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408890', 'tblTempUsageDetail_20' ) end [2025-02-05 16:21:37] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:21:37] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:21:37] Production.INFO: ==2287== Releasing lock... [2025-02-05 16:21:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:21:37] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:22:04 [end_date_ymd] => 2025-02-05 16:22:04 [RateCDR] => 1 ) [2025-02-05 16: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-02-05 13:22:04' and `end` < '2025-02-05 16: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-02-05 16:22:25] Production.INFO: count ==5060 [2025-02-05 16:22:27] Production.ERROR: pbx CDR StartTime 2025-02-05 13:22:04 - End Time 2025-02-05 16:22:04 [2025-02-05 16:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408895', 'tblTempUsageDetail_20' ) start [2025-02-05 16:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408895', 'tblTempUsageDetail_20' ) end [2025-02-05 16:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408895', 'tblTempVendorCDR_20' ) start [2025-02-05 16:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408895', 'tblTempVendorCDR_20' ) end [2025-02-05 16:22:27] Production.INFO: ProcessCDR(1,14408895,1,1,2) [2025-02-05 16:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408895', 'tblTempUsageDetail_20' ) start [2025-02-05 16:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408895', 'tblTempUsageDetail_20' ) end [2025-02-05 16:22:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:22:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:22:31] Production.INFO: ==2359== Releasing lock... [2025-02-05 16:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:22:31] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:23:05 [end_date_ymd] => 2025-02-05 16:23:05 [RateCDR] => 1 ) [2025-02-05 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:23:05' and `end` < '2025-02-05 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:23:26] Production.INFO: count ==5067 [2025-02-05 16:23:28] Production.ERROR: pbx CDR StartTime 2025-02-05 13:23:05 - End Time 2025-02-05 16:23:05 [2025-02-05 16:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408900', 'tblTempUsageDetail_20' ) start [2025-02-05 16:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408900', 'tblTempUsageDetail_20' ) end [2025-02-05 16:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408900', 'tblTempVendorCDR_20' ) start [2025-02-05 16:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408900', 'tblTempVendorCDR_20' ) end [2025-02-05 16:23:29] Production.INFO: ProcessCDR(1,14408900,1,1,2) [2025-02-05 16:23:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408900', 'tblTempUsageDetail_20' ) start [2025-02-05 16:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408900', 'tblTempUsageDetail_20' ) end [2025-02-05 16:23:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:23:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:23:34] Production.INFO: ==2442== Releasing lock... [2025-02-05 16:23:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:23:34] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:24:05 [end_date_ymd] => 2025-02-05 16:24:05 [RateCDR] => 1 ) [2025-02-05 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:24:05' and `end` < '2025-02-05 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-02-05 16:24:24] Production.INFO: count ==5064 [2025-02-05 16:24:26] Production.ERROR: pbx CDR StartTime 2025-02-05 13:24:05 - End Time 2025-02-05 16:24:05 [2025-02-05 16:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408905', 'tblTempUsageDetail_20' ) start [2025-02-05 16:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408905', 'tblTempUsageDetail_20' ) end [2025-02-05 16:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408905', 'tblTempVendorCDR_20' ) start [2025-02-05 16:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408905', 'tblTempVendorCDR_20' ) end [2025-02-05 16:24:26] Production.INFO: ProcessCDR(1,14408905,1,1,2) [2025-02-05 16:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408905', 'tblTempUsageDetail_20' ) start [2025-02-05 16:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408905', 'tblTempUsageDetail_20' ) end [2025-02-05 16:24:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:24:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:24:31] Production.INFO: ==2519== Releasing lock... [2025-02-05 16:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:24:31] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:25:05 [end_date_ymd] => 2025-02-05 16:25:05 [RateCDR] => 1 ) [2025-02-05 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:25:05' and `end` < '2025-02-05 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:25:29] Production.INFO: count ==5080 [2025-02-05 16:25:31] Production.ERROR: pbx CDR StartTime 2025-02-05 13:25:05 - End Time 2025-02-05 16:25:05 [2025-02-05 16:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408910', 'tblTempUsageDetail_20' ) start [2025-02-05 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408910', 'tblTempUsageDetail_20' ) end [2025-02-05 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408910', 'tblTempVendorCDR_20' ) start [2025-02-05 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408910', 'tblTempVendorCDR_20' ) end [2025-02-05 16:25:32] Production.INFO: ProcessCDR(1,14408910,1,1,2) [2025-02-05 16:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408910', 'tblTempUsageDetail_20' ) start [2025-02-05 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408910', 'tblTempUsageDetail_20' ) end [2025-02-05 16:25:36] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:25:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:25:36] Production.INFO: ==2597== Releasing lock... [2025-02-05 16:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:25:36] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:26:05 [end_date_ymd] => 2025-02-05 16:26:05 [RateCDR] => 1 ) [2025-02-05 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:26:05' and `end` < '2025-02-05 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:26:23] Production.INFO: count ==5087 [2025-02-05 16:26:25] Production.ERROR: pbx CDR StartTime 2025-02-05 13:26:05 - End Time 2025-02-05 16:26:05 [2025-02-05 16:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408915', 'tblTempUsageDetail_20' ) start [2025-02-05 16:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408915', 'tblTempUsageDetail_20' ) end [2025-02-05 16:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408915', 'tblTempVendorCDR_20' ) start [2025-02-05 16:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408915', 'tblTempVendorCDR_20' ) end [2025-02-05 16:26:25] Production.INFO: ProcessCDR(1,14408915,1,1,2) [2025-02-05 16:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408915', 'tblTempUsageDetail_20' ) start [2025-02-05 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408915', 'tblTempUsageDetail_20' ) end [2025-02-05 16:26:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:26:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:26:29] Production.INFO: ==2673== Releasing lock... [2025-02-05 16:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:26:29] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:27:05 [end_date_ymd] => 2025-02-05 16:27:05 [RateCDR] => 1 ) [2025-02-05 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:27:05' and `end` < '2025-02-05 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:27:31] Production.INFO: count ==5084 [2025-02-05 16:27:33] Production.ERROR: pbx CDR StartTime 2025-02-05 13:27:05 - End Time 2025-02-05 16:27:05 [2025-02-05 16:27:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408920', 'tblTempUsageDetail_20' ) start [2025-02-05 16:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408920', 'tblTempUsageDetail_20' ) end [2025-02-05 16:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408920', 'tblTempVendorCDR_20' ) start [2025-02-05 16:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408920', 'tblTempVendorCDR_20' ) end [2025-02-05 16:27:34] Production.INFO: ProcessCDR(1,14408920,1,1,2) [2025-02-05 16:27:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:27:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:27:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:27:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:27:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408920', 'tblTempUsageDetail_20' ) start [2025-02-05 16:27:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408920', 'tblTempUsageDetail_20' ) end [2025-02-05 16:27:38] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:27:38] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:27:38] Production.INFO: ==2756== Releasing lock... [2025-02-05 16:27:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:27:38] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:28:05 [end_date_ymd] => 2025-02-05 16:28:05 [RateCDR] => 1 ) [2025-02-05 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:28:05' and `end` < '2025-02-05 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:28:36] Production.INFO: count ==5091 [2025-02-05 16:28:38] Production.ERROR: pbx CDR StartTime 2025-02-05 13:28:05 - End Time 2025-02-05 16:28:05 [2025-02-05 16:28:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408925', 'tblTempUsageDetail_20' ) start [2025-02-05 16:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408925', 'tblTempUsageDetail_20' ) end [2025-02-05 16:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408925', 'tblTempVendorCDR_20' ) start [2025-02-05 16:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408925', 'tblTempVendorCDR_20' ) end [2025-02-05 16:28:39] Production.INFO: ProcessCDR(1,14408925,1,1,2) [2025-02-05 16:28:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:28:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:28:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:28:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:28:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408925', 'tblTempUsageDetail_20' ) start [2025-02-05 16:28:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408925', 'tblTempUsageDetail_20' ) end [2025-02-05 16:28:43] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:28:43] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:28:43] Production.INFO: ==2838== Releasing lock... [2025-02-05 16:28:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:28:43] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:29:04 [end_date_ymd] => 2025-02-05 16:29:04 [RateCDR] => 1 ) [2025-02-05 16: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-02-05 13:29:04' and `end` < '2025-02-05 16: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-02-05 16:29:28] Production.INFO: count ==5082 [2025-02-05 16:29:30] Production.ERROR: pbx CDR StartTime 2025-02-05 13:29:04 - End Time 2025-02-05 16:29:04 [2025-02-05 16:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408930', 'tblTempUsageDetail_20' ) start [2025-02-05 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408930', 'tblTempUsageDetail_20' ) end [2025-02-05 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408930', 'tblTempVendorCDR_20' ) start [2025-02-05 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408930', 'tblTempVendorCDR_20' ) end [2025-02-05 16:29:30] Production.INFO: ProcessCDR(1,14408930,1,1,2) [2025-02-05 16:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408930', 'tblTempUsageDetail_20' ) start [2025-02-05 16:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408930', 'tblTempUsageDetail_20' ) end [2025-02-05 16:29:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:29:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:29:35] Production.INFO: ==2956== Releasing lock... [2025-02-05 16:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:29:35] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:30:06 [end_date_ymd] => 2025-02-05 16:30:06 [RateCDR] => 1 ) [2025-02-05 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:30:06' and `end` < '2025-02-05 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:30:29] Production.INFO: count ==5077 [2025-02-05 16:30:31] Production.ERROR: pbx CDR StartTime 2025-02-05 13:30:06 - End Time 2025-02-05 16:30:06 [2025-02-05 16:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408936', 'tblTempUsageDetail_20' ) start [2025-02-05 16:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408936', 'tblTempUsageDetail_20' ) end [2025-02-05 16:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408936', 'tblTempVendorCDR_20' ) start [2025-02-05 16:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408936', 'tblTempVendorCDR_20' ) end [2025-02-05 16:30:31] Production.INFO: ProcessCDR(1,14408936,1,1,2) [2025-02-05 16:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408936', 'tblTempUsageDetail_20' ) start [2025-02-05 16:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408936', 'tblTempUsageDetail_20' ) end [2025-02-05 16:30:36] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:30:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:30:36] Production.INFO: ==3039== Releasing lock... [2025-02-05 16:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:30:36] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:31:06 [end_date_ymd] => 2025-02-05 16:31:06 [RateCDR] => 1 ) [2025-02-05 16:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:31:06' and `end` < '2025-02-05 16:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:31:23] Production.INFO: count ==5062 [2025-02-05 16:31:24] Production.ERROR: pbx CDR StartTime 2025-02-05 13:31:06 - End Time 2025-02-05 16:31:06 [2025-02-05 16:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408941', 'tblTempUsageDetail_20' ) start [2025-02-05 16:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408941', 'tblTempUsageDetail_20' ) end [2025-02-05 16:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408941', 'tblTempVendorCDR_20' ) start [2025-02-05 16:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408941', 'tblTempVendorCDR_20' ) end [2025-02-05 16:31:25] Production.INFO: ProcessCDR(1,14408941,1,1,2) [2025-02-05 16:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408941', 'tblTempUsageDetail_20' ) start [2025-02-05 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408941', 'tblTempUsageDetail_20' ) end [2025-02-05 16:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:31:29] Production.INFO: ==3125== Releasing lock... [2025-02-05 16:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:31:29] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:32:05 [end_date_ymd] => 2025-02-05 16:32:05 [RateCDR] => 1 ) [2025-02-05 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:32:05' and `end` < '2025-02-05 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:32:19] Production.INFO: count ==5052 [2025-02-05 16:32:21] Production.ERROR: pbx CDR StartTime 2025-02-05 13:32:05 - End Time 2025-02-05 16:32:05 [2025-02-05 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408946', 'tblTempUsageDetail_20' ) start [2025-02-05 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408946', 'tblTempUsageDetail_20' ) end [2025-02-05 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408946', 'tblTempVendorCDR_20' ) start [2025-02-05 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408946', 'tblTempVendorCDR_20' ) end [2025-02-05 16:32:22] Production.INFO: ProcessCDR(1,14408946,1,1,2) [2025-02-05 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408946', 'tblTempUsageDetail_20' ) start [2025-02-05 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408946', 'tblTempUsageDetail_20' ) end [2025-02-05 16:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:32:26] Production.INFO: ==3201== Releasing lock... [2025-02-05 16:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:32:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:33:06 [end_date_ymd] => 2025-02-05 16:33:06 [RateCDR] => 1 ) [2025-02-05 16:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:33:06' and `end` < '2025-02-05 16:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:33:23] Production.INFO: count ==5058 [2025-02-05 16:33:25] Production.ERROR: pbx CDR StartTime 2025-02-05 13:33:06 - End Time 2025-02-05 16:33:06 [2025-02-05 16:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408951', 'tblTempUsageDetail_20' ) start [2025-02-05 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408951', 'tblTempUsageDetail_20' ) end [2025-02-05 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408951', 'tblTempVendorCDR_20' ) start [2025-02-05 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408951', 'tblTempVendorCDR_20' ) end [2025-02-05 16:33:25] Production.INFO: ProcessCDR(1,14408951,1,1,2) [2025-02-05 16:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408951', 'tblTempUsageDetail_20' ) start [2025-02-05 16:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408951', 'tblTempUsageDetail_20' ) end [2025-02-05 16:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:33:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:33:29] Production.INFO: ==3275== Releasing lock... [2025-02-05 16:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:33:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:34:04 [end_date_ymd] => 2025-02-05 16:34:04 [RateCDR] => 1 ) [2025-02-05 16:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:34:04' and `end` < '2025-02-05 16:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:34:19] Production.INFO: count ==5068 [2025-02-05 16:34:21] Production.ERROR: pbx CDR StartTime 2025-02-05 13:34:04 - End Time 2025-02-05 16:34:04 [2025-02-05 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408956', 'tblTempUsageDetail_20' ) start [2025-02-05 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408956', 'tblTempUsageDetail_20' ) end [2025-02-05 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408956', 'tblTempVendorCDR_20' ) start [2025-02-05 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408956', 'tblTempVendorCDR_20' ) end [2025-02-05 16:34:21] Production.INFO: ProcessCDR(1,14408956,1,1,2) [2025-02-05 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408956', 'tblTempUsageDetail_20' ) start [2025-02-05 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408956', 'tblTempUsageDetail_20' ) end [2025-02-05 16:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:34:25] Production.INFO: ==3356== Releasing lock... [2025-02-05 16:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:34:25] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:35:05 [end_date_ymd] => 2025-02-05 16:35:05 [RateCDR] => 1 ) [2025-02-05 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:35:05' and `end` < '2025-02-05 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:35:21] Production.INFO: count ==5065 [2025-02-05 16:35:23] Production.ERROR: pbx CDR StartTime 2025-02-05 13:35:05 - End Time 2025-02-05 16:35:05 [2025-02-05 16:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408961', 'tblTempUsageDetail_20' ) start [2025-02-05 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408961', 'tblTempUsageDetail_20' ) end [2025-02-05 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408961', 'tblTempVendorCDR_20' ) start [2025-02-05 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408961', 'tblTempVendorCDR_20' ) end [2025-02-05 16:35:24] Production.INFO: ProcessCDR(1,14408961,1,1,2) [2025-02-05 16:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408961', 'tblTempUsageDetail_20' ) start [2025-02-05 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408961', 'tblTempUsageDetail_20' ) end [2025-02-05 16:35:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:35:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:35:28] Production.INFO: ==3434== Releasing lock... [2025-02-05 16:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:35:28] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:36:04 [end_date_ymd] => 2025-02-05 16:36:04 [RateCDR] => 1 ) [2025-02-05 16:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:36:04' and `end` < '2025-02-05 16:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:36:19] Production.INFO: count ==5058 [2025-02-05 16:36:21] Production.ERROR: pbx CDR StartTime 2025-02-05 13:36:04 - End Time 2025-02-05 16:36:04 [2025-02-05 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408966', 'tblTempUsageDetail_20' ) start [2025-02-05 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408966', 'tblTempUsageDetail_20' ) end [2025-02-05 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408966', 'tblTempVendorCDR_20' ) start [2025-02-05 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408966', 'tblTempVendorCDR_20' ) end [2025-02-05 16:36:22] Production.INFO: ProcessCDR(1,14408966,1,1,2) [2025-02-05 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408966', 'tblTempUsageDetail_20' ) start [2025-02-05 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408966', 'tblTempUsageDetail_20' ) end [2025-02-05 16:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:36:25] Production.INFO: ==3514== Releasing lock... [2025-02-05 16:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:36:25] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:37:05 [end_date_ymd] => 2025-02-05 16:37:05 [RateCDR] => 1 ) [2025-02-05 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:37:05' and `end` < '2025-02-05 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:37:19] Production.INFO: count ==5051 [2025-02-05 16:37:21] Production.ERROR: pbx CDR StartTime 2025-02-05 13:37:05 - End Time 2025-02-05 16:37:05 [2025-02-05 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408971', 'tblTempUsageDetail_20' ) start [2025-02-05 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408971', 'tblTempUsageDetail_20' ) end [2025-02-05 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408971', 'tblTempVendorCDR_20' ) start [2025-02-05 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408971', 'tblTempVendorCDR_20' ) end [2025-02-05 16:37:21] Production.INFO: ProcessCDR(1,14408971,1,1,2) [2025-02-05 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408971', 'tblTempUsageDetail_20' ) start [2025-02-05 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408971', 'tblTempUsageDetail_20' ) end [2025-02-05 16:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:37:25] Production.INFO: ==3595== Releasing lock... [2025-02-05 16:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:37:25] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:38:06 [end_date_ymd] => 2025-02-05 16:38:06 [RateCDR] => 1 ) [2025-02-05 16:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:38:06' and `end` < '2025-02-05 16:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:38:27] Production.INFO: count ==5062 [2025-02-05 16:38:30] Production.ERROR: pbx CDR StartTime 2025-02-05 13:38:06 - End Time 2025-02-05 16:38:06 [2025-02-05 16:38:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408976', 'tblTempUsageDetail_20' ) start [2025-02-05 16:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408976', 'tblTempUsageDetail_20' ) end [2025-02-05 16:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408976', 'tblTempVendorCDR_20' ) start [2025-02-05 16:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408976', 'tblTempVendorCDR_20' ) end [2025-02-05 16:38:30] Production.INFO: ProcessCDR(1,14408976,1,1,2) [2025-02-05 16:38:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:38:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408976', 'tblTempUsageDetail_20' ) start [2025-02-05 16:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408976', 'tblTempUsageDetail_20' ) end [2025-02-05 16:38:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:38:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:38:35] Production.INFO: ==3676== Releasing lock... [2025-02-05 16:38:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:38:35] Production.INFO: 66 MB #Memory Used# [2025-02-05 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:39:04 [end_date_ymd] => 2025-02-05 16:39:04 [RateCDR] => 1 ) [2025-02-05 16:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:39:04' and `end` < '2025-02-05 16:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:39:27] Production.INFO: count ==5038 [2025-02-05 16:39:29] Production.ERROR: pbx CDR StartTime 2025-02-05 13:39:04 - End Time 2025-02-05 16:39:04 [2025-02-05 16:39:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408981', 'tblTempUsageDetail_20' ) start [2025-02-05 16:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408981', 'tblTempUsageDetail_20' ) end [2025-02-05 16:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408981', 'tblTempVendorCDR_20' ) start [2025-02-05 16:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408981', 'tblTempVendorCDR_20' ) end [2025-02-05 16:39:29] Production.INFO: ProcessCDR(1,14408981,1,1,2) [2025-02-05 16:39:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:39:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:39:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:39:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408981', 'tblTempUsageDetail_20' ) start [2025-02-05 16:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408981', 'tblTempUsageDetail_20' ) end [2025-02-05 16:39:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:39:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:39:34] Production.INFO: ==3753== Releasing lock... [2025-02-05 16:39:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:39:34] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:40:06 [end_date_ymd] => 2025-02-05 16:40:06 [RateCDR] => 1 ) [2025-02-05 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:40:06' and `end` < '2025-02-05 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:40:31] Production.INFO: count ==5016 [2025-02-05 16:40:33] Production.ERROR: pbx CDR StartTime 2025-02-05 13:40:06 - End Time 2025-02-05 16:40:06 [2025-02-05 16:40:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408986', 'tblTempUsageDetail_20' ) start [2025-02-05 16:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408986', 'tblTempUsageDetail_20' ) end [2025-02-05 16:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408986', 'tblTempVendorCDR_20' ) start [2025-02-05 16:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408986', 'tblTempVendorCDR_20' ) end [2025-02-05 16:40:33] Production.INFO: ProcessCDR(1,14408986,1,1,2) [2025-02-05 16:40:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:40:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:40:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:40:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:40:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408986', 'tblTempUsageDetail_20' ) start [2025-02-05 16:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408986', 'tblTempUsageDetail_20' ) end [2025-02-05 16:40:38] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:40:38] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:40:38] Production.INFO: ==3841== Releasing lock... [2025-02-05 16:40:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:40:38] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:41:04 [end_date_ymd] => 2025-02-05 16:41:04 [RateCDR] => 1 ) [2025-02-05 16:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:41:04' and `end` < '2025-02-05 16:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:41:24] Production.INFO: count ==5028 [2025-02-05 16:41:26] Production.ERROR: pbx CDR StartTime 2025-02-05 13:41:04 - End Time 2025-02-05 16:41:04 [2025-02-05 16:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408992', 'tblTempUsageDetail_20' ) start [2025-02-05 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408992', 'tblTempUsageDetail_20' ) end [2025-02-05 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408992', 'tblTempVendorCDR_20' ) start [2025-02-05 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408992', 'tblTempVendorCDR_20' ) end [2025-02-05 16:41:26] Production.INFO: ProcessCDR(1,14408992,1,1,2) [2025-02-05 16:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408992', 'tblTempUsageDetail_20' ) start [2025-02-05 16:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408992', 'tblTempUsageDetail_20' ) end [2025-02-05 16:41:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:41:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:41:30] Production.INFO: ==3917== Releasing lock... [2025-02-05 16:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:41:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:42:05 [end_date_ymd] => 2025-02-05 16:42:05 [RateCDR] => 1 ) [2025-02-05 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:42:05' and `end` < '2025-02-05 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:42:20] Production.INFO: count ==5023 [2025-02-05 16:42:22] Production.ERROR: pbx CDR StartTime 2025-02-05 13:42:05 - End Time 2025-02-05 16:42:05 [2025-02-05 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408997', 'tblTempUsageDetail_20' ) start [2025-02-05 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14408997', 'tblTempUsageDetail_20' ) end [2025-02-05 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408997', 'tblTempVendorCDR_20' ) start [2025-02-05 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14408997', 'tblTempVendorCDR_20' ) end [2025-02-05 16:42:22] Production.INFO: ProcessCDR(1,14408997,1,1,2) [2025-02-05 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14408997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14408997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14408997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14408997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408997', 'tblTempUsageDetail_20' ) start [2025-02-05 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14408997', 'tblTempUsageDetail_20' ) end [2025-02-05 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:42:26] Production.INFO: ==4001== Releasing lock... [2025-02-05 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:42:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:43:05 [end_date_ymd] => 2025-02-05 16:43:05 [RateCDR] => 1 ) [2025-02-05 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:43:05' and `end` < '2025-02-05 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:43:23] Production.INFO: count ==5020 [2025-02-05 16:43:25] Production.ERROR: pbx CDR StartTime 2025-02-05 13:43:05 - End Time 2025-02-05 16:43:05 [2025-02-05 16:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409002', 'tblTempUsageDetail_20' ) start [2025-02-05 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409002', 'tblTempUsageDetail_20' ) end [2025-02-05 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409002', 'tblTempVendorCDR_20' ) start [2025-02-05 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409002', 'tblTempVendorCDR_20' ) end [2025-02-05 16:43:25] Production.INFO: ProcessCDR(1,14409002,1,1,2) [2025-02-05 16:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409002', 'tblTempUsageDetail_20' ) start [2025-02-05 16:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409002', 'tblTempUsageDetail_20' ) end [2025-02-05 16:43:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:43:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:43:29] Production.INFO: ==4083== Releasing lock... [2025-02-05 16:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:43:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:44:05 [end_date_ymd] => 2025-02-05 16:44:05 [RateCDR] => 1 ) [2025-02-05 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:44:05' and `end` < '2025-02-05 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:44:22] Production.INFO: count ==5024 [2025-02-05 16:44:24] Production.ERROR: pbx CDR StartTime 2025-02-05 13:44:05 - End Time 2025-02-05 16:44:05 [2025-02-05 16:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409007', 'tblTempUsageDetail_20' ) start [2025-02-05 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409007', 'tblTempUsageDetail_20' ) end [2025-02-05 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409007', 'tblTempVendorCDR_20' ) start [2025-02-05 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409007', 'tblTempVendorCDR_20' ) end [2025-02-05 16:44:24] Production.INFO: ProcessCDR(1,14409007,1,1,2) [2025-02-05 16:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409007', 'tblTempUsageDetail_20' ) start [2025-02-05 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409007', 'tblTempUsageDetail_20' ) end [2025-02-05 16:44:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:44:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:44:29] Production.INFO: ==4200== Releasing lock... [2025-02-05 16:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:44:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:45:05 [end_date_ymd] => 2025-02-05 16:45:05 [RateCDR] => 1 ) [2025-02-05 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:45:05' and `end` < '2025-02-05 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:45:26] Production.INFO: count ==5034 [2025-02-05 16:45:28] Production.ERROR: pbx CDR StartTime 2025-02-05 13:45:05 - End Time 2025-02-05 16:45:05 [2025-02-05 16:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409012', 'tblTempUsageDetail_20' ) start [2025-02-05 16:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409012', 'tblTempUsageDetail_20' ) end [2025-02-05 16:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409012', 'tblTempVendorCDR_20' ) start [2025-02-05 16:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409012', 'tblTempVendorCDR_20' ) end [2025-02-05 16:45:28] Production.INFO: ProcessCDR(1,14409012,1,1,2) [2025-02-05 16:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409012', 'tblTempUsageDetail_20' ) start [2025-02-05 16:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409012', 'tblTempUsageDetail_20' ) end [2025-02-05 16:45:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:45:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:45:34] Production.INFO: ==4281== Releasing lock... [2025-02-05 16:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:45:34] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:46:05 [end_date_ymd] => 2025-02-05 16:46:05 [RateCDR] => 1 ) [2025-02-05 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:46:05' and `end` < '2025-02-05 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:46:26] Production.INFO: count ==5017 [2025-02-05 16:46:28] Production.ERROR: pbx CDR StartTime 2025-02-05 13:46:05 - End Time 2025-02-05 16:46:05 [2025-02-05 16:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409017', 'tblTempUsageDetail_20' ) start [2025-02-05 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409017', 'tblTempUsageDetail_20' ) end [2025-02-05 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409017', 'tblTempVendorCDR_20' ) start [2025-02-05 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409017', 'tblTempVendorCDR_20' ) end [2025-02-05 16:46:28] Production.INFO: ProcessCDR(1,14409017,1,1,2) [2025-02-05 16:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409017', 'tblTempUsageDetail_20' ) start [2025-02-05 16:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409017', 'tblTempUsageDetail_20' ) end [2025-02-05 16:46:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:46:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:46:32] Production.INFO: ==4355== Releasing lock... [2025-02-05 16:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:46:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:47:05 [end_date_ymd] => 2025-02-05 16:47:05 [RateCDR] => 1 ) [2025-02-05 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:47:05' and `end` < '2025-02-05 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:47:25] Production.INFO: count ==4998 [2025-02-05 16:47:27] Production.ERROR: pbx CDR StartTime 2025-02-05 13:47:05 - End Time 2025-02-05 16:47:05 [2025-02-05 16:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409022', 'tblTempUsageDetail_20' ) start [2025-02-05 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409022', 'tblTempUsageDetail_20' ) end [2025-02-05 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409022', 'tblTempVendorCDR_20' ) start [2025-02-05 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409022', 'tblTempVendorCDR_20' ) end [2025-02-05 16:47:27] Production.INFO: ProcessCDR(1,14409022,1,1,2) [2025-02-05 16:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409022', 'tblTempUsageDetail_20' ) start [2025-02-05 16:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409022', 'tblTempUsageDetail_20' ) end [2025-02-05 16:47:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:47:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:47:32] Production.INFO: ==4432== Releasing lock... [2025-02-05 16:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:47:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:48:05 [end_date_ymd] => 2025-02-05 16:48:05 [RateCDR] => 1 ) [2025-02-05 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:48:05' and `end` < '2025-02-05 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:48:20] Production.INFO: count ==5037 [2025-02-05 16:48:22] Production.ERROR: pbx CDR StartTime 2025-02-05 13:48:05 - End Time 2025-02-05 16:48:05 [2025-02-05 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409027', 'tblTempUsageDetail_20' ) start [2025-02-05 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409027', 'tblTempUsageDetail_20' ) end [2025-02-05 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409027', 'tblTempVendorCDR_20' ) start [2025-02-05 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409027', 'tblTempVendorCDR_20' ) end [2025-02-05 16:48:22] Production.INFO: ProcessCDR(1,14409027,1,1,2) [2025-02-05 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409027', 'tblTempUsageDetail_20' ) start [2025-02-05 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409027', 'tblTempUsageDetail_20' ) end [2025-02-05 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:48:27] Production.INFO: ==4510== Releasing lock... [2025-02-05 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:48:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:49:05 [end_date_ymd] => 2025-02-05 16:49:05 [RateCDR] => 1 ) [2025-02-05 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:49:05' and `end` < '2025-02-05 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:49:21] Production.INFO: count ==5017 [2025-02-05 16:49:23] Production.ERROR: pbx CDR StartTime 2025-02-05 13:49:05 - End Time 2025-02-05 16:49:05 [2025-02-05 16:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409032', 'tblTempUsageDetail_20' ) start [2025-02-05 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409032', 'tblTempUsageDetail_20' ) end [2025-02-05 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409032', 'tblTempVendorCDR_20' ) start [2025-02-05 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409032', 'tblTempVendorCDR_20' ) end [2025-02-05 16:49:24] Production.INFO: ProcessCDR(1,14409032,1,1,2) [2025-02-05 16:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409032', 'tblTempUsageDetail_20' ) start [2025-02-05 16:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409032', 'tblTempUsageDetail_20' ) end [2025-02-05 16:49:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:49:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:49:28] Production.INFO: ==4595== Releasing lock... [2025-02-05 16:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:49:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:50:06 [end_date_ymd] => 2025-02-05 16:50:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 13:50:06' and `end` < '2025-02-05 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-02-05 16:50:27] Production.INFO: count ==5013 [2025-02-05 16:50:29] Production.ERROR: pbx CDR StartTime 2025-02-05 13:50:06 - End Time 2025-02-05 16:50:06 [2025-02-05 16:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409037', 'tblTempUsageDetail_20' ) start [2025-02-05 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409037', 'tblTempUsageDetail_20' ) end [2025-02-05 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409037', 'tblTempVendorCDR_20' ) start [2025-02-05 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409037', 'tblTempVendorCDR_20' ) end [2025-02-05 16:50:29] Production.INFO: ProcessCDR(1,14409037,1,1,2) [2025-02-05 16:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409037', 'tblTempUsageDetail_20' ) start [2025-02-05 16:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409037', 'tblTempUsageDetail_20' ) end [2025-02-05 16:50:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:50:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:50:33] Production.INFO: ==4673== Releasing lock... [2025-02-05 16:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:50:33] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:51:05 [end_date_ymd] => 2025-02-05 16:51:05 [RateCDR] => 1 ) [2025-02-05 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:51:05' and `end` < '2025-02-05 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:51:25] Production.INFO: count ==5053 [2025-02-05 16:51:27] Production.ERROR: pbx CDR StartTime 2025-02-05 13:51:05 - End Time 2025-02-05 16:51:05 [2025-02-05 16:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409043', 'tblTempUsageDetail_20' ) start [2025-02-05 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409043', 'tblTempUsageDetail_20' ) end [2025-02-05 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409043', 'tblTempVendorCDR_20' ) start [2025-02-05 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409043', 'tblTempVendorCDR_20' ) end [2025-02-05 16:51:27] Production.INFO: ProcessCDR(1,14409043,1,1,2) [2025-02-05 16:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409043', 'tblTempUsageDetail_20' ) start [2025-02-05 16:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409043', 'tblTempUsageDetail_20' ) end [2025-02-05 16:51:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:51:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:51:31] Production.INFO: ==4751== Releasing lock... [2025-02-05 16:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:51:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:52:05 [end_date_ymd] => 2025-02-05 16:52:05 [RateCDR] => 1 ) [2025-02-05 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:52:05' and `end` < '2025-02-05 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:52:20] Production.INFO: count ==5043 [2025-02-05 16:52:22] Production.ERROR: pbx CDR StartTime 2025-02-05 13:52:05 - End Time 2025-02-05 16:52:05 [2025-02-05 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409048', 'tblTempUsageDetail_20' ) start [2025-02-05 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409048', 'tblTempUsageDetail_20' ) end [2025-02-05 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409048', 'tblTempVendorCDR_20' ) start [2025-02-05 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409048', 'tblTempVendorCDR_20' ) end [2025-02-05 16:52:22] Production.INFO: ProcessCDR(1,14409048,1,1,2) [2025-02-05 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409048', 'tblTempUsageDetail_20' ) start [2025-02-05 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409048', 'tblTempUsageDetail_20' ) end [2025-02-05 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:52:26] Production.INFO: ==4840== Releasing lock... [2025-02-05 16:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:52:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:53:05 [end_date_ymd] => 2025-02-05 16:53:05 [RateCDR] => 1 ) [2025-02-05 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:53:05' and `end` < '2025-02-05 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:53:25] Production.INFO: count ==5038 [2025-02-05 16:53:27] Production.ERROR: pbx CDR StartTime 2025-02-05 13:53:05 - End Time 2025-02-05 16:53:05 [2025-02-05 16:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409053', 'tblTempUsageDetail_20' ) start [2025-02-05 16:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409053', 'tblTempUsageDetail_20' ) end [2025-02-05 16:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409053', 'tblTempVendorCDR_20' ) start [2025-02-05 16:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409053', 'tblTempVendorCDR_20' ) end [2025-02-05 16:53:27] Production.INFO: ProcessCDR(1,14409053,1,1,2) [2025-02-05 16:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409053', 'tblTempUsageDetail_20' ) start [2025-02-05 16:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409053', 'tblTempUsageDetail_20' ) end [2025-02-05 16:53:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:53:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:53:32] Production.INFO: ==4923== Releasing lock... [2025-02-05 16:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:53:32] Production.INFO: 65.75 MB #Memory Used# [2025-02-05 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:54:05 [end_date_ymd] => 2025-02-05 16:54:05 [RateCDR] => 1 ) [2025-02-05 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:54:05' and `end` < '2025-02-05 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:54:27] Production.INFO: count ==5011 [2025-02-05 16:54:29] Production.ERROR: pbx CDR StartTime 2025-02-05 13:54:05 - End Time 2025-02-05 16:54:05 [2025-02-05 16:54:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409058', 'tblTempUsageDetail_20' ) start [2025-02-05 16:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409058', 'tblTempUsageDetail_20' ) end [2025-02-05 16:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409058', 'tblTempVendorCDR_20' ) start [2025-02-05 16:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409058', 'tblTempVendorCDR_20' ) end [2025-02-05 16:54:29] Production.INFO: ProcessCDR(1,14409058,1,1,2) [2025-02-05 16:54:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:54:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409058', 'tblTempUsageDetail_20' ) start [2025-02-05 16:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409058', 'tblTempUsageDetail_20' ) end [2025-02-05 16:54:34] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:54:34] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:54:34] Production.INFO: ==5010== Releasing lock... [2025-02-05 16:54:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:54:34] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:55:06 [end_date_ymd] => 2025-02-05 16:55:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 13:55:06' and `end` < '2025-02-05 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-02-05 16:55:32] Production.INFO: count ==5008 [2025-02-05 16:55:34] Production.ERROR: pbx CDR StartTime 2025-02-05 13:55:06 - End Time 2025-02-05 16:55:06 [2025-02-05 16:55:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409063', 'tblTempUsageDetail_20' ) start [2025-02-05 16:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409063', 'tblTempUsageDetail_20' ) end [2025-02-05 16:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409063', 'tblTempVendorCDR_20' ) start [2025-02-05 16:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409063', 'tblTempVendorCDR_20' ) end [2025-02-05 16:55:34] Production.INFO: ProcessCDR(1,14409063,1,1,2) [2025-02-05 16:55:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:55:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:55:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:55:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409063', 'tblTempUsageDetail_20' ) start [2025-02-05 16:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409063', 'tblTempUsageDetail_20' ) end [2025-02-05 16:55:39] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:55:39] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:55:39] Production.INFO: ==5089== Releasing lock... [2025-02-05 16:55:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:55:39] Production.INFO: 65.5 MB #Memory Used# [2025-02-05 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:56:05 [end_date_ymd] => 2025-02-05 16:56:05 [RateCDR] => 1 ) [2025-02-05 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:56:05' and `end` < '2025-02-05 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:56:22] Production.INFO: count ==4990 [2025-02-05 16:56:24] Production.ERROR: pbx CDR StartTime 2025-02-05 13:56:05 - End Time 2025-02-05 16:56:05 [2025-02-05 16:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409068', 'tblTempUsageDetail_20' ) start [2025-02-05 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409068', 'tblTempUsageDetail_20' ) end [2025-02-05 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409068', 'tblTempVendorCDR_20' ) start [2025-02-05 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409068', 'tblTempVendorCDR_20' ) end [2025-02-05 16:56:24] Production.INFO: ProcessCDR(1,14409068,1,1,2) [2025-02-05 16:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409068', 'tblTempUsageDetail_20' ) start [2025-02-05 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409068', 'tblTempUsageDetail_20' ) end [2025-02-05 16:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:56:28] Production.INFO: ==5173== Releasing lock... [2025-02-05 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:56:28] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:57:06 [end_date_ymd] => 2025-02-05 16:57:06 [RateCDR] => 1 ) [2025-02-05 16:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:57:06' and `end` < '2025-02-05 16:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:57:24] Production.INFO: count ==4981 [2025-02-05 16:57:26] Production.ERROR: pbx CDR StartTime 2025-02-05 13:57:06 - End Time 2025-02-05 16:57:06 [2025-02-05 16:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409073', 'tblTempUsageDetail_20' ) start [2025-02-05 16:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409073', 'tblTempUsageDetail_20' ) end [2025-02-05 16:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409073', 'tblTempVendorCDR_20' ) start [2025-02-05 16:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409073', 'tblTempVendorCDR_20' ) end [2025-02-05 16:57:26] Production.INFO: ProcessCDR(1,14409073,1,1,2) [2025-02-05 16:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409073', 'tblTempUsageDetail_20' ) start [2025-02-05 16:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409073', 'tblTempUsageDetail_20' ) end [2025-02-05 16:57:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:57:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:57:29] Production.INFO: ==5246== Releasing lock... [2025-02-05 16:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:57:29] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:58:05 [end_date_ymd] => 2025-02-05 16:58:05 [RateCDR] => 1 ) [2025-02-05 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 13:58:05' and `end` < '2025-02-05 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 16:58:26] Production.INFO: count ==4980 [2025-02-05 16:58:27] Production.ERROR: pbx CDR StartTime 2025-02-05 13:58:05 - End Time 2025-02-05 16:58:05 [2025-02-05 16:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409078', 'tblTempUsageDetail_20' ) start [2025-02-05 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409078', 'tblTempUsageDetail_20' ) end [2025-02-05 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409078', 'tblTempVendorCDR_20' ) start [2025-02-05 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409078', 'tblTempVendorCDR_20' ) end [2025-02-05 16:58:28] Production.INFO: ProcessCDR(1,14409078,1,1,2) [2025-02-05 16:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409078', 'tblTempUsageDetail_20' ) start [2025-02-05 16:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409078', 'tblTempUsageDetail_20' ) end [2025-02-05 16:58:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:58:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:58:32] Production.INFO: ==5322== Releasing lock... [2025-02-05 16:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:58:32] Production.INFO: 65.25 MB #Memory Used# [2025-02-05 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 13:59:05 [end_date_ymd] => 2025-02-05 16:59:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 13:59:05' and `end` < '2025-02-05 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-02-05 16:59:23] Production.INFO: count ==4953 [2025-02-05 16:59:25] Production.ERROR: pbx CDR StartTime 2025-02-05 13:59:05 - End Time 2025-02-05 16:59:05 [2025-02-05 16:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409083', 'tblTempUsageDetail_20' ) start [2025-02-05 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409083', 'tblTempUsageDetail_20' ) end [2025-02-05 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409083', 'tblTempVendorCDR_20' ) start [2025-02-05 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409083', 'tblTempVendorCDR_20' ) end [2025-02-05 16:59:25] Production.INFO: ProcessCDR(1,14409083,1,1,2) [2025-02-05 16:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 16:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409083', 'tblTempUsageDetail_20' ) start [2025-02-05 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409083', 'tblTempUsageDetail_20' ) end [2025-02-05 16:59:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 16:59:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 16:59:28] Production.INFO: ==5440== Releasing lock... [2025-02-05 16:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 16:59:28] Production.INFO: 65 MB #Memory Used# [2025-02-05 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:00:06 [end_date_ymd] => 2025-02-05 17:00:06 [RateCDR] => 1 ) [2025-02-05 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:00:06' and `end` < '2025-02-05 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:00:28] Production.INFO: count ==4934 [2025-02-05 17:00:30] Production.ERROR: pbx CDR StartTime 2025-02-05 14:00:06 - End Time 2025-02-05 17:00:06 [2025-02-05 17:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409089', 'tblTempUsageDetail_20' ) start [2025-02-05 17:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409089', 'tblTempUsageDetail_20' ) end [2025-02-05 17:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409089', 'tblTempVendorCDR_20' ) start [2025-02-05 17:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409089', 'tblTempVendorCDR_20' ) end [2025-02-05 17:00:30] Production.INFO: ProcessCDR(1,14409089,1,1,2) [2025-02-05 17:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409089', 'tblTempUsageDetail_20' ) start [2025-02-05 17:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409089', 'tblTempUsageDetail_20' ) end [2025-02-05 17:00:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:00:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:00:35] Production.INFO: ==5516== Releasing lock... [2025-02-05 17:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:00:35] Production.INFO: 65 MB #Memory Used# [2025-02-05 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:01:05 [end_date_ymd] => 2025-02-05 17:01:05 [RateCDR] => 1 ) [2025-02-05 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:01:05' and `end` < '2025-02-05 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:01:28] Production.INFO: count ==4943 [2025-02-05 17:01:30] Production.ERROR: pbx CDR StartTime 2025-02-05 14:01:05 - End Time 2025-02-05 17:01:05 [2025-02-05 17:01:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409094', 'tblTempUsageDetail_20' ) start [2025-02-05 17:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409094', 'tblTempUsageDetail_20' ) end [2025-02-05 17:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409094', 'tblTempVendorCDR_20' ) start [2025-02-05 17:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409094', 'tblTempVendorCDR_20' ) end [2025-02-05 17:01:30] Production.INFO: ProcessCDR(1,14409094,1,1,2) [2025-02-05 17:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:01:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409094', 'tblTempUsageDetail_20' ) start [2025-02-05 17:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409094', 'tblTempUsageDetail_20' ) end [2025-02-05 17:01:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:01:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:01:35] Production.INFO: ==5609== Releasing lock... [2025-02-05 17:01:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:01:35] Production.INFO: 65 MB #Memory Used# [2025-02-05 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:02:06 [end_date_ymd] => 2025-02-05 17:02:06 [RateCDR] => 1 ) [2025-02-05 17:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:02:06' and `end` < '2025-02-05 17:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:02:28] Production.INFO: count ==4946 [2025-02-05 17:02:30] Production.ERROR: pbx CDR StartTime 2025-02-05 14:02:06 - End Time 2025-02-05 17:02:06 [2025-02-05 17:02:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409099', 'tblTempUsageDetail_20' ) start [2025-02-05 17:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409099', 'tblTempUsageDetail_20' ) end [2025-02-05 17:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409099', 'tblTempVendorCDR_20' ) start [2025-02-05 17:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409099', 'tblTempVendorCDR_20' ) end [2025-02-05 17:02:30] Production.INFO: ProcessCDR(1,14409099,1,1,2) [2025-02-05 17:02:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:02:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:02:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:02:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409099', 'tblTempUsageDetail_20' ) start [2025-02-05 17:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409099', 'tblTempUsageDetail_20' ) end [2025-02-05 17:02:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:02:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:02:35] Production.INFO: ==5684== Releasing lock... [2025-02-05 17:02:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:02:35] Production.INFO: 65 MB #Memory Used# [2025-02-05 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:03:06 [end_date_ymd] => 2025-02-05 17:03:06 [RateCDR] => 1 ) [2025-02-05 17:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:03:06' and `end` < '2025-02-05 17:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:03:23] Production.INFO: count ==4946 [2025-02-05 17:03:25] Production.ERROR: pbx CDR StartTime 2025-02-05 14:03:06 - End Time 2025-02-05 17:03:06 [2025-02-05 17:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409104', 'tblTempUsageDetail_20' ) start [2025-02-05 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409104', 'tblTempUsageDetail_20' ) end [2025-02-05 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409104', 'tblTempVendorCDR_20' ) start [2025-02-05 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409104', 'tblTempVendorCDR_20' ) end [2025-02-05 17:03:25] Production.INFO: ProcessCDR(1,14409104,1,1,2) [2025-02-05 17:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409104', 'tblTempUsageDetail_20' ) start [2025-02-05 17:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409104', 'tblTempUsageDetail_20' ) end [2025-02-05 17:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:03:30] Production.INFO: ==5760== Releasing lock... [2025-02-05 17:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:03:30] Production.INFO: 65 MB #Memory Used# [2025-02-05 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:04:05 [end_date_ymd] => 2025-02-05 17:04:05 [RateCDR] => 1 ) [2025-02-05 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:04:05' and `end` < '2025-02-05 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:04:24] Production.INFO: count ==4942 [2025-02-05 17:04:26] Production.ERROR: pbx CDR StartTime 2025-02-05 14:04:05 - End Time 2025-02-05 17:04:05 [2025-02-05 17:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409109', 'tblTempUsageDetail_20' ) start [2025-02-05 17:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409109', 'tblTempUsageDetail_20' ) end [2025-02-05 17:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409109', 'tblTempVendorCDR_20' ) start [2025-02-05 17:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409109', 'tblTempVendorCDR_20' ) end [2025-02-05 17:04:26] Production.INFO: ProcessCDR(1,14409109,1,1,2) [2025-02-05 17:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409109', 'tblTempUsageDetail_20' ) start [2025-02-05 17:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409109', 'tblTempUsageDetail_20' ) end [2025-02-05 17:04:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:04:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:04:31] Production.INFO: ==5835== Releasing lock... [2025-02-05 17:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:04:31] Production.INFO: 65 MB #Memory Used# [2025-02-05 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:05:05 [end_date_ymd] => 2025-02-05 17:05:05 [RateCDR] => 1 ) [2025-02-05 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:05:05' and `end` < '2025-02-05 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:05:29] Production.INFO: count ==4944 [2025-02-05 17:05:31] Production.ERROR: pbx CDR StartTime 2025-02-05 14:05:05 - End Time 2025-02-05 17:05:05 [2025-02-05 17:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409114', 'tblTempUsageDetail_20' ) start [2025-02-05 17:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409114', 'tblTempUsageDetail_20' ) end [2025-02-05 17:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409114', 'tblTempVendorCDR_20' ) start [2025-02-05 17:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409114', 'tblTempVendorCDR_20' ) end [2025-02-05 17:05:31] Production.INFO: ProcessCDR(1,14409114,1,1,2) [2025-02-05 17:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409114', 'tblTempUsageDetail_20' ) start [2025-02-05 17:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409114', 'tblTempUsageDetail_20' ) end [2025-02-05 17:05:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:05:36] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:05:36] Production.INFO: ==5911== Releasing lock... [2025-02-05 17:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:05:36] Production.INFO: 65 MB #Memory Used# [2025-02-05 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:06:06 [end_date_ymd] => 2025-02-05 17:06:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 14:06:06' and `end` < '2025-02-05 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-02-05 17:06:29] Production.INFO: count ==4944 [2025-02-05 17:06:31] Production.ERROR: pbx CDR StartTime 2025-02-05 14:06:06 - End Time 2025-02-05 17:06:06 [2025-02-05 17:06:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409119', 'tblTempUsageDetail_20' ) start [2025-02-05 17:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409119', 'tblTempUsageDetail_20' ) end [2025-02-05 17:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409119', 'tblTempVendorCDR_20' ) start [2025-02-05 17:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409119', 'tblTempVendorCDR_20' ) end [2025-02-05 17:06:31] Production.INFO: ProcessCDR(1,14409119,1,1,2) [2025-02-05 17:06:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:06:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:06:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409119', 'tblTempUsageDetail_20' ) start [2025-02-05 17:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409119', 'tblTempUsageDetail_20' ) end [2025-02-05 17:06:35] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:06:35] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:06:35] Production.INFO: ==5992== Releasing lock... [2025-02-05 17:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:06:35] Production.INFO: 65 MB #Memory Used# [2025-02-05 17:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:07:04 [end_date_ymd] => 2025-02-05 17:07:04 [RateCDR] => 1 ) [2025-02-05 17:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:07:04' and `end` < '2025-02-05 17:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:07:23] Production.INFO: count ==4908 [2025-02-05 17:07:25] Production.ERROR: pbx CDR StartTime 2025-02-05 14:07:04 - End Time 2025-02-05 17:07:04 [2025-02-05 17:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409124', 'tblTempUsageDetail_20' ) start [2025-02-05 17:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409124', 'tblTempUsageDetail_20' ) end [2025-02-05 17:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409124', 'tblTempVendorCDR_20' ) start [2025-02-05 17:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409124', 'tblTempVendorCDR_20' ) end [2025-02-05 17:07:25] Production.INFO: ProcessCDR(1,14409124,1,1,2) [2025-02-05 17:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409124', 'tblTempUsageDetail_20' ) start [2025-02-05 17:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409124', 'tblTempUsageDetail_20' ) end [2025-02-05 17:07:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:07:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:07:30] Production.INFO: ==6066== Releasing lock... [2025-02-05 17:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:07:30] Production.INFO: 64.75 MB #Memory Used# [2025-02-05 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:08:05 [end_date_ymd] => 2025-02-05 17:08:05 [RateCDR] => 1 ) [2025-02-05 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:08:05' and `end` < '2025-02-05 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:08:22] Production.INFO: count ==4883 [2025-02-05 17:08:24] Production.ERROR: pbx CDR StartTime 2025-02-05 14:08:05 - End Time 2025-02-05 17:08:05 [2025-02-05 17:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409129', 'tblTempUsageDetail_20' ) start [2025-02-05 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409129', 'tblTempUsageDetail_20' ) end [2025-02-05 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409129', 'tblTempVendorCDR_20' ) start [2025-02-05 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409129', 'tblTempVendorCDR_20' ) end [2025-02-05 17:08:24] Production.INFO: ProcessCDR(1,14409129,1,1,2) [2025-02-05 17:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409129', 'tblTempUsageDetail_20' ) start [2025-02-05 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409129', 'tblTempUsageDetail_20' ) end [2025-02-05 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:08:27] Production.INFO: ==6146== Releasing lock... [2025-02-05 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:08:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:09:05 [end_date_ymd] => 2025-02-05 17:09:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 14:09:05' and `end` < '2025-02-05 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-02-05 17:09:20] Production.INFO: count ==4879 [2025-02-05 17:09:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:09:05 - End Time 2025-02-05 17:09:05 [2025-02-05 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409134', 'tblTempUsageDetail_20' ) start [2025-02-05 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409134', 'tblTempUsageDetail_20' ) end [2025-02-05 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409134', 'tblTempVendorCDR_20' ) start [2025-02-05 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409134', 'tblTempVendorCDR_20' ) end [2025-02-05 17:09:22] Production.INFO: ProcessCDR(1,14409134,1,1,2) [2025-02-05 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409134', 'tblTempUsageDetail_20' ) start [2025-02-05 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409134', 'tblTempUsageDetail_20' ) end [2025-02-05 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:09:26] Production.INFO: ==6221== Releasing lock... [2025-02-05 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:09:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:10:06 [end_date_ymd] => 2025-02-05 17:10:06 [RateCDR] => 1 ) [2025-02-05 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:10:06' and `end` < '2025-02-05 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:10:24] Production.INFO: count ==4883 [2025-02-05 17:10:26] Production.ERROR: pbx CDR StartTime 2025-02-05 14:10:06 - End Time 2025-02-05 17:10:06 [2025-02-05 17:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409140', 'tblTempUsageDetail_20' ) start [2025-02-05 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409140', 'tblTempUsageDetail_20' ) end [2025-02-05 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409140', 'tblTempVendorCDR_20' ) start [2025-02-05 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409140', 'tblTempVendorCDR_20' ) end [2025-02-05 17:10:26] Production.INFO: ProcessCDR(1,14409140,1,1,2) [2025-02-05 17:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409140', 'tblTempUsageDetail_20' ) start [2025-02-05 17:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409140', 'tblTempUsageDetail_20' ) end [2025-02-05 17:10:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:10:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:10:31] Production.INFO: ==6300== Releasing lock... [2025-02-05 17:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:10:31] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:11:05 [end_date_ymd] => 2025-02-05 17:11:05 [RateCDR] => 1 ) [2025-02-05 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:11:05' and `end` < '2025-02-05 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:11:21] Production.INFO: count ==4837 [2025-02-05 17:11:22] Production.ERROR: pbx CDR StartTime 2025-02-05 14:11:05 - End Time 2025-02-05 17:11:05 [2025-02-05 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409145', 'tblTempUsageDetail_20' ) start [2025-02-05 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409145', 'tblTempUsageDetail_20' ) end [2025-02-05 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409145', 'tblTempVendorCDR_20' ) start [2025-02-05 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409145', 'tblTempVendorCDR_20' ) end [2025-02-05 17:11:23] Production.INFO: ProcessCDR(1,14409145,1,1,2) [2025-02-05 17:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409145', 'tblTempUsageDetail_20' ) start [2025-02-05 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409145', 'tblTempUsageDetail_20' ) end [2025-02-05 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:11:27] Production.INFO: ==6376== Releasing lock... [2025-02-05 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:11:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:12:05 [end_date_ymd] => 2025-02-05 17:12:05 [RateCDR] => 1 ) [2025-02-05 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:12:05' and `end` < '2025-02-05 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:12:20] Production.INFO: count ==4870 [2025-02-05 17:12:22] Production.ERROR: pbx CDR StartTime 2025-02-05 14:12:05 - End Time 2025-02-05 17:12:05 [2025-02-05 17:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409150', 'tblTempUsageDetail_20' ) start [2025-02-05 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409150', 'tblTempUsageDetail_20' ) end [2025-02-05 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409150', 'tblTempVendorCDR_20' ) start [2025-02-05 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409150', 'tblTempVendorCDR_20' ) end [2025-02-05 17:12:22] Production.INFO: ProcessCDR(1,14409150,1,1,2) [2025-02-05 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409150', 'tblTempUsageDetail_20' ) start [2025-02-05 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409150', 'tblTempUsageDetail_20' ) end [2025-02-05 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:12:27] Production.INFO: ==6452== Releasing lock... [2025-02-05 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:12:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:13:05 [end_date_ymd] => 2025-02-05 17:13:05 [RateCDR] => 1 ) [2025-02-05 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:13:05' and `end` < '2025-02-05 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:13:23] Production.INFO: count ==4874 [2025-02-05 17:13:25] Production.ERROR: pbx CDR StartTime 2025-02-05 14:13:05 - End Time 2025-02-05 17:13:05 [2025-02-05 17:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409155', 'tblTempUsageDetail_20' ) start [2025-02-05 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409155', 'tblTempUsageDetail_20' ) end [2025-02-05 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409155', 'tblTempVendorCDR_20' ) start [2025-02-05 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409155', 'tblTempVendorCDR_20' ) end [2025-02-05 17:13:25] Production.INFO: ProcessCDR(1,14409155,1,1,2) [2025-02-05 17:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409155', 'tblTempUsageDetail_20' ) start [2025-02-05 17:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409155', 'tblTempUsageDetail_20' ) end [2025-02-05 17:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:13:30] Production.INFO: ==6528== Releasing lock... [2025-02-05 17:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:13:30] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:14:05 [end_date_ymd] => 2025-02-05 17:14:05 [RateCDR] => 1 ) [2025-02-05 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:14:05' and `end` < '2025-02-05 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:14:25] Production.INFO: count ==4872 [2025-02-05 17:14:27] Production.ERROR: pbx CDR StartTime 2025-02-05 14:14:05 - End Time 2025-02-05 17:14:05 [2025-02-05 17:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409160', 'tblTempUsageDetail_20' ) start [2025-02-05 17:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409160', 'tblTempUsageDetail_20' ) end [2025-02-05 17:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409160', 'tblTempVendorCDR_20' ) start [2025-02-05 17:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409160', 'tblTempVendorCDR_20' ) end [2025-02-05 17:14:27] Production.INFO: ProcessCDR(1,14409160,1,1,2) [2025-02-05 17:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409160', 'tblTempUsageDetail_20' ) start [2025-02-05 17:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409160', 'tblTempUsageDetail_20' ) end [2025-02-05 17:14:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:14:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:14:32] Production.INFO: ==6607== Releasing lock... [2025-02-05 17:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:14:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:15:05 [end_date_ymd] => 2025-02-05 17:15:05 [RateCDR] => 1 ) [2025-02-05 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:15:05' and `end` < '2025-02-05 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:15:24] Production.INFO: count ==4869 [2025-02-05 17:15:26] Production.ERROR: pbx CDR StartTime 2025-02-05 14:15:05 - End Time 2025-02-05 17:15:05 [2025-02-05 17:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409165', 'tblTempUsageDetail_20' ) start [2025-02-05 17:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409165', 'tblTempUsageDetail_20' ) end [2025-02-05 17:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409165', 'tblTempVendorCDR_20' ) start [2025-02-05 17:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409165', 'tblTempVendorCDR_20' ) end [2025-02-05 17:15:26] Production.INFO: ProcessCDR(1,14409165,1,1,2) [2025-02-05 17:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409165', 'tblTempUsageDetail_20' ) start [2025-02-05 17:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409165', 'tblTempUsageDetail_20' ) end [2025-02-05 17:15:31] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:15:31] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:15:31] Production.INFO: ==6729== Releasing lock... [2025-02-05 17:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:15:31] Production.INFO: 64.5 MB #Memory Used# [2025-02-05 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:16:05 [end_date_ymd] => 2025-02-05 17:16:05 [RateCDR] => 1 ) [2025-02-05 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:16:05' and `end` < '2025-02-05 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:16:20] Production.INFO: count ==4852 [2025-02-05 17:16:22] Production.ERROR: pbx CDR StartTime 2025-02-05 14:16:05 - End Time 2025-02-05 17:16:05 [2025-02-05 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409170', 'tblTempUsageDetail_20' ) start [2025-02-05 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409170', 'tblTempUsageDetail_20' ) end [2025-02-05 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409170', 'tblTempVendorCDR_20' ) start [2025-02-05 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409170', 'tblTempVendorCDR_20' ) end [2025-02-05 17:16:22] Production.INFO: ProcessCDR(1,14409170,1,1,2) [2025-02-05 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409170', 'tblTempUsageDetail_20' ) start [2025-02-05 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409170', 'tblTempUsageDetail_20' ) end [2025-02-05 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:16:26] Production.INFO: ==6805== Releasing lock... [2025-02-05 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:16:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:17:06 [end_date_ymd] => 2025-02-05 17:17:06 [RateCDR] => 1 ) [2025-02-05 17:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:17:06' and `end` < '2025-02-05 17:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:17:20] Production.INFO: count ==4829 [2025-02-05 17:17:22] Production.ERROR: pbx CDR StartTime 2025-02-05 14:17:06 - End Time 2025-02-05 17:17:06 [2025-02-05 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409175', 'tblTempUsageDetail_20' ) start [2025-02-05 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409175', 'tblTempUsageDetail_20' ) end [2025-02-05 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409175', 'tblTempVendorCDR_20' ) start [2025-02-05 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409175', 'tblTempVendorCDR_20' ) end [2025-02-05 17:17:22] Production.INFO: ProcessCDR(1,14409175,1,1,2) [2025-02-05 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409175', 'tblTempUsageDetail_20' ) start [2025-02-05 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409175', 'tblTempUsageDetail_20' ) end [2025-02-05 17:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:17:25] Production.INFO: ==6878== Releasing lock... [2025-02-05 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:17:25] Production.INFO: 64.25 MB #Memory Used# [2025-02-05 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:18:05 [end_date_ymd] => 2025-02-05 17:18:05 [RateCDR] => 1 ) [2025-02-05 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:18:05' and `end` < '2025-02-05 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:18:19] Production.INFO: count ==4798 [2025-02-05 17:18:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:18:05 - End Time 2025-02-05 17:18:05 [2025-02-05 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409180', 'tblTempUsageDetail_20' ) start [2025-02-05 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409180', 'tblTempUsageDetail_20' ) end [2025-02-05 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409180', 'tblTempVendorCDR_20' ) start [2025-02-05 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409180', 'tblTempVendorCDR_20' ) end [2025-02-05 17:18:21] Production.INFO: ProcessCDR(1,14409180,1,1,2) [2025-02-05 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409180', 'tblTempUsageDetail_20' ) start [2025-02-05 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409180', 'tblTempUsageDetail_20' ) end [2025-02-05 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:18:26] Production.INFO: ==6951== Releasing lock... [2025-02-05 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:18:26] Production.INFO: 64 MB #Memory Used# [2025-02-05 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:19:05 [end_date_ymd] => 2025-02-05 17:19:05 [RateCDR] => 1 ) [2025-02-05 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:19:05' and `end` < '2025-02-05 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:19:19] Production.INFO: count ==4770 [2025-02-05 17:19:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:19:05 - End Time 2025-02-05 17:19:05 [2025-02-05 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409185', 'tblTempUsageDetail_20' ) start [2025-02-05 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409185', 'tblTempUsageDetail_20' ) end [2025-02-05 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409185', 'tblTempVendorCDR_20' ) start [2025-02-05 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409185', 'tblTempVendorCDR_20' ) end [2025-02-05 17:19:21] Production.INFO: ProcessCDR(1,14409185,1,1,2) [2025-02-05 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409185', 'tblTempUsageDetail_20' ) start [2025-02-05 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409185', 'tblTempUsageDetail_20' ) end [2025-02-05 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:19:26] Production.INFO: ==7027== Releasing lock... [2025-02-05 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:19:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-05 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:20:05 [end_date_ymd] => 2025-02-05 17:20:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 14:20:05' and `end` < '2025-02-05 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-02-05 17:20:22] Production.INFO: count ==4728 [2025-02-05 17:20:24] Production.ERROR: pbx CDR StartTime 2025-02-05 14:20:05 - End Time 2025-02-05 17:20:05 [2025-02-05 17:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409191', 'tblTempUsageDetail_20' ) start [2025-02-05 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409191', 'tblTempUsageDetail_20' ) end [2025-02-05 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409191', 'tblTempVendorCDR_20' ) start [2025-02-05 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409191', 'tblTempVendorCDR_20' ) end [2025-02-05 17:20:24] Production.INFO: ProcessCDR(1,14409191,1,1,2) [2025-02-05 17:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409191', 'tblTempUsageDetail_20' ) start [2025-02-05 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409191', 'tblTempUsageDetail_20' ) end [2025-02-05 17:20:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:20:29] Production.INFO: ==7108== Releasing lock... [2025-02-05 17:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:20:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-05 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:21:05 [end_date_ymd] => 2025-02-05 17:21:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 14:21:05' and `end` < '2025-02-05 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-02-05 17:21:19] Production.INFO: count ==4694 [2025-02-05 17:21:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:21:05 - End Time 2025-02-05 17:21:05 [2025-02-05 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409196', 'tblTempUsageDetail_20' ) start [2025-02-05 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409196', 'tblTempUsageDetail_20' ) end [2025-02-05 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409196', 'tblTempVendorCDR_20' ) start [2025-02-05 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409196', 'tblTempVendorCDR_20' ) end [2025-02-05 17:21:21] Production.INFO: ProcessCDR(1,14409196,1,1,2) [2025-02-05 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409196', 'tblTempUsageDetail_20' ) start [2025-02-05 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409196', 'tblTempUsageDetail_20' ) end [2025-02-05 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:21:26] Production.INFO: ==7184== Releasing lock... [2025-02-05 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:21:26] Production.INFO: 63 MB #Memory Used# [2025-02-05 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:22:05 [end_date_ymd] => 2025-02-05 17:22:05 [RateCDR] => 1 ) [2025-02-05 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:22:05' and `end` < '2025-02-05 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:22:22] Production.INFO: count ==4673 [2025-02-05 17:22:24] Production.ERROR: pbx CDR StartTime 2025-02-05 14:22:05 - End Time 2025-02-05 17:22:05 [2025-02-05 17:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409201', 'tblTempUsageDetail_20' ) start [2025-02-05 17:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409201', 'tblTempUsageDetail_20' ) end [2025-02-05 17:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409201', 'tblTempVendorCDR_20' ) start [2025-02-05 17:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409201', 'tblTempVendorCDR_20' ) end [2025-02-05 17:22:24] Production.INFO: ProcessCDR(1,14409201,1,1,2) [2025-02-05 17:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409201', 'tblTempUsageDetail_20' ) start [2025-02-05 17:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409201', 'tblTempUsageDetail_20' ) end [2025-02-05 17:22:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:22:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:22:28] Production.INFO: ==7256== Releasing lock... [2025-02-05 17:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:22:28] Production.INFO: 63 MB #Memory Used# [2025-02-05 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:23:05 [end_date_ymd] => 2025-02-05 17:23:05 [RateCDR] => 1 ) [2025-02-05 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:23:05' and `end` < '2025-02-05 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:23:19] Production.INFO: count ==4664 [2025-02-05 17:23:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:23:05 - End Time 2025-02-05 17:23:05 [2025-02-05 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409206', 'tblTempUsageDetail_20' ) start [2025-02-05 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409206', 'tblTempUsageDetail_20' ) end [2025-02-05 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409206', 'tblTempVendorCDR_20' ) start [2025-02-05 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409206', 'tblTempVendorCDR_20' ) end [2025-02-05 17:23:21] Production.INFO: ProcessCDR(1,14409206,1,1,2) [2025-02-05 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409206', 'tblTempUsageDetail_20' ) start [2025-02-05 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409206', 'tblTempUsageDetail_20' ) end [2025-02-05 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:23:26] Production.INFO: ==7333== Releasing lock... [2025-02-05 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:23:26] Production.INFO: 63 MB #Memory Used# [2025-02-05 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:24:06 [end_date_ymd] => 2025-02-05 17:24:06 [RateCDR] => 1 ) [2025-02-05 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:24:06' and `end` < '2025-02-05 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:24:20] Production.INFO: count ==4651 [2025-02-05 17:24:22] Production.ERROR: pbx CDR StartTime 2025-02-05 14:24:06 - End Time 2025-02-05 17:24:06 [2025-02-05 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409211', 'tblTempUsageDetail_20' ) start [2025-02-05 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409211', 'tblTempUsageDetail_20' ) end [2025-02-05 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409211', 'tblTempVendorCDR_20' ) start [2025-02-05 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409211', 'tblTempVendorCDR_20' ) end [2025-02-05 17:24:22] Production.INFO: ProcessCDR(1,14409211,1,1,2) [2025-02-05 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409211', 'tblTempUsageDetail_20' ) start [2025-02-05 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409211', 'tblTempUsageDetail_20' ) end [2025-02-05 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:24:27] Production.INFO: ==7405== Releasing lock... [2025-02-05 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:24:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-05 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:25:05 [end_date_ymd] => 2025-02-05 17:25:05 [RateCDR] => 1 ) [2025-02-05 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:25:05' and `end` < '2025-02-05 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:25:19] Production.INFO: count ==4657 [2025-02-05 17:25:58] Production.ERROR: pbx CDR StartTime 2025-02-05 14:25:05 - End Time 2025-02-05 17:25:05 [2025-02-05 17:25:58] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:25:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409216', 'tblTempUsageDetail_20' ) start [2025-02-05 17:25:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409216', 'tblTempUsageDetail_20' ) end [2025-02-05 17:25:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409216', 'tblTempVendorCDR_20' ) start [2025-02-05 17:25:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409216', 'tblTempVendorCDR_20' ) end [2025-02-05 17:25:58] Production.INFO: ProcessCDR(1,14409216,1,1,2) [2025-02-05 17:25:58] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:26:05] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:26:05] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:26:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409216', 'tblTempUsageDetail_20' ) start [2025-02-05 17:26:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409216', 'tblTempUsageDetail_20' ) end [2025-02-05 17:26:48] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:26:48] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:26:53] Production.INFO: ==7478== Releasing lock... [2025-02-05 17:26:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:26:53] Production.INFO: 62.75 MB #Memory Used# [2025-02-05 17:27:25] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:27:25 [end_date_ymd] => 2025-02-05 17:27:25 [RateCDR] => 1 ) [2025-02-05 17:27: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-02-05 14:27:25' and `end` < '2025-02-05 17:27:25' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:27:39] Production.INFO: count ==4635 [2025-02-05 17:28:20] Production.ERROR: pbx CDR StartTime 2025-02-05 14:27:25 - End Time 2025-02-05 17:27:25 [2025-02-05 17:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409224', 'tblTempUsageDetail_20' ) start [2025-02-05 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409224', 'tblTempUsageDetail_20' ) end [2025-02-05 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409224', 'tblTempVendorCDR_20' ) start [2025-02-05 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409224', 'tblTempVendorCDR_20' ) end [2025-02-05 17:28:20] Production.INFO: ProcessCDR(1,14409224,1,1,2) [2025-02-05 17:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:28:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:28:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409224', 'tblTempUsageDetail_20' ) start [2025-02-05 17:28:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409224', 'tblTempUsageDetail_20' ) end [2025-02-05 17:28:48] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:28:48] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:28:50] Production.INFO: ==7624== Releasing lock... [2025-02-05 17:28:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:28:50] Production.INFO: 62.75 MB #Memory Used# [2025-02-05 17:29:15] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:29:15 [end_date_ymd] => 2025-02-05 17:29:15 [RateCDR] => 1 ) [2025-02-05 17:29:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:29:15' and `end` < '2025-02-05 17:29:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:29:30] Production.INFO: count ==4623 [2025-02-05 17:30:06] Production.ERROR: pbx CDR StartTime 2025-02-05 14:29:15 - End Time 2025-02-05 17:29:15 [2025-02-05 17:30:06] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:30:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409232', 'tblTempUsageDetail_20' ) start [2025-02-05 17:30:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409232', 'tblTempUsageDetail_20' ) end [2025-02-05 17:30:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409232', 'tblTempVendorCDR_20' ) start [2025-02-05 17:30:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409232', 'tblTempVendorCDR_20' ) end [2025-02-05 17:30:12] Production.INFO: ProcessCDR(1,14409232,1,1,2) [2025-02-05 17:30:12] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:30:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409232', 'tblTempUsageDetail_20' ) start [2025-02-05 17:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409232', 'tblTempUsageDetail_20' ) end [2025-02-05 17:30:39] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:30:39] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:30:39] Production.INFO: ==7752== Releasing lock... [2025-02-05 17:30:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:30:39] Production.INFO: 62.5 MB #Memory Used# [2025-02-05 17:31:19] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:31:17 [end_date_ymd] => 2025-02-05 17:31:17 [RateCDR] => 1 ) [2025-02-05 17:31:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:31:17' and `end` < '2025-02-05 17:31:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:31:33] Production.INFO: count ==4598 [2025-02-05 17:31:35] Production.ERROR: pbx CDR StartTime 2025-02-05 14:31:17 - End Time 2025-02-05 17:31:17 [2025-02-05 17:31:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409241', 'tblTempUsageDetail_20' ) start [2025-02-05 17:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409241', 'tblTempUsageDetail_20' ) end [2025-02-05 17:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409241', 'tblTempVendorCDR_20' ) start [2025-02-05 17:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409241', 'tblTempVendorCDR_20' ) end [2025-02-05 17:31:35] Production.INFO: ProcessCDR(1,14409241,1,1,2) [2025-02-05 17:31:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:31:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:31:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:31:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:31:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409241', 'tblTempUsageDetail_20' ) start [2025-02-05 17:31:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409241', 'tblTempUsageDetail_20' ) end [2025-02-05 17:31:40] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:31:40] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:31:40] Production.INFO: ==7936== Releasing lock... [2025-02-05 17:31:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:31:40] Production.INFO: 62.5 MB #Memory Used# [2025-02-05 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:32:06 [end_date_ymd] => 2025-02-05 17:32:06 [RateCDR] => 1 ) [2025-02-05 17:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:32:06' and `end` < '2025-02-05 17:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:32:20] Production.INFO: count ==4562 [2025-02-05 17:32:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:32:06 - End Time 2025-02-05 17:32:06 [2025-02-05 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409246', 'tblTempUsageDetail_20' ) start [2025-02-05 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409246', 'tblTempUsageDetail_20' ) end [2025-02-05 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409246', 'tblTempVendorCDR_20' ) start [2025-02-05 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409246', 'tblTempVendorCDR_20' ) end [2025-02-05 17:32:22] Production.INFO: ProcessCDR(1,14409246,1,1,2) [2025-02-05 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409246', 'tblTempUsageDetail_20' ) start [2025-02-05 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409246', 'tblTempUsageDetail_20' ) end [2025-02-05 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:32:25] Production.INFO: ==8018== Releasing lock... [2025-02-05 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:32:25] Production.INFO: 62 MB #Memory Used# [2025-02-05 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:33:05 [end_date_ymd] => 2025-02-05 17:33:05 [RateCDR] => 1 ) [2025-02-05 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:33:05' and `end` < '2025-02-05 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:33:19] Production.INFO: count ==4518 [2025-02-05 17:33:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:33:05 - End Time 2025-02-05 17:33:05 [2025-02-05 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409251', 'tblTempUsageDetail_20' ) start [2025-02-05 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409251', 'tblTempUsageDetail_20' ) end [2025-02-05 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409251', 'tblTempVendorCDR_20' ) start [2025-02-05 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409251', 'tblTempVendorCDR_20' ) end [2025-02-05 17:33:21] Production.INFO: ProcessCDR(1,14409251,1,1,2) [2025-02-05 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409251', 'tblTempUsageDetail_20' ) start [2025-02-05 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409251', 'tblTempUsageDetail_20' ) end [2025-02-05 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:33:26] Production.INFO: ==8092== Releasing lock... [2025-02-05 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:33:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-05 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:34:05 [end_date_ymd] => 2025-02-05 17:34:05 [RateCDR] => 1 ) [2025-02-05 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:34:05' and `end` < '2025-02-05 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:34:19] Production.INFO: count ==4505 [2025-02-05 17:34:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:34:05 - End Time 2025-02-05 17:34:05 [2025-02-05 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409256', 'tblTempUsageDetail_20' ) start [2025-02-05 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409256', 'tblTempUsageDetail_20' ) end [2025-02-05 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409256', 'tblTempVendorCDR_20' ) start [2025-02-05 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409256', 'tblTempVendorCDR_20' ) end [2025-02-05 17:34:21] Production.INFO: ProcessCDR(1,14409256,1,1,2) [2025-02-05 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409256', 'tblTempUsageDetail_20' ) start [2025-02-05 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409256', 'tblTempUsageDetail_20' ) end [2025-02-05 17:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:34:25] Production.INFO: ==8171== Releasing lock... [2025-02-05 17:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:34:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-05 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:35:05 [end_date_ymd] => 2025-02-05 17:35:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 14:35:05' and `end` < '2025-02-05 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-02-05 17:35:19] Production.INFO: count ==4489 [2025-02-05 17:35:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:35:05 - End Time 2025-02-05 17:35:05 [2025-02-05 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409261', 'tblTempUsageDetail_20' ) start [2025-02-05 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409261', 'tblTempUsageDetail_20' ) end [2025-02-05 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409261', 'tblTempVendorCDR_20' ) start [2025-02-05 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409261', 'tblTempVendorCDR_20' ) end [2025-02-05 17:35:21] Production.INFO: ProcessCDR(1,14409261,1,1,2) [2025-02-05 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409261', 'tblTempUsageDetail_20' ) start [2025-02-05 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409261', 'tblTempUsageDetail_20' ) end [2025-02-05 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:35:25] Production.INFO: ==8254== Releasing lock... [2025-02-05 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:35:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-05 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:36:05 [end_date_ymd] => 2025-02-05 17:36:05 [RateCDR] => 1 ) [2025-02-05 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:36:05' and `end` < '2025-02-05 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:36:18] Production.INFO: count ==4457 [2025-02-05 17:36:20] Production.ERROR: pbx CDR StartTime 2025-02-05 14:36:05 - End Time 2025-02-05 17:36:05 [2025-02-05 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409266', 'tblTempUsageDetail_20' ) start [2025-02-05 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409266', 'tblTempUsageDetail_20' ) end [2025-02-05 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409266', 'tblTempVendorCDR_20' ) start [2025-02-05 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409266', 'tblTempVendorCDR_20' ) end [2025-02-05 17:36:20] Production.INFO: ProcessCDR(1,14409266,1,1,2) [2025-02-05 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409266', 'tblTempUsageDetail_20' ) start [2025-02-05 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409266', 'tblTempUsageDetail_20' ) end [2025-02-05 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:36:24] Production.INFO: ==8331== Releasing lock... [2025-02-05 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:36:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-05 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:37:06 [end_date_ymd] => 2025-02-05 17:37:06 [RateCDR] => 1 ) [2025-02-05 17:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:37:06' and `end` < '2025-02-05 17:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:37:21] Production.INFO: count ==4417 [2025-02-05 17:37:22] Production.ERROR: pbx CDR StartTime 2025-02-05 14:37:06 - End Time 2025-02-05 17:37:06 [2025-02-05 17:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409271', 'tblTempUsageDetail_20' ) start [2025-02-05 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409271', 'tblTempUsageDetail_20' ) end [2025-02-05 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409271', 'tblTempVendorCDR_20' ) start [2025-02-05 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409271', 'tblTempVendorCDR_20' ) end [2025-02-05 17:37:22] Production.INFO: ProcessCDR(1,14409271,1,1,2) [2025-02-05 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409271', 'tblTempUsageDetail_20' ) start [2025-02-05 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409271', 'tblTempUsageDetail_20' ) end [2025-02-05 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:37:25] Production.INFO: ==8403== Releasing lock... [2025-02-05 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:37:25] Production.INFO: 61 MB #Memory Used# [2025-02-05 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:38:05 [end_date_ymd] => 2025-02-05 17:38:05 [RateCDR] => 1 ) [2025-02-05 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:38:05' and `end` < '2025-02-05 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:38:19] Production.INFO: count ==4410 [2025-02-05 17:38:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:38:05 - End Time 2025-02-05 17:38:05 [2025-02-05 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409276', 'tblTempUsageDetail_20' ) start [2025-02-05 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409276', 'tblTempUsageDetail_20' ) end [2025-02-05 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409276', 'tblTempVendorCDR_20' ) start [2025-02-05 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409276', 'tblTempVendorCDR_20' ) end [2025-02-05 17:38:21] Production.INFO: ProcessCDR(1,14409276,1,1,2) [2025-02-05 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409276', 'tblTempUsageDetail_20' ) start [2025-02-05 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409276', 'tblTempUsageDetail_20' ) end [2025-02-05 17:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:38:24] Production.INFO: ==8479== Releasing lock... [2025-02-05 17:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:38:24] Production.INFO: 61 MB #Memory Used# [2025-02-05 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:39:05 [end_date_ymd] => 2025-02-05 17:39:05 [RateCDR] => 1 ) [2025-02-05 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:39:05' and `end` < '2025-02-05 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:39:20] Production.INFO: count ==4419 [2025-02-05 17:39:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:39:05 - End Time 2025-02-05 17:39:05 [2025-02-05 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409281', 'tblTempUsageDetail_20' ) start [2025-02-05 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409281', 'tblTempUsageDetail_20' ) end [2025-02-05 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409281', 'tblTempVendorCDR_20' ) start [2025-02-05 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409281', 'tblTempVendorCDR_20' ) end [2025-02-05 17:39:21] Production.INFO: ProcessCDR(1,14409281,1,1,2) [2025-02-05 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409281', 'tblTempUsageDetail_20' ) start [2025-02-05 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409281', 'tblTempUsageDetail_20' ) end [2025-02-05 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:39:25] Production.INFO: ==8551== Releasing lock... [2025-02-05 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:39:25] Production.INFO: 61 MB #Memory Used# [2025-02-05 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:40:05 [end_date_ymd] => 2025-02-05 17:40:05 [RateCDR] => 1 ) [2025-02-05 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:40:05' and `end` < '2025-02-05 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:40:20] Production.INFO: count ==4413 [2025-02-05 17:40:22] Production.ERROR: pbx CDR StartTime 2025-02-05 14:40:05 - End Time 2025-02-05 17:40:05 [2025-02-05 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409287', 'tblTempUsageDetail_20' ) start [2025-02-05 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409287', 'tblTempUsageDetail_20' ) end [2025-02-05 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409287', 'tblTempVendorCDR_20' ) start [2025-02-05 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409287', 'tblTempVendorCDR_20' ) end [2025-02-05 17:40:22] Production.INFO: ProcessCDR(1,14409287,1,1,2) [2025-02-05 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409287', 'tblTempUsageDetail_20' ) start [2025-02-05 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409287', 'tblTempUsageDetail_20' ) end [2025-02-05 17:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:40:25] Production.INFO: ==8625== Releasing lock... [2025-02-05 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:40:25] Production.INFO: 61 MB #Memory Used# [2025-02-05 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:41:05 [end_date_ymd] => 2025-02-05 17:41:05 [RateCDR] => 1 ) [2025-02-05 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:41:05' and `end` < '2025-02-05 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:41:21] Production.INFO: count ==4416 [2025-02-05 17:41:22] Production.ERROR: pbx CDR StartTime 2025-02-05 14:41:05 - End Time 2025-02-05 17:41:05 [2025-02-05 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409292', 'tblTempUsageDetail_20' ) start [2025-02-05 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409292', 'tblTempUsageDetail_20' ) end [2025-02-05 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409292', 'tblTempVendorCDR_20' ) start [2025-02-05 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409292', 'tblTempVendorCDR_20' ) end [2025-02-05 17:41:23] Production.INFO: ProcessCDR(1,14409292,1,1,2) [2025-02-05 17:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409292', 'tblTempUsageDetail_20' ) start [2025-02-05 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409292', 'tblTempUsageDetail_20' ) end [2025-02-05 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:41:27] Production.INFO: ==8699== Releasing lock... [2025-02-05 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:41:27] Production.INFO: 61 MB #Memory Used# [2025-02-05 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:42:05 [end_date_ymd] => 2025-02-05 17:42:05 [RateCDR] => 1 ) [2025-02-05 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:42:05' and `end` < '2025-02-05 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:42:19] Production.INFO: count ==4416 [2025-02-05 17:42:20] Production.ERROR: pbx CDR StartTime 2025-02-05 14:42:05 - End Time 2025-02-05 17:42:05 [2025-02-05 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409297', 'tblTempUsageDetail_20' ) start [2025-02-05 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409297', 'tblTempUsageDetail_20' ) end [2025-02-05 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409297', 'tblTempVendorCDR_20' ) start [2025-02-05 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409297', 'tblTempVendorCDR_20' ) end [2025-02-05 17:42:21] Production.INFO: ProcessCDR(1,14409297,1,1,2) [2025-02-05 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409297', 'tblTempUsageDetail_20' ) start [2025-02-05 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409297', 'tblTempUsageDetail_20' ) end [2025-02-05 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:42:24] Production.INFO: ==8770== Releasing lock... [2025-02-05 17:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:42:24] Production.INFO: 61 MB #Memory Used# [2025-02-05 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:43:05 [end_date_ymd] => 2025-02-05 17:43:05 [RateCDR] => 1 ) [2025-02-05 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:43:05' and `end` < '2025-02-05 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:43:19] Production.INFO: count ==4399 [2025-02-05 17:43:20] Production.ERROR: pbx CDR StartTime 2025-02-05 14:43:05 - End Time 2025-02-05 17:43:05 [2025-02-05 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409302', 'tblTempUsageDetail_20' ) start [2025-02-05 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409302', 'tblTempUsageDetail_20' ) end [2025-02-05 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409302', 'tblTempVendorCDR_20' ) start [2025-02-05 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409302', 'tblTempVendorCDR_20' ) end [2025-02-05 17:43:20] Production.INFO: ProcessCDR(1,14409302,1,1,2) [2025-02-05 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409302', 'tblTempUsageDetail_20' ) start [2025-02-05 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409302', 'tblTempUsageDetail_20' ) end [2025-02-05 17:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:43:24] Production.INFO: ==8842== Releasing lock... [2025-02-05 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:43:24] Production.INFO: 61 MB #Memory Used# [2025-02-05 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:44:05 [end_date_ymd] => 2025-02-05 17:44:05 [RateCDR] => 1 ) [2025-02-05 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:44:05' and `end` < '2025-02-05 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:44:19] Production.INFO: count ==4391 [2025-02-05 17:44:20] Production.ERROR: pbx CDR StartTime 2025-02-05 14:44:05 - End Time 2025-02-05 17:44:05 [2025-02-05 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409306', 'tblTempUsageDetail_20' ) start [2025-02-05 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409306', 'tblTempUsageDetail_20' ) end [2025-02-05 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409306', 'tblTempVendorCDR_20' ) start [2025-02-05 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409306', 'tblTempVendorCDR_20' ) end [2025-02-05 17:44:20] Production.INFO: ProcessCDR(1,14409306,1,1,2) [2025-02-05 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409306', 'tblTempUsageDetail_20' ) start [2025-02-05 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409306', 'tblTempUsageDetail_20' ) end [2025-02-05 17:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:44:23] Production.INFO: ==8917== Releasing lock... [2025-02-05 17:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:44:23] Production.INFO: 60.75 MB #Memory Used# [2025-02-05 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:45:05 [end_date_ymd] => 2025-02-05 17:45:05 [RateCDR] => 1 ) [2025-02-05 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:45:05' and `end` < '2025-02-05 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:45:19] Production.INFO: count ==4390 [2025-02-05 17:45:20] Production.ERROR: pbx CDR StartTime 2025-02-05 14:45:05 - End Time 2025-02-05 17:45:05 [2025-02-05 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409312', 'tblTempUsageDetail_20' ) start [2025-02-05 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409312', 'tblTempUsageDetail_20' ) end [2025-02-05 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409312', 'tblTempVendorCDR_20' ) start [2025-02-05 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409312', 'tblTempVendorCDR_20' ) end [2025-02-05 17:45:20] Production.INFO: ProcessCDR(1,14409312,1,1,2) [2025-02-05 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409312', 'tblTempUsageDetail_20' ) start [2025-02-05 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409312', 'tblTempUsageDetail_20' ) end [2025-02-05 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:45:25] Production.INFO: ==8988== Releasing lock... [2025-02-05 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:45:25] Production.INFO: 60.75 MB #Memory Used# [2025-02-05 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:46:06 [end_date_ymd] => 2025-02-05 17:46:06 [RateCDR] => 1 ) [2025-02-05 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:46:06' and `end` < '2025-02-05 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:46:21] Production.INFO: count ==4388 [2025-02-05 17:46:23] Production.ERROR: pbx CDR StartTime 2025-02-05 14:46:06 - End Time 2025-02-05 17:46:06 [2025-02-05 17:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409317', 'tblTempUsageDetail_20' ) start [2025-02-05 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409317', 'tblTempUsageDetail_20' ) end [2025-02-05 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409317', 'tblTempVendorCDR_20' ) start [2025-02-05 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409317', 'tblTempVendorCDR_20' ) end [2025-02-05 17:46:23] Production.INFO: ProcessCDR(1,14409317,1,1,2) [2025-02-05 17:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409317', 'tblTempUsageDetail_20' ) start [2025-02-05 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409317', 'tblTempUsageDetail_20' ) end [2025-02-05 17:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:46:28] Production.INFO: ==9104== Releasing lock... [2025-02-05 17:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:46:28] Production.INFO: 60.75 MB #Memory Used# [2025-02-05 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:47:05 [end_date_ymd] => 2025-02-05 17:47:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 14:47:05' and `end` < '2025-02-05 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-02-05 17:47:20] Production.INFO: count ==4387 [2025-02-05 17:47:22] Production.ERROR: pbx CDR StartTime 2025-02-05 14:47:05 - End Time 2025-02-05 17:47:05 [2025-02-05 17:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409322', 'tblTempUsageDetail_20' ) start [2025-02-05 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409322', 'tblTempUsageDetail_20' ) end [2025-02-05 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409322', 'tblTempVendorCDR_20' ) start [2025-02-05 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409322', 'tblTempVendorCDR_20' ) end [2025-02-05 17:47:22] Production.INFO: ProcessCDR(1,14409322,1,1,2) [2025-02-05 17:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409322', 'tblTempUsageDetail_20' ) start [2025-02-05 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409322', 'tblTempUsageDetail_20' ) end [2025-02-05 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:47:25] Production.INFO: ==9176== Releasing lock... [2025-02-05 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:47:25] Production.INFO: 60.75 MB #Memory Used# [2025-02-05 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:48:05 [end_date_ymd] => 2025-02-05 17:48:05 [RateCDR] => 1 ) [2025-02-05 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:48:05' and `end` < '2025-02-05 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:48:21] Production.INFO: count ==4360 [2025-02-05 17:48:23] Production.ERROR: pbx CDR StartTime 2025-02-05 14:48:05 - End Time 2025-02-05 17:48:05 [2025-02-05 17:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409327', 'tblTempUsageDetail_20' ) start [2025-02-05 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409327', 'tblTempUsageDetail_20' ) end [2025-02-05 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409327', 'tblTempVendorCDR_20' ) start [2025-02-05 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409327', 'tblTempVendorCDR_20' ) end [2025-02-05 17:48:23] Production.INFO: ProcessCDR(1,14409327,1,1,2) [2025-02-05 17:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409327', 'tblTempUsageDetail_20' ) start [2025-02-05 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409327', 'tblTempUsageDetail_20' ) end [2025-02-05 17:48:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:48:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:48:28] Production.INFO: ==9250== Releasing lock... [2025-02-05 17:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:48:28] Production.INFO: 60.5 MB #Memory Used# [2025-02-05 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:49:06 [end_date_ymd] => 2025-02-05 17:49:06 [RateCDR] => 1 ) [2025-02-05 17:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:49:06' and `end` < '2025-02-05 17:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:49:20] Production.INFO: count ==4328 [2025-02-05 17:49:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:49:06 - End Time 2025-02-05 17:49:06 [2025-02-05 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409332', 'tblTempUsageDetail_20' ) start [2025-02-05 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409332', 'tblTempUsageDetail_20' ) end [2025-02-05 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409332', 'tblTempVendorCDR_20' ) start [2025-02-05 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409332', 'tblTempVendorCDR_20' ) end [2025-02-05 17:49:21] Production.INFO: ProcessCDR(1,14409332,1,1,2) [2025-02-05 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409332', 'tblTempUsageDetail_20' ) start [2025-02-05 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409332', 'tblTempUsageDetail_20' ) end [2025-02-05 17:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:49:25] Production.INFO: ==9326== Releasing lock... [2025-02-05 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:49:25] Production.INFO: 60.25 MB #Memory Used# [2025-02-05 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:50:06 [end_date_ymd] => 2025-02-05 17:50:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 14:50:06' and `end` < '2025-02-05 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-02-05 17:50:21] Production.INFO: count ==4308 [2025-02-05 17:50:22] Production.ERROR: pbx CDR StartTime 2025-02-05 14:50:06 - End Time 2025-02-05 17:50:06 [2025-02-05 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409337', 'tblTempUsageDetail_20' ) start [2025-02-05 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409337', 'tblTempUsageDetail_20' ) end [2025-02-05 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409337', 'tblTempVendorCDR_20' ) start [2025-02-05 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409337', 'tblTempVendorCDR_20' ) end [2025-02-05 17:50:22] Production.INFO: ProcessCDR(1,14409337,1,1,2) [2025-02-05 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409337', 'tblTempUsageDetail_20' ) start [2025-02-05 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409337', 'tblTempUsageDetail_20' ) end [2025-02-05 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:50:25] Production.INFO: ==9401== Releasing lock... [2025-02-05 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:50:25] Production.INFO: 60.25 MB #Memory Used# [2025-02-05 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:51:05 [end_date_ymd] => 2025-02-05 17:51:05 [RateCDR] => 1 ) [2025-02-05 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:51:05' and `end` < '2025-02-05 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:51:19] Production.INFO: count ==4263 [2025-02-05 17:51:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:51:05 - End Time 2025-02-05 17:51:05 [2025-02-05 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409343', 'tblTempUsageDetail_20' ) start [2025-02-05 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409343', 'tblTempUsageDetail_20' ) end [2025-02-05 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409343', 'tblTempVendorCDR_20' ) start [2025-02-05 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409343', 'tblTempVendorCDR_20' ) end [2025-02-05 17:51:21] Production.INFO: ProcessCDR(1,14409343,1,1,2) [2025-02-05 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409343', 'tblTempUsageDetail_20' ) start [2025-02-05 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409343', 'tblTempUsageDetail_20' ) end [2025-02-05 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:51:25] Production.INFO: ==9474== Releasing lock... [2025-02-05 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:51:25] Production.INFO: 60 MB #Memory Used# [2025-02-05 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:52:05 [end_date_ymd] => 2025-02-05 17:52:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 14:52:05' and `end` < '2025-02-05 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-02-05 17:52:19] Production.INFO: count ==4228 [2025-02-05 17:52:21] Production.ERROR: pbx CDR StartTime 2025-02-05 14:52:05 - End Time 2025-02-05 17:52:05 [2025-02-05 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409348', 'tblTempUsageDetail_20' ) start [2025-02-05 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409348', 'tblTempUsageDetail_20' ) end [2025-02-05 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409348', 'tblTempVendorCDR_20' ) start [2025-02-05 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409348', 'tblTempVendorCDR_20' ) end [2025-02-05 17:52:21] Production.INFO: ProcessCDR(1,14409348,1,1,2) [2025-02-05 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409348', 'tblTempUsageDetail_20' ) start [2025-02-05 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409348', 'tblTempUsageDetail_20' ) end [2025-02-05 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:52:24] Production.INFO: ==9546== Releasing lock... [2025-02-05 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:52:24] Production.INFO: 59.5 MB #Memory Used# [2025-02-05 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:53:05 [end_date_ymd] => 2025-02-05 17:53:05 [RateCDR] => 1 ) [2025-02-05 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:53:05' and `end` < '2025-02-05 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:53:19] Production.INFO: count ==4195 [2025-02-05 17:53:20] Production.ERROR: pbx CDR StartTime 2025-02-05 14:53:05 - End Time 2025-02-05 17:53:05 [2025-02-05 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409353', 'tblTempUsageDetail_20' ) start [2025-02-05 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409353', 'tblTempUsageDetail_20' ) end [2025-02-05 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409353', 'tblTempVendorCDR_20' ) start [2025-02-05 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409353', 'tblTempVendorCDR_20' ) end [2025-02-05 17:53:20] Production.INFO: ProcessCDR(1,14409353,1,1,2) [2025-02-05 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409353', 'tblTempUsageDetail_20' ) start [2025-02-05 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409353', 'tblTempUsageDetail_20' ) end [2025-02-05 17:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:53:23] Production.INFO: ==9620== Releasing lock... [2025-02-05 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:53:23] Production.INFO: 59.25 MB #Memory Used# [2025-02-05 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:54:05 [end_date_ymd] => 2025-02-05 17:54:05 [RateCDR] => 1 ) [2025-02-05 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:54:05' and `end` < '2025-02-05 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:54:19] Production.INFO: count ==4151 [2025-02-05 17:54:20] Production.ERROR: pbx CDR StartTime 2025-02-05 14:54:05 - End Time 2025-02-05 17:54:05 [2025-02-05 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409358', 'tblTempUsageDetail_20' ) start [2025-02-05 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409358', 'tblTempUsageDetail_20' ) end [2025-02-05 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409358', 'tblTempVendorCDR_20' ) start [2025-02-05 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409358', 'tblTempVendorCDR_20' ) end [2025-02-05 17:54:21] Production.INFO: ProcessCDR(1,14409358,1,1,2) [2025-02-05 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409358', 'tblTempUsageDetail_20' ) start [2025-02-05 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409358', 'tblTempUsageDetail_20' ) end [2025-02-05 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:54:24] Production.INFO: ==9701== Releasing lock... [2025-02-05 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:54:24] Production.INFO: 59 MB #Memory Used# [2025-02-05 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:55:05 [end_date_ymd] => 2025-02-05 17:55:05 [RateCDR] => 1 ) [2025-02-05 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:55:05' and `end` < '2025-02-05 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:55:18] Production.INFO: count ==4144 [2025-02-05 17:55:20] Production.ERROR: pbx CDR StartTime 2025-02-05 14:55:05 - End Time 2025-02-05 17:55:05 [2025-02-05 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409363', 'tblTempUsageDetail_20' ) start [2025-02-05 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409363', 'tblTempUsageDetail_20' ) end [2025-02-05 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409363', 'tblTempVendorCDR_20' ) start [2025-02-05 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409363', 'tblTempVendorCDR_20' ) end [2025-02-05 17:55:20] Production.INFO: ProcessCDR(1,14409363,1,1,2) [2025-02-05 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409363', 'tblTempUsageDetail_20' ) start [2025-02-05 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409363', 'tblTempUsageDetail_20' ) end [2025-02-05 17:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:55:23] Production.INFO: ==9771== Releasing lock... [2025-02-05 17:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:55:23] Production.INFO: 59 MB #Memory Used# [2025-02-05 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:56:05 [end_date_ymd] => 2025-02-05 17:56:05 [RateCDR] => 1 ) [2025-02-05 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:56:05' and `end` < '2025-02-05 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:56:33] Production.INFO: count ==4130 [2025-02-05 17:56:34] Production.ERROR: pbx CDR StartTime 2025-02-05 14:56:05 - End Time 2025-02-05 17:56:05 [2025-02-05 17:56:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409368', 'tblTempUsageDetail_20' ) start [2025-02-05 17:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409368', 'tblTempUsageDetail_20' ) end [2025-02-05 17:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409368', 'tblTempVendorCDR_20' ) start [2025-02-05 17:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409368', 'tblTempVendorCDR_20' ) end [2025-02-05 17:56:34] Production.INFO: ProcessCDR(1,14409368,1,1,2) [2025-02-05 17:56:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:56:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:56:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:56:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409368', 'tblTempUsageDetail_20' ) start [2025-02-05 17:56:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409368', 'tblTempUsageDetail_20' ) end [2025-02-05 17:56:39] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:56:39] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:56:39] Production.INFO: ==9844== Releasing lock... [2025-02-05 17:56:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:56:39] Production.INFO: 59 MB #Memory Used# [2025-02-05 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:57:05 [end_date_ymd] => 2025-02-05 17:57:05 [RateCDR] => 1 ) [2025-02-05 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:57:05' and `end` < '2025-02-05 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:57:21] Production.INFO: count ==4118 [2025-02-05 17:57:23] Production.ERROR: pbx CDR StartTime 2025-02-05 14:57:05 - End Time 2025-02-05 17:57:05 [2025-02-05 17:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409373', 'tblTempUsageDetail_20' ) start [2025-02-05 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409373', 'tblTempUsageDetail_20' ) end [2025-02-05 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409373', 'tblTempVendorCDR_20' ) start [2025-02-05 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409373', 'tblTempVendorCDR_20' ) end [2025-02-05 17:57:23] Production.INFO: ProcessCDR(1,14409373,1,1,2) [2025-02-05 17:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409373', 'tblTempUsageDetail_20' ) start [2025-02-05 17:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409373', 'tblTempUsageDetail_20' ) end [2025-02-05 17:57:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:57:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:57:28] Production.INFO: ==9916== Releasing lock... [2025-02-05 17:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:57:28] Production.INFO: 58.75 MB #Memory Used# [2025-02-05 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:58:05 [end_date_ymd] => 2025-02-05 17:58:05 [RateCDR] => 1 ) [2025-02-05 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:58:05' and `end` < '2025-02-05 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:58:19] Production.INFO: count ==4113 [2025-02-05 17:58:20] Production.ERROR: pbx CDR StartTime 2025-02-05 14:58:05 - End Time 2025-02-05 17:58:05 [2025-02-05 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409378', 'tblTempUsageDetail_20' ) start [2025-02-05 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409378', 'tblTempUsageDetail_20' ) end [2025-02-05 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409378', 'tblTempVendorCDR_20' ) start [2025-02-05 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409378', 'tblTempVendorCDR_20' ) end [2025-02-05 17:58:20] Production.INFO: ProcessCDR(1,14409378,1,1,2) [2025-02-05 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409378', 'tblTempUsageDetail_20' ) start [2025-02-05 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409378', 'tblTempUsageDetail_20' ) end [2025-02-05 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:58:25] Production.INFO: ==9986== Releasing lock... [2025-02-05 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:58:25] Production.INFO: 58.75 MB #Memory Used# [2025-02-05 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 14:59:05 [end_date_ymd] => 2025-02-05 17:59:05 [RateCDR] => 1 ) [2025-02-05 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 14:59:05' and `end` < '2025-02-05 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 17:59:31] Production.INFO: count ==4096 [2025-02-05 17:59:33] Production.ERROR: pbx CDR StartTime 2025-02-05 14:59:05 - End Time 2025-02-05 17:59:05 [2025-02-05 17:59:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 17:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409383', 'tblTempUsageDetail_20' ) start [2025-02-05 17:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409383', 'tblTempUsageDetail_20' ) end [2025-02-05 17:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409383', 'tblTempVendorCDR_20' ) start [2025-02-05 17:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409383', 'tblTempVendorCDR_20' ) end [2025-02-05 17:59:33] Production.INFO: ProcessCDR(1,14409383,1,1,2) [2025-02-05 17:59:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:59:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 17:59:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:59:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 17:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409383', 'tblTempUsageDetail_20' ) start [2025-02-05 17:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409383', 'tblTempUsageDetail_20' ) end [2025-02-05 17:59:37] Production.ERROR: pbx prc_insertCDR start [2025-02-05 17:59:37] Production.ERROR: pbx prc_insertCDR end [2025-02-05 17:59:37] Production.INFO: ==10061== Releasing lock... [2025-02-05 17:59:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 17:59:37] Production.INFO: 58.5 MB #Memory Used# [2025-02-05 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:00:06 [end_date_ymd] => 2025-02-05 18:00:06 [RateCDR] => 1 ) [2025-02-05 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:00:06' and `end` < '2025-02-05 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:00:28] Production.INFO: count ==4073 [2025-02-05 18:00:29] Production.ERROR: pbx CDR StartTime 2025-02-05 15:00:06 - End Time 2025-02-05 18:00:06 [2025-02-05 18:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409389', 'tblTempUsageDetail_20' ) start [2025-02-05 18:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409389', 'tblTempUsageDetail_20' ) end [2025-02-05 18:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409389', 'tblTempVendorCDR_20' ) start [2025-02-05 18:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409389', 'tblTempVendorCDR_20' ) end [2025-02-05 18:00:29] Production.INFO: ProcessCDR(1,14409389,1,1,2) [2025-02-05 18:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409389', 'tblTempUsageDetail_20' ) start [2025-02-05 18:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409389', 'tblTempUsageDetail_20' ) end [2025-02-05 18:00:33] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:00:33] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:00:33] Production.INFO: ==10136== Releasing lock... [2025-02-05 18:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:00:33] Production.INFO: 58.5 MB #Memory Used# [2025-02-05 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:01:05 [end_date_ymd] => 2025-02-05 18:01:05 [RateCDR] => 1 ) [2025-02-05 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:01:05' and `end` < '2025-02-05 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:01:21] Production.INFO: count ==4039 [2025-02-05 18:01:22] Production.ERROR: pbx CDR StartTime 2025-02-05 15:01:05 - End Time 2025-02-05 18:01:05 [2025-02-05 18:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409394', 'tblTempUsageDetail_20' ) start [2025-02-05 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409394', 'tblTempUsageDetail_20' ) end [2025-02-05 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409394', 'tblTempVendorCDR_20' ) start [2025-02-05 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409394', 'tblTempVendorCDR_20' ) end [2025-02-05 18:01:23] Production.INFO: ProcessCDR(1,14409394,1,1,2) [2025-02-05 18:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409394', 'tblTempUsageDetail_20' ) start [2025-02-05 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409394', 'tblTempUsageDetail_20' ) end [2025-02-05 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:01:27] Production.INFO: ==10263== Releasing lock... [2025-02-05 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:01:27] Production.INFO: 58.25 MB #Memory Used# [2025-02-05 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:02:05 [end_date_ymd] => 2025-02-05 18:02:05 [RateCDR] => 1 ) [2025-02-05 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:02:05' and `end` < '2025-02-05 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:02:19] Production.INFO: count ==4021 [2025-02-05 18:02:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:02:05 - End Time 2025-02-05 18:02:05 [2025-02-05 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409399', 'tblTempUsageDetail_20' ) start [2025-02-05 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409399', 'tblTempUsageDetail_20' ) end [2025-02-05 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409399', 'tblTempVendorCDR_20' ) start [2025-02-05 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409399', 'tblTempVendorCDR_20' ) end [2025-02-05 18:02:20] Production.INFO: ProcessCDR(1,14409399,1,1,2) [2025-02-05 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409399', 'tblTempUsageDetail_20' ) start [2025-02-05 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409399', 'tblTempUsageDetail_20' ) end [2025-02-05 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:02:25] Production.INFO: ==10337== Releasing lock... [2025-02-05 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:02:25] Production.INFO: 58.25 MB #Memory Used# [2025-02-05 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:03:05 [end_date_ymd] => 2025-02-05 18:03:05 [RateCDR] => 1 ) [2025-02-05 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:03:05' and `end` < '2025-02-05 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:03:19] Production.INFO: count ==4010 [2025-02-05 18:03:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:03:05 - End Time 2025-02-05 18:03:05 [2025-02-05 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409404', 'tblTempUsageDetail_20' ) start [2025-02-05 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409404', 'tblTempUsageDetail_20' ) end [2025-02-05 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409404', 'tblTempVendorCDR_20' ) start [2025-02-05 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409404', 'tblTempVendorCDR_20' ) end [2025-02-05 18:03:20] Production.INFO: ProcessCDR(1,14409404,1,1,2) [2025-02-05 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409404', 'tblTempUsageDetail_20' ) start [2025-02-05 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409404', 'tblTempUsageDetail_20' ) end [2025-02-05 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:03:25] Production.INFO: ==10413== Releasing lock... [2025-02-05 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:03:25] Production.INFO: 58 MB #Memory Used# [2025-02-05 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:04:05 [end_date_ymd] => 2025-02-05 18:04:05 [RateCDR] => 1 ) [2025-02-05 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:04:05' and `end` < '2025-02-05 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:04:20] Production.INFO: count ==4001 [2025-02-05 18:04:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:04:05 - End Time 2025-02-05 18:04:05 [2025-02-05 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409409', 'tblTempUsageDetail_20' ) start [2025-02-05 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409409', 'tblTempUsageDetail_20' ) end [2025-02-05 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409409', 'tblTempVendorCDR_20' ) start [2025-02-05 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409409', 'tblTempVendorCDR_20' ) end [2025-02-05 18:04:21] Production.INFO: ProcessCDR(1,14409409,1,1,2) [2025-02-05 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409409', 'tblTempUsageDetail_20' ) start [2025-02-05 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409409', 'tblTempUsageDetail_20' ) end [2025-02-05 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:04:25] Production.INFO: ==10488== Releasing lock... [2025-02-05 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:04:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-05 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:05:05 [end_date_ymd] => 2025-02-05 18:05:05 [RateCDR] => 1 ) [2025-02-05 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:05:05' and `end` < '2025-02-05 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:05:22] Production.INFO: count ==3993 [2025-02-05 18:05:23] Production.ERROR: pbx CDR StartTime 2025-02-05 15:05:05 - End Time 2025-02-05 18:05:05 [2025-02-05 18:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409414', 'tblTempUsageDetail_20' ) start [2025-02-05 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409414', 'tblTempUsageDetail_20' ) end [2025-02-05 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409414', 'tblTempVendorCDR_20' ) start [2025-02-05 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409414', 'tblTempVendorCDR_20' ) end [2025-02-05 18:05:23] Production.INFO: ProcessCDR(1,14409414,1,1,2) [2025-02-05 18:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409414', 'tblTempUsageDetail_20' ) start [2025-02-05 18:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409414', 'tblTempUsageDetail_20' ) end [2025-02-05 18:05:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:05:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:05:28] Production.INFO: ==10558== Releasing lock... [2025-02-05 18:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:05:28] Production.INFO: 57.75 MB #Memory Used# [2025-02-05 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:06:05 [end_date_ymd] => 2025-02-05 18:06:05 [RateCDR] => 1 ) [2025-02-05 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:06:05' and `end` < '2025-02-05 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:06:19] Production.INFO: count ==3978 [2025-02-05 18:06:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:06:05 - End Time 2025-02-05 18:06:05 [2025-02-05 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409419', 'tblTempUsageDetail_20' ) start [2025-02-05 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409419', 'tblTempUsageDetail_20' ) end [2025-02-05 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409419', 'tblTempVendorCDR_20' ) start [2025-02-05 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409419', 'tblTempVendorCDR_20' ) end [2025-02-05 18:06:21] Production.INFO: ProcessCDR(1,14409419,1,1,2) [2025-02-05 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409419', 'tblTempUsageDetail_20' ) start [2025-02-05 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409419', 'tblTempUsageDetail_20' ) end [2025-02-05 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:06:25] Production.INFO: ==10631== Releasing lock... [2025-02-05 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:06:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-05 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:07:05 [end_date_ymd] => 2025-02-05 18:07:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 15:07:05' and `end` < '2025-02-05 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-02-05 18:07:20] Production.INFO: count ==3979 [2025-02-05 18:07:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:07:05 - End Time 2025-02-05 18:07:05 [2025-02-05 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409424', 'tblTempUsageDetail_20' ) start [2025-02-05 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409424', 'tblTempUsageDetail_20' ) end [2025-02-05 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409424', 'tblTempVendorCDR_20' ) start [2025-02-05 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409424', 'tblTempVendorCDR_20' ) end [2025-02-05 18:07:21] Production.INFO: ProcessCDR(1,14409424,1,1,2) [2025-02-05 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409424', 'tblTempUsageDetail_20' ) start [2025-02-05 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409424', 'tblTempUsageDetail_20' ) end [2025-02-05 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:07:26] Production.INFO: ==10704== Releasing lock... [2025-02-05 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:07:26] Production.INFO: 57.75 MB #Memory Used# [2025-02-05 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:08:06 [end_date_ymd] => 2025-02-05 18:08:06 [RateCDR] => 1 ) [2025-02-05 18:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:08:06' and `end` < '2025-02-05 18:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:08:20] Production.INFO: count ==3977 [2025-02-05 18:08:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:08:06 - End Time 2025-02-05 18:08:06 [2025-02-05 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409429', 'tblTempUsageDetail_20' ) start [2025-02-05 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409429', 'tblTempUsageDetail_20' ) end [2025-02-05 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409429', 'tblTempVendorCDR_20' ) start [2025-02-05 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409429', 'tblTempVendorCDR_20' ) end [2025-02-05 18:08:21] Production.INFO: ProcessCDR(1,14409429,1,1,2) [2025-02-05 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409429', 'tblTempUsageDetail_20' ) start [2025-02-05 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409429', 'tblTempUsageDetail_20' ) end [2025-02-05 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:08:24] Production.INFO: ==10776== Releasing lock... [2025-02-05 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:08:24] Production.INFO: 58 MB #Memory Used# [2025-02-05 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:09:05 [end_date_ymd] => 2025-02-05 18:09:05 [RateCDR] => 1 ) [2025-02-05 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:09:05' and `end` < '2025-02-05 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:09:19] Production.INFO: count ==3971 [2025-02-05 18:09:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:09:05 - End Time 2025-02-05 18:09:05 [2025-02-05 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409434', 'tblTempUsageDetail_20' ) start [2025-02-05 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409434', 'tblTempUsageDetail_20' ) end [2025-02-05 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409434', 'tblTempVendorCDR_20' ) start [2025-02-05 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409434', 'tblTempVendorCDR_20' ) end [2025-02-05 18:09:21] Production.INFO: ProcessCDR(1,14409434,1,1,2) [2025-02-05 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409434', 'tblTempUsageDetail_20' ) start [2025-02-05 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409434', 'tblTempUsageDetail_20' ) end [2025-02-05 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:09:24] Production.INFO: ==10850== Releasing lock... [2025-02-05 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:09:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-05 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:10:06 [end_date_ymd] => 2025-02-05 18:10:06 [RateCDR] => 1 ) [2025-02-05 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:10:06' and `end` < '2025-02-05 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:10:20] Production.INFO: count ==3962 [2025-02-05 18:10:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:10:06 - End Time 2025-02-05 18:10:06 [2025-02-05 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409440', 'tblTempUsageDetail_20' ) start [2025-02-05 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409440', 'tblTempUsageDetail_20' ) end [2025-02-05 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409440', 'tblTempVendorCDR_20' ) start [2025-02-05 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409440', 'tblTempVendorCDR_20' ) end [2025-02-05 18:10:21] Production.INFO: ProcessCDR(1,14409440,1,1,2) [2025-02-05 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409440', 'tblTempUsageDetail_20' ) start [2025-02-05 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409440', 'tblTempUsageDetail_20' ) end [2025-02-05 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:10:24] Production.INFO: ==10924== Releasing lock... [2025-02-05 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:10:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-05 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:11:05 [end_date_ymd] => 2025-02-05 18:11:05 [RateCDR] => 1 ) [2025-02-05 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:11:05' and `end` < '2025-02-05 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:11:19] Production.INFO: count ==3896 [2025-02-05 18:11:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:11:05 - End Time 2025-02-05 18:11:05 [2025-02-05 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409445', 'tblTempUsageDetail_20' ) start [2025-02-05 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409445', 'tblTempUsageDetail_20' ) end [2025-02-05 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409445', 'tblTempVendorCDR_20' ) start [2025-02-05 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409445', 'tblTempVendorCDR_20' ) end [2025-02-05 18:11:21] Production.INFO: ProcessCDR(1,14409445,1,1,2) [2025-02-05 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409445', 'tblTempUsageDetail_20' ) start [2025-02-05 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409445', 'tblTempUsageDetail_20' ) end [2025-02-05 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:11:24] Production.INFO: ==10997== Releasing lock... [2025-02-05 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:11:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-05 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:12:06 [end_date_ymd] => 2025-02-05 18:12:06 [RateCDR] => 1 ) [2025-02-05 18:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:12:06' and `end` < '2025-02-05 18:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:12:20] Production.INFO: count ==3887 [2025-02-05 18:12:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:12:06 - End Time 2025-02-05 18:12:06 [2025-02-05 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409450', 'tblTempUsageDetail_20' ) start [2025-02-05 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409450', 'tblTempUsageDetail_20' ) end [2025-02-05 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409450', 'tblTempVendorCDR_20' ) start [2025-02-05 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409450', 'tblTempVendorCDR_20' ) end [2025-02-05 18:12:21] Production.INFO: ProcessCDR(1,14409450,1,1,2) [2025-02-05 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409450', 'tblTempUsageDetail_20' ) start [2025-02-05 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409450', 'tblTempUsageDetail_20' ) end [2025-02-05 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:12:24] Production.INFO: ==11071== Releasing lock... [2025-02-05 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:12:24] Production.INFO: 57 MB #Memory Used# [2025-02-05 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:13:05 [end_date_ymd] => 2025-02-05 18:13:05 [RateCDR] => 1 ) [2025-02-05 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:13:05' and `end` < '2025-02-05 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:13:18] Production.INFO: count ==3879 [2025-02-05 18:13:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:13:05 - End Time 2025-02-05 18:13:05 [2025-02-05 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409455', 'tblTempUsageDetail_20' ) start [2025-02-05 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409455', 'tblTempUsageDetail_20' ) end [2025-02-05 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409455', 'tblTempVendorCDR_20' ) start [2025-02-05 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409455', 'tblTempVendorCDR_20' ) end [2025-02-05 18:13:20] Production.INFO: ProcessCDR(1,14409455,1,1,2) [2025-02-05 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409455', 'tblTempUsageDetail_20' ) start [2025-02-05 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409455', 'tblTempUsageDetail_20' ) end [2025-02-05 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:13:24] Production.INFO: ==11148== Releasing lock... [2025-02-05 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:13:24] Production.INFO: 57.25 MB #Memory Used# [2025-02-05 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:14:05 [end_date_ymd] => 2025-02-05 18:14:05 [RateCDR] => 1 ) [2025-02-05 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:14:05' and `end` < '2025-02-05 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:14:19] Production.INFO: count ==3874 [2025-02-05 18:14:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:14:05 - End Time 2025-02-05 18:14:05 [2025-02-05 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409460', 'tblTempUsageDetail_20' ) start [2025-02-05 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409460', 'tblTempUsageDetail_20' ) end [2025-02-05 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409460', 'tblTempVendorCDR_20' ) start [2025-02-05 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409460', 'tblTempVendorCDR_20' ) end [2025-02-05 18:14:20] Production.INFO: ProcessCDR(1,14409460,1,1,2) [2025-02-05 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409460', 'tblTempUsageDetail_20' ) start [2025-02-05 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409460', 'tblTempUsageDetail_20' ) end [2025-02-05 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:14:23] Production.INFO: ==11222== Releasing lock... [2025-02-05 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:14:23] Production.INFO: 57 MB #Memory Used# [2025-02-05 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:15:05 [end_date_ymd] => 2025-02-05 18:15:05 [RateCDR] => 1 ) [2025-02-05 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:15:05' and `end` < '2025-02-05 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:15:19] Production.INFO: count ==3851 [2025-02-05 18:15:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:15:05 - End Time 2025-02-05 18:15:05 [2025-02-05 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409465', 'tblTempUsageDetail_20' ) start [2025-02-05 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409465', 'tblTempUsageDetail_20' ) end [2025-02-05 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409465', 'tblTempVendorCDR_20' ) start [2025-02-05 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409465', 'tblTempVendorCDR_20' ) end [2025-02-05 18:15:20] Production.INFO: ProcessCDR(1,14409465,1,1,2) [2025-02-05 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409465', 'tblTempUsageDetail_20' ) start [2025-02-05 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409465', 'tblTempUsageDetail_20' ) end [2025-02-05 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:15:24] Production.INFO: ==11296== Releasing lock... [2025-02-05 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:15:24] Production.INFO: 57 MB #Memory Used# [2025-02-05 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:16:05 [end_date_ymd] => 2025-02-05 18:16:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 15:16:05' and `end` < '2025-02-05 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-02-05 18:16:19] Production.INFO: count ==3816 [2025-02-05 18:16:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:16:05 - End Time 2025-02-05 18:16:05 [2025-02-05 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409470', 'tblTempUsageDetail_20' ) start [2025-02-05 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409470', 'tblTempUsageDetail_20' ) end [2025-02-05 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409470', 'tblTempVendorCDR_20' ) start [2025-02-05 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409470', 'tblTempVendorCDR_20' ) end [2025-02-05 18:16:20] Production.INFO: ProcessCDR(1,14409470,1,1,2) [2025-02-05 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409470', 'tblTempUsageDetail_20' ) start [2025-02-05 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409470', 'tblTempUsageDetail_20' ) end [2025-02-05 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:16:25] Production.INFO: ==11376== Releasing lock... [2025-02-05 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:16:25] Production.INFO: 56.75 MB #Memory Used# [2025-02-05 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:17:05 [end_date_ymd] => 2025-02-05 18:17:05 [RateCDR] => 1 ) [2025-02-05 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:17:05' and `end` < '2025-02-05 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:17:19] Production.INFO: count ==3810 [2025-02-05 18:17:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:17:05 - End Time 2025-02-05 18:17:05 [2025-02-05 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409475', 'tblTempUsageDetail_20' ) start [2025-02-05 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409475', 'tblTempUsageDetail_20' ) end [2025-02-05 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409475', 'tblTempVendorCDR_20' ) start [2025-02-05 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409475', 'tblTempVendorCDR_20' ) end [2025-02-05 18:17:20] Production.INFO: ProcessCDR(1,14409475,1,1,2) [2025-02-05 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409475', 'tblTempUsageDetail_20' ) start [2025-02-05 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409475', 'tblTempUsageDetail_20' ) end [2025-02-05 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:17:24] Production.INFO: ==11495== Releasing lock... [2025-02-05 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:17:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-05 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:18:05 [end_date_ymd] => 2025-02-05 18:18:05 [RateCDR] => 1 ) [2025-02-05 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:18:05' and `end` < '2025-02-05 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:18:19] Production.INFO: count ==3814 [2025-02-05 18:18:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:18:05 - End Time 2025-02-05 18:18:05 [2025-02-05 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409480', 'tblTempUsageDetail_20' ) start [2025-02-05 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409480', 'tblTempUsageDetail_20' ) end [2025-02-05 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409480', 'tblTempVendorCDR_20' ) start [2025-02-05 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409480', 'tblTempVendorCDR_20' ) end [2025-02-05 18:18:20] Production.INFO: ProcessCDR(1,14409480,1,1,2) [2025-02-05 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409480', 'tblTempUsageDetail_20' ) start [2025-02-05 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409480', 'tblTempUsageDetail_20' ) end [2025-02-05 18:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:18:23] Production.INFO: ==11567== Releasing lock... [2025-02-05 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:18:23] Production.INFO: 56.5 MB #Memory Used# [2025-02-05 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:19:06 [end_date_ymd] => 2025-02-05 18:19:06 [RateCDR] => 1 ) [2025-02-05 18:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:19:06' and `end` < '2025-02-05 18:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:19:20] Production.INFO: count ==3803 [2025-02-05 18:19:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:19:06 - End Time 2025-02-05 18:19:06 [2025-02-05 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409485', 'tblTempUsageDetail_20' ) start [2025-02-05 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409485', 'tblTempUsageDetail_20' ) end [2025-02-05 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409485', 'tblTempVendorCDR_20' ) start [2025-02-05 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409485', 'tblTempVendorCDR_20' ) end [2025-02-05 18:19:21] Production.INFO: ProcessCDR(1,14409485,1,1,2) [2025-02-05 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409485', 'tblTempUsageDetail_20' ) start [2025-02-05 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409485', 'tblTempUsageDetail_20' ) end [2025-02-05 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:19:24] Production.INFO: ==11642== Releasing lock... [2025-02-05 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:19:24] Production.INFO: 56.25 MB #Memory Used# [2025-02-05 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:20:06 [end_date_ymd] => 2025-02-05 18:20:06 [RateCDR] => 1 ) [2025-02-05 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:20:06' and `end` < '2025-02-05 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:20:20] Production.INFO: count ==3800 [2025-02-05 18:20:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:20:06 - End Time 2025-02-05 18:20:06 [2025-02-05 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409491', 'tblTempUsageDetail_20' ) start [2025-02-05 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409491', 'tblTempUsageDetail_20' ) end [2025-02-05 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409491', 'tblTempVendorCDR_20' ) start [2025-02-05 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409491', 'tblTempVendorCDR_20' ) end [2025-02-05 18:20:21] Production.INFO: ProcessCDR(1,14409491,1,1,2) [2025-02-05 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409491', 'tblTempUsageDetail_20' ) start [2025-02-05 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409491', 'tblTempUsageDetail_20' ) end [2025-02-05 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:20:26] Production.INFO: ==11722== Releasing lock... [2025-02-05 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:20:26] Production.INFO: 56.5 MB #Memory Used# [2025-02-05 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:21:05 [end_date_ymd] => 2025-02-05 18:21:05 [RateCDR] => 1 ) [2025-02-05 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:21:05' and `end` < '2025-02-05 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:21:22] Production.INFO: count ==3728 [2025-02-05 18:21:24] Production.ERROR: pbx CDR StartTime 2025-02-05 15:21:05 - End Time 2025-02-05 18:21:05 [2025-02-05 18:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409496', 'tblTempUsageDetail_20' ) start [2025-02-05 18:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409496', 'tblTempUsageDetail_20' ) end [2025-02-05 18:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409496', 'tblTempVendorCDR_20' ) start [2025-02-05 18:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409496', 'tblTempVendorCDR_20' ) end [2025-02-05 18:21:24] Production.INFO: ProcessCDR(1,14409496,1,1,2) [2025-02-05 18:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409496', 'tblTempUsageDetail_20' ) start [2025-02-05 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409496', 'tblTempUsageDetail_20' ) end [2025-02-05 18:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:21:27] Production.INFO: ==11801== Releasing lock... [2025-02-05 18:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:21:27] Production.INFO: 56.75 MB #Memory Used# [2025-02-05 18:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:22:04 [end_date_ymd] => 2025-02-05 18:22:04 [RateCDR] => 1 ) [2025-02-05 18: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-02-05 15:22:04' and `end` < '2025-02-05 18: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-02-05 18:22:18] Production.INFO: count ==3718 [2025-02-05 18:22:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:22:04 - End Time 2025-02-05 18:22:04 [2025-02-05 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409501', 'tblTempUsageDetail_20' ) start [2025-02-05 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409501', 'tblTempUsageDetail_20' ) end [2025-02-05 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409501', 'tblTempVendorCDR_20' ) start [2025-02-05 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409501', 'tblTempVendorCDR_20' ) end [2025-02-05 18:22:20] Production.INFO: ProcessCDR(1,14409501,1,1,2) [2025-02-05 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409501', 'tblTempUsageDetail_20' ) start [2025-02-05 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409501', 'tblTempUsageDetail_20' ) end [2025-02-05 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:22:23] Production.INFO: ==11875== Releasing lock... [2025-02-05 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:22:23] Production.INFO: 56.25 MB #Memory Used# [2025-02-05 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:23:05 [end_date_ymd] => 2025-02-05 18:23:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 15:23:05' and `end` < '2025-02-05 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-02-05 18:23:19] Production.INFO: count ==3703 [2025-02-05 18:23:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:23:05 - End Time 2025-02-05 18:23:05 [2025-02-05 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409506', 'tblTempUsageDetail_20' ) start [2025-02-05 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409506', 'tblTempUsageDetail_20' ) end [2025-02-05 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409506', 'tblTempVendorCDR_20' ) start [2025-02-05 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409506', 'tblTempVendorCDR_20' ) end [2025-02-05 18:23:21] Production.INFO: ProcessCDR(1,14409506,1,1,2) [2025-02-05 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409506', 'tblTempUsageDetail_20' ) start [2025-02-05 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409506', 'tblTempUsageDetail_20' ) end [2025-02-05 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:23:25] Production.INFO: ==11954== Releasing lock... [2025-02-05 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:23:25] Production.INFO: 56.25 MB #Memory Used# [2025-02-05 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:24:05 [end_date_ymd] => 2025-02-05 18:24:05 [RateCDR] => 1 ) [2025-02-05 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:24:05' and `end` < '2025-02-05 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:24:18] Production.INFO: count ==3693 [2025-02-05 18:24:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:24:05 - End Time 2025-02-05 18:24:05 [2025-02-05 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409511', 'tblTempUsageDetail_20' ) start [2025-02-05 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409511', 'tblTempUsageDetail_20' ) end [2025-02-05 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409511', 'tblTempVendorCDR_20' ) start [2025-02-05 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409511', 'tblTempVendorCDR_20' ) end [2025-02-05 18:24:20] Production.INFO: ProcessCDR(1,14409511,1,1,2) [2025-02-05 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409511', 'tblTempUsageDetail_20' ) start [2025-02-05 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409511', 'tblTempUsageDetail_20' ) end [2025-02-05 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:24:24] Production.INFO: ==12036== Releasing lock... [2025-02-05 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:24:24] Production.INFO: 56.5 MB #Memory Used# [2025-02-05 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:25:05 [end_date_ymd] => 2025-02-05 18:25:05 [RateCDR] => 1 ) [2025-02-05 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:25:05' and `end` < '2025-02-05 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:25:19] Production.INFO: count ==3702 [2025-02-05 18:25:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:25:05 - End Time 2025-02-05 18:25:05 [2025-02-05 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409516', 'tblTempUsageDetail_20' ) start [2025-02-05 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409516', 'tblTempUsageDetail_20' ) end [2025-02-05 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409516', 'tblTempVendorCDR_20' ) start [2025-02-05 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409516', 'tblTempVendorCDR_20' ) end [2025-02-05 18:25:20] Production.INFO: ProcessCDR(1,14409516,1,1,2) [2025-02-05 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409516', 'tblTempUsageDetail_20' ) start [2025-02-05 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409516', 'tblTempUsageDetail_20' ) end [2025-02-05 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:25:25] Production.INFO: ==12114== Releasing lock... [2025-02-05 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:25:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-05 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:26:05 [end_date_ymd] => 2025-02-05 18:26:05 [RateCDR] => 1 ) [2025-02-05 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:26:05' and `end` < '2025-02-05 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:26:18] Production.INFO: count ==3703 [2025-02-05 18:26:19] Production.ERROR: pbx CDR StartTime 2025-02-05 15:26:05 - End Time 2025-02-05 18:26:05 [2025-02-05 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409521', 'tblTempUsageDetail_20' ) start [2025-02-05 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409521', 'tblTempUsageDetail_20' ) end [2025-02-05 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409521', 'tblTempVendorCDR_20' ) start [2025-02-05 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409521', 'tblTempVendorCDR_20' ) end [2025-02-05 18:26:19] Production.INFO: ProcessCDR(1,14409521,1,1,2) [2025-02-05 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409521', 'tblTempUsageDetail_20' ) start [2025-02-05 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409521', 'tblTempUsageDetail_20' ) end [2025-02-05 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:26:24] Production.INFO: ==12186== Releasing lock... [2025-02-05 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:26:24] Production.INFO: 56.75 MB #Memory Used# [2025-02-05 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:27:05 [end_date_ymd] => 2025-02-05 18:27:05 [RateCDR] => 1 ) [2025-02-05 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:27:05' and `end` < '2025-02-05 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:27:19] Production.INFO: count ==3694 [2025-02-05 18:27:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:27:05 - End Time 2025-02-05 18:27:05 [2025-02-05 18:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409526', 'tblTempUsageDetail_20' ) start [2025-02-05 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409526', 'tblTempUsageDetail_20' ) end [2025-02-05 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409526', 'tblTempVendorCDR_20' ) start [2025-02-05 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409526', 'tblTempVendorCDR_20' ) end [2025-02-05 18:27:20] Production.INFO: ProcessCDR(1,14409526,1,1,2) [2025-02-05 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409526', 'tblTempUsageDetail_20' ) start [2025-02-05 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409526', 'tblTempUsageDetail_20' ) end [2025-02-05 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:27:24] Production.INFO: ==12265== Releasing lock... [2025-02-05 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:27:24] Production.INFO: 55.75 MB #Memory Used# [2025-02-05 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:28:05 [end_date_ymd] => 2025-02-05 18:28:05 [RateCDR] => 1 ) [2025-02-05 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:28:05' and `end` < '2025-02-05 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:28:19] Production.INFO: count ==3693 [2025-02-05 18:28:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:28:05 - End Time 2025-02-05 18:28:05 [2025-02-05 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409531', 'tblTempUsageDetail_20' ) start [2025-02-05 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409531', 'tblTempUsageDetail_20' ) end [2025-02-05 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409531', 'tblTempVendorCDR_20' ) start [2025-02-05 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409531', 'tblTempVendorCDR_20' ) end [2025-02-05 18:28:20] Production.INFO: ProcessCDR(1,14409531,1,1,2) [2025-02-05 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409531', 'tblTempUsageDetail_20' ) start [2025-02-05 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409531', 'tblTempUsageDetail_20' ) end [2025-02-05 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:28:23] Production.INFO: ==12344== Releasing lock... [2025-02-05 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:28:23] Production.INFO: 55.5 MB #Memory Used# [2025-02-05 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:29:05 [end_date_ymd] => 2025-02-05 18:29:05 [RateCDR] => 1 ) [2025-02-05 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:29:05' and `end` < '2025-02-05 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:29:19] Production.INFO: count ==3689 [2025-02-05 18:29:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:29:05 - End Time 2025-02-05 18:29:05 [2025-02-05 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409536', 'tblTempUsageDetail_20' ) start [2025-02-05 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409536', 'tblTempUsageDetail_20' ) end [2025-02-05 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409536', 'tblTempVendorCDR_20' ) start [2025-02-05 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409536', 'tblTempVendorCDR_20' ) end [2025-02-05 18:29:20] Production.INFO: ProcessCDR(1,14409536,1,1,2) [2025-02-05 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409536', 'tblTempUsageDetail_20' ) start [2025-02-05 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409536', 'tblTempUsageDetail_20' ) end [2025-02-05 18:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:29:24] Production.INFO: ==12419== Releasing lock... [2025-02-05 18:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:29:24] Production.INFO: 55.5 MB #Memory Used# [2025-02-05 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:30:06 [end_date_ymd] => 2025-02-05 18:30:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 15:30:06' and `end` < '2025-02-05 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-02-05 18:30:20] Production.INFO: count ==3688 [2025-02-05 18:30:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:30:06 - End Time 2025-02-05 18:30:06 [2025-02-05 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409542', 'tblTempUsageDetail_20' ) start [2025-02-05 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409542', 'tblTempUsageDetail_20' ) end [2025-02-05 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409542', 'tblTempVendorCDR_20' ) start [2025-02-05 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409542', 'tblTempVendorCDR_20' ) end [2025-02-05 18:30:21] Production.INFO: ProcessCDR(1,14409542,1,1,2) [2025-02-05 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409542', 'tblTempUsageDetail_20' ) start [2025-02-05 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409542', 'tblTempUsageDetail_20' ) end [2025-02-05 18:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:30:26] Production.INFO: ==12495== Releasing lock... [2025-02-05 18:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:30:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-05 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:31:05 [end_date_ymd] => 2025-02-05 18:31:05 [RateCDR] => 1 ) [2025-02-05 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:31:05' and `end` < '2025-02-05 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:31:20] Production.INFO: count ==3630 [2025-02-05 18:31:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:31:05 - End Time 2025-02-05 18:31:05 [2025-02-05 18:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409547', 'tblTempUsageDetail_20' ) start [2025-02-05 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409547', 'tblTempUsageDetail_20' ) end [2025-02-05 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409547', 'tblTempVendorCDR_20' ) start [2025-02-05 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409547', 'tblTempVendorCDR_20' ) end [2025-02-05 18:31:21] Production.INFO: ProcessCDR(1,14409547,1,1,2) [2025-02-05 18:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409547', 'tblTempUsageDetail_20' ) start [2025-02-05 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409547', 'tblTempUsageDetail_20' ) end [2025-02-05 18:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:31:25] Production.INFO: ==12583== Releasing lock... [2025-02-05 18:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:31:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-05 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:32:05 [end_date_ymd] => 2025-02-05 18:32:05 [RateCDR] => 1 ) [2025-02-05 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:32:05' and `end` < '2025-02-05 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:32:19] Production.INFO: count ==3587 [2025-02-05 18:32:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:32:05 - End Time 2025-02-05 18:32:05 [2025-02-05 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409552', 'tblTempUsageDetail_20' ) start [2025-02-05 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409552', 'tblTempUsageDetail_20' ) end [2025-02-05 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409552', 'tblTempVendorCDR_20' ) start [2025-02-05 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409552', 'tblTempVendorCDR_20' ) end [2025-02-05 18:32:20] Production.INFO: ProcessCDR(1,14409552,1,1,2) [2025-02-05 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409552', 'tblTempUsageDetail_20' ) start [2025-02-05 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409552', 'tblTempUsageDetail_20' ) end [2025-02-05 18:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:32:23] Production.INFO: ==12701== Releasing lock... [2025-02-05 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:32:23] Production.INFO: 56 MB #Memory Used# [2025-02-05 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:33:05 [end_date_ymd] => 2025-02-05 18:33:05 [RateCDR] => 1 ) [2025-02-05 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:33:05' and `end` < '2025-02-05 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:33:19] Production.INFO: count ==3554 [2025-02-05 18:33:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:33:05 - End Time 2025-02-05 18:33:05 [2025-02-05 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409557', 'tblTempUsageDetail_20' ) start [2025-02-05 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409557', 'tblTempUsageDetail_20' ) end [2025-02-05 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409557', 'tblTempVendorCDR_20' ) start [2025-02-05 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409557', 'tblTempVendorCDR_20' ) end [2025-02-05 18:33:20] Production.INFO: ProcessCDR(1,14409557,1,1,2) [2025-02-05 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409557', 'tblTempUsageDetail_20' ) start [2025-02-05 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409557', 'tblTempUsageDetail_20' ) end [2025-02-05 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:33:25] Production.INFO: ==12782== Releasing lock... [2025-02-05 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:33:25] Production.INFO: 55.5 MB #Memory Used# [2025-02-05 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:34:05 [end_date_ymd] => 2025-02-05 18:34:05 [RateCDR] => 1 ) [2025-02-05 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:34:05' and `end` < '2025-02-05 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:34:19] Production.INFO: count ==3520 [2025-02-05 18:34:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:34:05 - End Time 2025-02-05 18:34:05 [2025-02-05 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409562', 'tblTempUsageDetail_20' ) start [2025-02-05 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409562', 'tblTempUsageDetail_20' ) end [2025-02-05 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409562', 'tblTempVendorCDR_20' ) start [2025-02-05 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409562', 'tblTempVendorCDR_20' ) end [2025-02-05 18:34:20] Production.INFO: ProcessCDR(1,14409562,1,1,2) [2025-02-05 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409562', 'tblTempUsageDetail_20' ) start [2025-02-05 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409562', 'tblTempUsageDetail_20' ) end [2025-02-05 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:34:23] Production.INFO: ==12861== Releasing lock... [2025-02-05 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:34:23] Production.INFO: 54.25 MB #Memory Used# [2025-02-05 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:35:05 [end_date_ymd] => 2025-02-05 18:35:05 [RateCDR] => 1 ) [2025-02-05 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:35:05' and `end` < '2025-02-05 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:35:19] Production.INFO: count ==3511 [2025-02-05 18:35:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:35:05 - End Time 2025-02-05 18:35:05 [2025-02-05 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409567', 'tblTempUsageDetail_20' ) start [2025-02-05 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409567', 'tblTempUsageDetail_20' ) end [2025-02-05 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409567', 'tblTempVendorCDR_20' ) start [2025-02-05 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409567', 'tblTempVendorCDR_20' ) end [2025-02-05 18:35:20] Production.INFO: ProcessCDR(1,14409567,1,1,2) [2025-02-05 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409567', 'tblTempUsageDetail_20' ) start [2025-02-05 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409567', 'tblTempUsageDetail_20' ) end [2025-02-05 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:35:25] Production.INFO: ==12939== Releasing lock... [2025-02-05 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:35:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-05 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:36:05 [end_date_ymd] => 2025-02-05 18:36:05 [RateCDR] => 1 ) [2025-02-05 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:36:05' and `end` < '2025-02-05 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:36:19] Production.INFO: count ==3512 [2025-02-05 18:36:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:36:05 - End Time 2025-02-05 18:36:05 [2025-02-05 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409572', 'tblTempUsageDetail_20' ) start [2025-02-05 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409572', 'tblTempUsageDetail_20' ) end [2025-02-05 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409572', 'tblTempVendorCDR_20' ) start [2025-02-05 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409572', 'tblTempVendorCDR_20' ) end [2025-02-05 18:36:20] Production.INFO: ProcessCDR(1,14409572,1,1,2) [2025-02-05 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409572', 'tblTempUsageDetail_20' ) start [2025-02-05 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409572', 'tblTempUsageDetail_20' ) end [2025-02-05 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:36:25] Production.INFO: ==13014== Releasing lock... [2025-02-05 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:36:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-05 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:37:05 [end_date_ymd] => 2025-02-05 18:37:05 [RateCDR] => 1 ) [2025-02-05 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:37:05' and `end` < '2025-02-05 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:37:19] Production.INFO: count ==3509 [2025-02-05 18:37:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:37:05 - End Time 2025-02-05 18:37:05 [2025-02-05 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409577', 'tblTempUsageDetail_20' ) start [2025-02-05 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409577', 'tblTempUsageDetail_20' ) end [2025-02-05 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409577', 'tblTempVendorCDR_20' ) start [2025-02-05 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409577', 'tblTempVendorCDR_20' ) end [2025-02-05 18:37:20] Production.INFO: ProcessCDR(1,14409577,1,1,2) [2025-02-05 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409577', 'tblTempUsageDetail_20' ) start [2025-02-05 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409577', 'tblTempUsageDetail_20' ) end [2025-02-05 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:37:25] Production.INFO: ==13091== Releasing lock... [2025-02-05 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:37:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-05 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:38:05 [end_date_ymd] => 2025-02-05 18:38:05 [RateCDR] => 1 ) [2025-02-05 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:38:05' and `end` < '2025-02-05 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:38:19] Production.INFO: count ==3499 [2025-02-05 18:38:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:38:05 - End Time 2025-02-05 18:38:05 [2025-02-05 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409582', 'tblTempUsageDetail_20' ) start [2025-02-05 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409582', 'tblTempUsageDetail_20' ) end [2025-02-05 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409582', 'tblTempVendorCDR_20' ) start [2025-02-05 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409582', 'tblTempVendorCDR_20' ) end [2025-02-05 18:38:20] Production.INFO: ProcessCDR(1,14409582,1,1,2) [2025-02-05 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409582', 'tblTempUsageDetail_20' ) start [2025-02-05 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409582', 'tblTempUsageDetail_20' ) end [2025-02-05 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:38:23] Production.INFO: ==13166== Releasing lock... [2025-02-05 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:38:23] Production.INFO: 54.25 MB #Memory Used# [2025-02-05 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:39:05 [end_date_ymd] => 2025-02-05 18:39:05 [RateCDR] => 1 ) [2025-02-05 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:39:05' and `end` < '2025-02-05 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:39:20] Production.INFO: count ==3508 [2025-02-05 18:39:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:39:05 - End Time 2025-02-05 18:39:05 [2025-02-05 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409587', 'tblTempUsageDetail_20' ) start [2025-02-05 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409587', 'tblTempUsageDetail_20' ) end [2025-02-05 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409587', 'tblTempVendorCDR_20' ) start [2025-02-05 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409587', 'tblTempVendorCDR_20' ) end [2025-02-05 18:39:22] Production.INFO: ProcessCDR(1,14409587,1,1,2) [2025-02-05 18:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409587', 'tblTempUsageDetail_20' ) start [2025-02-05 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409587', 'tblTempUsageDetail_20' ) end [2025-02-05 18:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:39:26] Production.INFO: ==13249== Releasing lock... [2025-02-05 18:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:39:26] Production.INFO: 54.25 MB #Memory Used# [2025-02-05 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:40:06 [end_date_ymd] => 2025-02-05 18:40:06 [RateCDR] => 1 ) [2025-02-05 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:40:06' and `end` < '2025-02-05 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:40:20] Production.INFO: count ==3484 [2025-02-05 18:40:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:40:06 - End Time 2025-02-05 18:40:06 [2025-02-05 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409592', 'tblTempUsageDetail_20' ) start [2025-02-05 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409592', 'tblTempUsageDetail_20' ) end [2025-02-05 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409592', 'tblTempVendorCDR_20' ) start [2025-02-05 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409592', 'tblTempVendorCDR_20' ) end [2025-02-05 18:40:21] Production.INFO: ProcessCDR(1,14409592,1,1,2) [2025-02-05 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409592', 'tblTempUsageDetail_20' ) start [2025-02-05 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409592', 'tblTempUsageDetail_20' ) end [2025-02-05 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:40:26] Production.INFO: ==13329== Releasing lock... [2025-02-05 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:40:26] Production.INFO: 54.5 MB #Memory Used# [2025-02-05 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:41:05 [end_date_ymd] => 2025-02-05 18:41:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 15:41:05' and `end` < '2025-02-05 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-02-05 18:41:18] Production.INFO: count ==3415 [2025-02-05 18:41:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:41:05 - End Time 2025-02-05 18:41:05 [2025-02-05 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409598', 'tblTempUsageDetail_20' ) start [2025-02-05 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409598', 'tblTempUsageDetail_20' ) end [2025-02-05 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409598', 'tblTempVendorCDR_20' ) start [2025-02-05 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409598', 'tblTempVendorCDR_20' ) end [2025-02-05 18:41:20] Production.INFO: ProcessCDR(1,14409598,1,1,2) [2025-02-05 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409598', 'tblTempUsageDetail_20' ) start [2025-02-05 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409598', 'tblTempUsageDetail_20' ) end [2025-02-05 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:41:23] Production.INFO: ==13409== Releasing lock... [2025-02-05 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:41:23] Production.INFO: 53.75 MB #Memory Used# [2025-02-05 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:42:05 [end_date_ymd] => 2025-02-05 18:42:05 [RateCDR] => 1 ) [2025-02-05 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:42:05' and `end` < '2025-02-05 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:42:19] Production.INFO: count ==3350 [2025-02-05 18:42:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:42:05 - End Time 2025-02-05 18:42:05 [2025-02-05 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409603', 'tblTempUsageDetail_20' ) start [2025-02-05 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409603', 'tblTempUsageDetail_20' ) end [2025-02-05 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409603', 'tblTempVendorCDR_20' ) start [2025-02-05 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409603', 'tblTempVendorCDR_20' ) end [2025-02-05 18:42:20] Production.INFO: ProcessCDR(1,14409603,1,1,2) [2025-02-05 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409603', 'tblTempUsageDetail_20' ) start [2025-02-05 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409603', 'tblTempUsageDetail_20' ) end [2025-02-05 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:42:24] Production.INFO: ==13486== Releasing lock... [2025-02-05 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:42:24] Production.INFO: 53 MB #Memory Used# [2025-02-05 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:43:05 [end_date_ymd] => 2025-02-05 18:43:05 [RateCDR] => 1 ) [2025-02-05 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:43:05' and `end` < '2025-02-05 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:43:19] Production.INFO: count ==3304 [2025-02-05 18:43:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:43:05 - End Time 2025-02-05 18:43:05 [2025-02-05 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409608', 'tblTempUsageDetail_20' ) start [2025-02-05 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409608', 'tblTempUsageDetail_20' ) end [2025-02-05 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409608', 'tblTempVendorCDR_20' ) start [2025-02-05 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409608', 'tblTempVendorCDR_20' ) end [2025-02-05 18:43:20] Production.INFO: ProcessCDR(1,14409608,1,1,2) [2025-02-05 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409608', 'tblTempUsageDetail_20' ) start [2025-02-05 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409608', 'tblTempUsageDetail_20' ) end [2025-02-05 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:43:25] Production.INFO: ==13562== Releasing lock... [2025-02-05 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:43:25] Production.INFO: 52.75 MB #Memory Used# [2025-02-05 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:44:05 [end_date_ymd] => 2025-02-05 18:44:05 [RateCDR] => 1 ) [2025-02-05 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:44:05' and `end` < '2025-02-05 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:44:19] Production.INFO: count ==3283 [2025-02-05 18:44:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:44:05 - End Time 2025-02-05 18:44:05 [2025-02-05 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409613', 'tblTempUsageDetail_20' ) start [2025-02-05 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409613', 'tblTempUsageDetail_20' ) end [2025-02-05 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409613', 'tblTempVendorCDR_20' ) start [2025-02-05 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409613', 'tblTempVendorCDR_20' ) end [2025-02-05 18:44:21] Production.INFO: ProcessCDR(1,14409613,1,1,2) [2025-02-05 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409613', 'tblTempUsageDetail_20' ) start [2025-02-05 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409613', 'tblTempUsageDetail_20' ) end [2025-02-05 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:44:25] Production.INFO: ==13641== Releasing lock... [2025-02-05 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:44:25] Production.INFO: 52.5 MB #Memory Used# [2025-02-05 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:45:05 [end_date_ymd] => 2025-02-05 18:45:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 15:45:05' and `end` < '2025-02-05 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:45:19] Production.INFO: count ==3271 [2025-02-05 18:45:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:45:05 - End Time 2025-02-05 18:45:05 [2025-02-05 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409618', 'tblTempUsageDetail_20' ) start [2025-02-05 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409618', 'tblTempUsageDetail_20' ) end [2025-02-05 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409618', 'tblTempVendorCDR_20' ) start [2025-02-05 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409618', 'tblTempVendorCDR_20' ) end [2025-02-05 18:45:20] Production.INFO: ProcessCDR(1,14409618,1,1,2) [2025-02-05 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409618', 'tblTempUsageDetail_20' ) start [2025-02-05 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409618', 'tblTempUsageDetail_20' ) end [2025-02-05 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:45:23] Production.INFO: ==13725== Releasing lock... [2025-02-05 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:45:23] Production.INFO: 52.5 MB #Memory Used# [2025-02-05 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:46:05 [end_date_ymd] => 2025-02-05 18:46:05 [RateCDR] => 1 ) [2025-02-05 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:46:05' and `end` < '2025-02-05 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:46:19] Production.INFO: count ==3260 [2025-02-05 18:46:19] Production.ERROR: pbx CDR StartTime 2025-02-05 15:46:05 - End Time 2025-02-05 18:46:05 [2025-02-05 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409623', 'tblTempUsageDetail_20' ) start [2025-02-05 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409623', 'tblTempUsageDetail_20' ) end [2025-02-05 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409623', 'tblTempVendorCDR_20' ) start [2025-02-05 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409623', 'tblTempVendorCDR_20' ) end [2025-02-05 18:46:20] Production.INFO: ProcessCDR(1,14409623,1,1,2) [2025-02-05 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409623', 'tblTempUsageDetail_20' ) start [2025-02-05 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409623', 'tblTempUsageDetail_20' ) end [2025-02-05 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:46:23] Production.INFO: ==13800== Releasing lock... [2025-02-05 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:46:23] Production.INFO: 52.25 MB #Memory Used# [2025-02-05 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:47:06 [end_date_ymd] => 2025-02-05 18:47:06 [RateCDR] => 1 ) [2025-02-05 18:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:47:06' and `end` < '2025-02-05 18:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:47:20] Production.INFO: count ==3254 [2025-02-05 18:47:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:47:06 - End Time 2025-02-05 18:47:06 [2025-02-05 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409628', 'tblTempUsageDetail_20' ) start [2025-02-05 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409628', 'tblTempUsageDetail_20' ) end [2025-02-05 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409628', 'tblTempVendorCDR_20' ) start [2025-02-05 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409628', 'tblTempVendorCDR_20' ) end [2025-02-05 18:47:21] Production.INFO: ProcessCDR(1,14409628,1,1,2) [2025-02-05 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409628', 'tblTempUsageDetail_20' ) start [2025-02-05 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409628', 'tblTempUsageDetail_20' ) end [2025-02-05 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:47:24] Production.INFO: ==13918== Releasing lock... [2025-02-05 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:47:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-05 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:48:05 [end_date_ymd] => 2025-02-05 18:48:05 [RateCDR] => 1 ) [2025-02-05 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:48:05' and `end` < '2025-02-05 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:48:18] Production.INFO: count ==3251 [2025-02-05 18:48:19] Production.ERROR: pbx CDR StartTime 2025-02-05 15:48:05 - End Time 2025-02-05 18:48:05 [2025-02-05 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409633', 'tblTempUsageDetail_20' ) start [2025-02-05 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409633', 'tblTempUsageDetail_20' ) end [2025-02-05 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409633', 'tblTempVendorCDR_20' ) start [2025-02-05 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409633', 'tblTempVendorCDR_20' ) end [2025-02-05 18:48:19] Production.INFO: ProcessCDR(1,14409633,1,1,2) [2025-02-05 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409633', 'tblTempUsageDetail_20' ) start [2025-02-05 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409633', 'tblTempUsageDetail_20' ) end [2025-02-05 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:48:24] Production.INFO: ==13991== Releasing lock... [2025-02-05 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:48:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-05 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:49:05 [end_date_ymd] => 2025-02-05 18:49:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 15:49:05' and `end` < '2025-02-05 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-02-05 18:49:19] Production.INFO: count ==3241 [2025-02-05 18:49:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:49:05 - End Time 2025-02-05 18:49:05 [2025-02-05 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409638', 'tblTempUsageDetail_20' ) start [2025-02-05 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409638', 'tblTempUsageDetail_20' ) end [2025-02-05 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409638', 'tblTempVendorCDR_20' ) start [2025-02-05 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409638', 'tblTempVendorCDR_20' ) end [2025-02-05 18:49:20] Production.INFO: ProcessCDR(1,14409638,1,1,2) [2025-02-05 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409638', 'tblTempUsageDetail_20' ) start [2025-02-05 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409638', 'tblTempUsageDetail_20' ) end [2025-02-05 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:49:24] Production.INFO: ==14073== Releasing lock... [2025-02-05 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:49:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-05 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:50:05 [end_date_ymd] => 2025-02-05 18:50:05 [RateCDR] => 1 ) [2025-02-05 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:50:05' and `end` < '2025-02-05 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:50:27] Production.INFO: count ==3233 [2025-02-05 18:50:28] Production.ERROR: pbx CDR StartTime 2025-02-05 15:50:05 - End Time 2025-02-05 18:50:05 [2025-02-05 18:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409644', 'tblTempUsageDetail_20' ) start [2025-02-05 18:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409644', 'tblTempUsageDetail_20' ) end [2025-02-05 18:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409644', 'tblTempVendorCDR_20' ) start [2025-02-05 18:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409644', 'tblTempVendorCDR_20' ) end [2025-02-05 18:50:28] Production.INFO: ProcessCDR(1,14409644,1,1,2) [2025-02-05 18:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409644', 'tblTempUsageDetail_20' ) start [2025-02-05 18:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409644', 'tblTempUsageDetail_20' ) end [2025-02-05 18:50:32] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:50:32] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:50:32] Production.INFO: ==14150== Releasing lock... [2025-02-05 18:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:50:32] Production.INFO: 52 MB #Memory Used# [2025-02-05 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:51:05 [end_date_ymd] => 2025-02-05 18:51:05 [RateCDR] => 1 ) [2025-02-05 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:51:05' and `end` < '2025-02-05 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:51:21] Production.INFO: count ==3166 [2025-02-05 18:51:22] Production.ERROR: pbx CDR StartTime 2025-02-05 15:51:05 - End Time 2025-02-05 18:51:05 [2025-02-05 18:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409649', 'tblTempUsageDetail_20' ) start [2025-02-05 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409649', 'tblTempUsageDetail_20' ) end [2025-02-05 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409649', 'tblTempVendorCDR_20' ) start [2025-02-05 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409649', 'tblTempVendorCDR_20' ) end [2025-02-05 18:51:22] Production.INFO: ProcessCDR(1,14409649,1,1,2) [2025-02-05 18:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409649', 'tblTempUsageDetail_20' ) start [2025-02-05 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409649', 'tblTempUsageDetail_20' ) end [2025-02-05 18:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:51:26] Production.INFO: ==14229== Releasing lock... [2025-02-05 18:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:51:26] Production.INFO: 51.5 MB #Memory Used# [2025-02-05 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:52:05 [end_date_ymd] => 2025-02-05 18:52:05 [RateCDR] => 1 ) [2025-02-05 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:52:05' and `end` < '2025-02-05 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:52:19] Production.INFO: count ==3146 [2025-02-05 18:52:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:52:05 - End Time 2025-02-05 18:52:05 [2025-02-05 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409654', 'tblTempUsageDetail_20' ) start [2025-02-05 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409654', 'tblTempUsageDetail_20' ) end [2025-02-05 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409654', 'tblTempVendorCDR_20' ) start [2025-02-05 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409654', 'tblTempVendorCDR_20' ) end [2025-02-05 18:52:20] Production.INFO: ProcessCDR(1,14409654,1,1,2) [2025-02-05 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409654', 'tblTempUsageDetail_20' ) start [2025-02-05 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409654', 'tblTempUsageDetail_20' ) end [2025-02-05 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:52:24] Production.INFO: ==14311== Releasing lock... [2025-02-05 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:52:24] Production.INFO: 52.5 MB #Memory Used# [2025-02-05 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:53:05 [end_date_ymd] => 2025-02-05 18:53:05 [RateCDR] => 1 ) [2025-02-05 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:53:05' and `end` < '2025-02-05 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:53:18] Production.INFO: count ==3136 [2025-02-05 18:53:19] Production.ERROR: pbx CDR StartTime 2025-02-05 15:53:05 - End Time 2025-02-05 18:53:05 [2025-02-05 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409659', 'tblTempUsageDetail_20' ) start [2025-02-05 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409659', 'tblTempUsageDetail_20' ) end [2025-02-05 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409659', 'tblTempVendorCDR_20' ) start [2025-02-05 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409659', 'tblTempVendorCDR_20' ) end [2025-02-05 18:53:19] Production.INFO: ProcessCDR(1,14409659,1,1,2) [2025-02-05 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409659', 'tblTempUsageDetail_20' ) start [2025-02-05 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409659', 'tblTempUsageDetail_20' ) end [2025-02-05 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:53:22] Production.INFO: ==14392== Releasing lock... [2025-02-05 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:53:22] Production.INFO: 51.5 MB #Memory Used# [2025-02-05 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:54:05 [end_date_ymd] => 2025-02-05 18:54:05 [RateCDR] => 1 ) [2025-02-05 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:54:05' and `end` < '2025-02-05 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:54:19] Production.INFO: count ==3126 [2025-02-05 18:54:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:54:05 - End Time 2025-02-05 18:54:05 [2025-02-05 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409664', 'tblTempUsageDetail_20' ) start [2025-02-05 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409664', 'tblTempUsageDetail_20' ) end [2025-02-05 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409664', 'tblTempVendorCDR_20' ) start [2025-02-05 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409664', 'tblTempVendorCDR_20' ) end [2025-02-05 18:54:20] Production.INFO: ProcessCDR(1,14409664,1,1,2) [2025-02-05 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409664', 'tblTempUsageDetail_20' ) start [2025-02-05 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409664', 'tblTempUsageDetail_20' ) end [2025-02-05 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:54:25] Production.INFO: ==14473== Releasing lock... [2025-02-05 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:54:25] Production.INFO: 51.25 MB #Memory Used# [2025-02-05 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:55:05 [end_date_ymd] => 2025-02-05 18:55:05 [RateCDR] => 1 ) [2025-02-05 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:55:05' and `end` < '2025-02-05 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:55:19] Production.INFO: count ==3128 [2025-02-05 18:55:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:55:05 - End Time 2025-02-05 18:55:05 [2025-02-05 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409669', 'tblTempUsageDetail_20' ) start [2025-02-05 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409669', 'tblTempUsageDetail_20' ) end [2025-02-05 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409669', 'tblTempVendorCDR_20' ) start [2025-02-05 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409669', 'tblTempVendorCDR_20' ) end [2025-02-05 18:55:20] Production.INFO: ProcessCDR(1,14409669,1,1,2) [2025-02-05 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409669', 'tblTempUsageDetail_20' ) start [2025-02-05 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409669', 'tblTempUsageDetail_20' ) end [2025-02-05 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:55:23] Production.INFO: ==14549== Releasing lock... [2025-02-05 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:55:23] Production.INFO: 51.5 MB #Memory Used# [2025-02-05 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:56:05 [end_date_ymd] => 2025-02-05 18:56:05 [RateCDR] => 1 ) [2025-02-05 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:56:05' and `end` < '2025-02-05 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:56:20] Production.INFO: count ==3114 [2025-02-05 18:56:21] Production.ERROR: pbx CDR StartTime 2025-02-05 15:56:05 - End Time 2025-02-05 18:56:05 [2025-02-05 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409674', 'tblTempUsageDetail_20' ) start [2025-02-05 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409674', 'tblTempUsageDetail_20' ) end [2025-02-05 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409674', 'tblTempVendorCDR_20' ) start [2025-02-05 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409674', 'tblTempVendorCDR_20' ) end [2025-02-05 18:56:21] Production.INFO: ProcessCDR(1,14409674,1,1,2) [2025-02-05 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409674', 'tblTempUsageDetail_20' ) start [2025-02-05 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409674', 'tblTempUsageDetail_20' ) end [2025-02-05 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:56:24] Production.INFO: ==14629== Releasing lock... [2025-02-05 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:56:24] Production.INFO: 51.25 MB #Memory Used# [2025-02-05 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:57:05 [end_date_ymd] => 2025-02-05 18:57:05 [RateCDR] => 1 ) [2025-02-05 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 15:57:05' and `end` < '2025-02-05 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 18:57:18] Production.INFO: count ==3100 [2025-02-05 18:57:19] Production.ERROR: pbx CDR StartTime 2025-02-05 15:57:05 - End Time 2025-02-05 18:57:05 [2025-02-05 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409679', 'tblTempUsageDetail_20' ) start [2025-02-05 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409679', 'tblTempUsageDetail_20' ) end [2025-02-05 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409679', 'tblTempVendorCDR_20' ) start [2025-02-05 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409679', 'tblTempVendorCDR_20' ) end [2025-02-05 18:57:19] Production.INFO: ProcessCDR(1,14409679,1,1,2) [2025-02-05 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409679', 'tblTempUsageDetail_20' ) start [2025-02-05 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409679', 'tblTempUsageDetail_20' ) end [2025-02-05 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:57:22] Production.INFO: ==14705== Releasing lock... [2025-02-05 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:57:22] Production.INFO: 51 MB #Memory Used# [2025-02-05 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:58:05 [end_date_ymd] => 2025-02-05 18:58:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 15:58:05' and `end` < '2025-02-05 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-02-05 18:58:21] Production.INFO: count ==3107 [2025-02-05 18:58:22] Production.ERROR: pbx CDR StartTime 2025-02-05 15:58:05 - End Time 2025-02-05 18:58:05 [2025-02-05 18:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409684', 'tblTempUsageDetail_20' ) start [2025-02-05 18:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409684', 'tblTempUsageDetail_20' ) end [2025-02-05 18:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409684', 'tblTempVendorCDR_20' ) start [2025-02-05 18:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409684', 'tblTempVendorCDR_20' ) end [2025-02-05 18:58:22] Production.INFO: ProcessCDR(1,14409684,1,1,2) [2025-02-05 18:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409684', 'tblTempUsageDetail_20' ) start [2025-02-05 18:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409684', 'tblTempUsageDetail_20' ) end [2025-02-05 18:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:58:26] Production.INFO: ==14781== Releasing lock... [2025-02-05 18:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:58:26] Production.INFO: 51.25 MB #Memory Used# [2025-02-05 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 15:59:05 [end_date_ymd] => 2025-02-05 18:59:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 15:59:05' and `end` < '2025-02-05 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-02-05 18:59:19] Production.INFO: count ==3104 [2025-02-05 18:59:20] Production.ERROR: pbx CDR StartTime 2025-02-05 15:59:05 - End Time 2025-02-05 18:59:05 [2025-02-05 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409689', 'tblTempUsageDetail_20' ) start [2025-02-05 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409689', 'tblTempUsageDetail_20' ) end [2025-02-05 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409689', 'tblTempVendorCDR_20' ) start [2025-02-05 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409689', 'tblTempVendorCDR_20' ) end [2025-02-05 18:59:20] Production.INFO: ProcessCDR(1,14409689,1,1,2) [2025-02-05 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409689', 'tblTempUsageDetail_20' ) start [2025-02-05 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409689', 'tblTempUsageDetail_20' ) end [2025-02-05 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 18:59:25] Production.INFO: ==14865== Releasing lock... [2025-02-05 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 18:59:25] Production.INFO: 51.75 MB #Memory Used# [2025-02-05 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:00:06 [end_date_ymd] => 2025-02-05 19:00:06 [RateCDR] => 1 ) [2025-02-05 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:00:06' and `end` < '2025-02-05 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:00:20] Production.INFO: count ==3089 [2025-02-05 19:00:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:00:06 - End Time 2025-02-05 19:00:06 [2025-02-05 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409695', 'tblTempUsageDetail_20' ) start [2025-02-05 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409695', 'tblTempUsageDetail_20' ) end [2025-02-05 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409695', 'tblTempVendorCDR_20' ) start [2025-02-05 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409695', 'tblTempVendorCDR_20' ) end [2025-02-05 19:00:21] Production.INFO: ProcessCDR(1,14409695,1,1,2) [2025-02-05 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409695', 'tblTempUsageDetail_20' ) start [2025-02-05 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409695', 'tblTempUsageDetail_20' ) end [2025-02-05 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:00:25] Production.INFO: ==14946== Releasing lock... [2025-02-05 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:00:25] Production.INFO: 51 MB #Memory Used# [2025-02-05 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:01:05 [end_date_ymd] => 2025-02-05 19:01:05 [RateCDR] => 1 ) [2025-02-05 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:01:05' and `end` < '2025-02-05 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:01:19] Production.INFO: count ==3065 [2025-02-05 19:01:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:01:05 - End Time 2025-02-05 19:01:05 [2025-02-05 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409700', 'tblTempUsageDetail_20' ) start [2025-02-05 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409700', 'tblTempUsageDetail_20' ) end [2025-02-05 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409700', 'tblTempVendorCDR_20' ) start [2025-02-05 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409700', 'tblTempVendorCDR_20' ) end [2025-02-05 19:01:20] Production.INFO: ProcessCDR(1,14409700,1,1,2) [2025-02-05 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409700', 'tblTempUsageDetail_20' ) start [2025-02-05 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409700', 'tblTempUsageDetail_20' ) end [2025-02-05 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:01:24] Production.INFO: ==15116== Releasing lock... [2025-02-05 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:01:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-05 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:02:06 [end_date_ymd] => 2025-02-05 19:02:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 16:02:06' and `end` < '2025-02-05 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:02:20] Production.INFO: count ==3052 [2025-02-05 19:02:21] Production.ERROR: pbx CDR StartTime 2025-02-05 16:02:06 - End Time 2025-02-05 19:02:06 [2025-02-05 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409705', 'tblTempUsageDetail_20' ) start [2025-02-05 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409705', 'tblTempUsageDetail_20' ) end [2025-02-05 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409705', 'tblTempVendorCDR_20' ) start [2025-02-05 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409705', 'tblTempVendorCDR_20' ) end [2025-02-05 19:02:21] Production.INFO: ProcessCDR(1,14409705,1,1,2) [2025-02-05 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409705', 'tblTempUsageDetail_20' ) start [2025-02-05 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409705', 'tblTempUsageDetail_20' ) end [2025-02-05 19:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:02:25] Production.INFO: ==15194== Releasing lock... [2025-02-05 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:02:25] Production.INFO: 50.75 MB #Memory Used# [2025-02-05 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:03:05 [end_date_ymd] => 2025-02-05 19:03:05 [RateCDR] => 1 ) [2025-02-05 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:03:05' and `end` < '2025-02-05 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:03:19] Production.INFO: count ==3042 [2025-02-05 19:03:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:03:05 - End Time 2025-02-05 19:03:05 [2025-02-05 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409710', 'tblTempUsageDetail_20' ) start [2025-02-05 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409710', 'tblTempUsageDetail_20' ) end [2025-02-05 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409710', 'tblTempVendorCDR_20' ) start [2025-02-05 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409710', 'tblTempVendorCDR_20' ) end [2025-02-05 19:03:20] Production.INFO: ProcessCDR(1,14409710,1,1,2) [2025-02-05 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409710', 'tblTempUsageDetail_20' ) start [2025-02-05 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409710', 'tblTempUsageDetail_20' ) end [2025-02-05 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:03:23] Production.INFO: ==15308== Releasing lock... [2025-02-05 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:03:23] Production.INFO: 50.75 MB #Memory Used# [2025-02-05 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:04:06 [end_date_ymd] => 2025-02-05 19:04:06 [RateCDR] => 1 ) [2025-02-05 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:04:06' and `end` < '2025-02-05 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:04:19] Production.INFO: count ==3036 [2025-02-05 19:04:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:04:06 - End Time 2025-02-05 19:04:06 [2025-02-05 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409715', 'tblTempUsageDetail_20' ) start [2025-02-05 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409715', 'tblTempUsageDetail_20' ) end [2025-02-05 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409715', 'tblTempVendorCDR_20' ) start [2025-02-05 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409715', 'tblTempVendorCDR_20' ) end [2025-02-05 19:04:20] Production.INFO: ProcessCDR(1,14409715,1,1,2) [2025-02-05 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409715', 'tblTempUsageDetail_20' ) start [2025-02-05 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409715', 'tblTempUsageDetail_20' ) end [2025-02-05 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:04:25] Production.INFO: ==15388== Releasing lock... [2025-02-05 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:04:25] Production.INFO: 50.75 MB #Memory Used# [2025-02-05 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:05:04 [end_date_ymd] => 2025-02-05 19:05:04 [RateCDR] => 1 ) [2025-02-05 19:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:05:04' and `end` < '2025-02-05 19:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:05:18] Production.INFO: count ==3030 [2025-02-05 19:05:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:05:04 - End Time 2025-02-05 19:05:04 [2025-02-05 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409720', 'tblTempUsageDetail_20' ) start [2025-02-05 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409720', 'tblTempUsageDetail_20' ) end [2025-02-05 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409720', 'tblTempVendorCDR_20' ) start [2025-02-05 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409720', 'tblTempVendorCDR_20' ) end [2025-02-05 19:05:19] Production.INFO: ProcessCDR(1,14409720,1,1,2) [2025-02-05 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409720', 'tblTempUsageDetail_20' ) start [2025-02-05 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409720', 'tblTempUsageDetail_20' ) end [2025-02-05 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:05:22] Production.INFO: ==15544== Releasing lock... [2025-02-05 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:05:22] Production.INFO: 51 MB #Memory Used# [2025-02-05 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:06:05 [end_date_ymd] => 2025-02-05 19:06:05 [RateCDR] => 1 ) [2025-02-05 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:06:05' and `end` < '2025-02-05 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:06:19] Production.INFO: count ==3019 [2025-02-05 19:06:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:06:05 - End Time 2025-02-05 19:06:05 [2025-02-05 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409725', 'tblTempUsageDetail_20' ) start [2025-02-05 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409725', 'tblTempUsageDetail_20' ) end [2025-02-05 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409725', 'tblTempVendorCDR_20' ) start [2025-02-05 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409725', 'tblTempVendorCDR_20' ) end [2025-02-05 19:06:20] Production.INFO: ProcessCDR(1,14409725,1,1,2) [2025-02-05 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409725', 'tblTempUsageDetail_20' ) start [2025-02-05 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409725', 'tblTempUsageDetail_20' ) end [2025-02-05 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:06:24] Production.INFO: ==15620== Releasing lock... [2025-02-05 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:06:24] Production.INFO: 51.5 MB #Memory Used# [2025-02-05 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:07:05 [end_date_ymd] => 2025-02-05 19:07:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 16:07:05' and `end` < '2025-02-05 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-02-05 19:07:19] Production.INFO: count ==3014 [2025-02-05 19:07:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:07:05 - End Time 2025-02-05 19:07:05 [2025-02-05 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409730', 'tblTempUsageDetail_20' ) start [2025-02-05 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409730', 'tblTempUsageDetail_20' ) end [2025-02-05 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409730', 'tblTempVendorCDR_20' ) start [2025-02-05 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409730', 'tblTempVendorCDR_20' ) end [2025-02-05 19:07:20] Production.INFO: ProcessCDR(1,14409730,1,1,2) [2025-02-05 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409730', 'tblTempUsageDetail_20' ) start [2025-02-05 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409730', 'tblTempUsageDetail_20' ) end [2025-02-05 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:07:24] Production.INFO: ==15696== Releasing lock... [2025-02-05 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:07:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-05 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:08:05 [end_date_ymd] => 2025-02-05 19:08:05 [RateCDR] => 1 ) [2025-02-05 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:08:05' and `end` < '2025-02-05 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:08:19] Production.INFO: count ==3010 [2025-02-05 19:08:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:08:05 - End Time 2025-02-05 19:08:05 [2025-02-05 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409735', 'tblTempUsageDetail_20' ) start [2025-02-05 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409735', 'tblTempUsageDetail_20' ) end [2025-02-05 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409735', 'tblTempVendorCDR_20' ) start [2025-02-05 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409735', 'tblTempVendorCDR_20' ) end [2025-02-05 19:08:20] Production.INFO: ProcessCDR(1,14409735,1,1,2) [2025-02-05 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409735', 'tblTempUsageDetail_20' ) start [2025-02-05 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409735', 'tblTempUsageDetail_20' ) end [2025-02-05 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:08:23] Production.INFO: ==15855== Releasing lock... [2025-02-05 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:08:23] Production.INFO: 50.75 MB #Memory Used# [2025-02-05 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:09:05 [end_date_ymd] => 2025-02-05 19:09:05 [RateCDR] => 1 ) [2025-02-05 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:09:05' and `end` < '2025-02-05 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:09:22] Production.INFO: count ==3006 [2025-02-05 19:09:23] Production.ERROR: pbx CDR StartTime 2025-02-05 16:09:05 - End Time 2025-02-05 19:09:05 [2025-02-05 19:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409740', 'tblTempUsageDetail_20' ) start [2025-02-05 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409740', 'tblTempUsageDetail_20' ) end [2025-02-05 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409740', 'tblTempVendorCDR_20' ) start [2025-02-05 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409740', 'tblTempVendorCDR_20' ) end [2025-02-05 19:09:23] Production.INFO: ProcessCDR(1,14409740,1,1,2) [2025-02-05 19:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409740', 'tblTempUsageDetail_20' ) start [2025-02-05 19:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409740', 'tblTempUsageDetail_20' ) end [2025-02-05 19:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:09:28] Production.INFO: ==15932== Releasing lock... [2025-02-05 19:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:09:28] Production.INFO: 50.5 MB #Memory Used# [2025-02-05 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:10:05 [end_date_ymd] => 2025-02-05 19:10:05 [RateCDR] => 1 ) [2025-02-05 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:10:05' and `end` < '2025-02-05 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:10:23] Production.INFO: count ==2998 [2025-02-05 19:10:24] Production.ERROR: pbx CDR StartTime 2025-02-05 16:10:05 - End Time 2025-02-05 19:10:05 [2025-02-05 19:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409745', 'tblTempUsageDetail_20' ) start [2025-02-05 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409745', 'tblTempUsageDetail_20' ) end [2025-02-05 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409745', 'tblTempVendorCDR_20' ) start [2025-02-05 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409745', 'tblTempVendorCDR_20' ) end [2025-02-05 19:10:24] Production.INFO: ProcessCDR(1,14409745,1,1,2) [2025-02-05 19:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409745', 'tblTempUsageDetail_20' ) start [2025-02-05 19:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409745', 'tblTempUsageDetail_20' ) end [2025-02-05 19:10:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:10:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:10:29] Production.INFO: ==16015== Releasing lock... [2025-02-05 19:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:10:29] Production.INFO: 50.25 MB #Memory Used# [2025-02-05 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:11:05 [end_date_ymd] => 2025-02-05 19:11:05 [RateCDR] => 1 ) [2025-02-05 19:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:11:05' and `end` < '2025-02-05 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:11:19] Production.INFO: count ==2967 [2025-02-05 19:11:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:11:05 - End Time 2025-02-05 19:11:05 [2025-02-05 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409751', 'tblTempUsageDetail_20' ) start [2025-02-05 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409751', 'tblTempUsageDetail_20' ) end [2025-02-05 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409751', 'tblTempVendorCDR_20' ) start [2025-02-05 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409751', 'tblTempVendorCDR_20' ) end [2025-02-05 19:11:20] Production.INFO: ProcessCDR(1,14409751,1,1,2) [2025-02-05 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409751', 'tblTempUsageDetail_20' ) start [2025-02-05 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409751', 'tblTempUsageDetail_20' ) end [2025-02-05 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:11:23] Production.INFO: ==16095== Releasing lock... [2025-02-05 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:11:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-05 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:12:05 [end_date_ymd] => 2025-02-05 19:12:05 [RateCDR] => 1 ) [2025-02-05 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:12:05' and `end` < '2025-02-05 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:12:19] Production.INFO: count ==2970 [2025-02-05 19:12:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:12:05 - End Time 2025-02-05 19:12:05 [2025-02-05 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409756', 'tblTempUsageDetail_20' ) start [2025-02-05 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409756', 'tblTempUsageDetail_20' ) end [2025-02-05 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409756', 'tblTempVendorCDR_20' ) start [2025-02-05 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409756', 'tblTempVendorCDR_20' ) end [2025-02-05 19:12:20] Production.INFO: ProcessCDR(1,14409756,1,1,2) [2025-02-05 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409756', 'tblTempUsageDetail_20' ) start [2025-02-05 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409756', 'tblTempUsageDetail_20' ) end [2025-02-05 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:12:24] Production.INFO: ==16252== Releasing lock... [2025-02-05 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:12:24] Production.INFO: 49.75 MB #Memory Used# [2025-02-05 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:13:05 [end_date_ymd] => 2025-02-05 19:13:05 [RateCDR] => 1 ) [2025-02-05 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:13:05' and `end` < '2025-02-05 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:13:20] Production.INFO: count ==2969 [2025-02-05 19:13:21] Production.ERROR: pbx CDR StartTime 2025-02-05 16:13:05 - End Time 2025-02-05 19:13:05 [2025-02-05 19:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409761', 'tblTempUsageDetail_20' ) start [2025-02-05 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409761', 'tblTempUsageDetail_20' ) end [2025-02-05 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409761', 'tblTempVendorCDR_20' ) start [2025-02-05 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409761', 'tblTempVendorCDR_20' ) end [2025-02-05 19:13:21] Production.INFO: ProcessCDR(1,14409761,1,1,2) [2025-02-05 19:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409761', 'tblTempUsageDetail_20' ) start [2025-02-05 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409761', 'tblTempUsageDetail_20' ) end [2025-02-05 19:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:13:25] Production.INFO: ==16336== Releasing lock... [2025-02-05 19:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:13:25] Production.INFO: 49.75 MB #Memory Used# [2025-02-05 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:14:05 [end_date_ymd] => 2025-02-05 19:14:05 [RateCDR] => 1 ) [2025-02-05 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:14:05' and `end` < '2025-02-05 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:14:19] Production.INFO: count ==2972 [2025-02-05 19:14:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:14:05 - End Time 2025-02-05 19:14:05 [2025-02-05 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409766', 'tblTempUsageDetail_20' ) start [2025-02-05 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409766', 'tblTempUsageDetail_20' ) end [2025-02-05 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409766', 'tblTempVendorCDR_20' ) start [2025-02-05 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409766', 'tblTempVendorCDR_20' ) end [2025-02-05 19:14:20] Production.INFO: ProcessCDR(1,14409766,1,1,2) [2025-02-05 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409766', 'tblTempUsageDetail_20' ) start [2025-02-05 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409766', 'tblTempUsageDetail_20' ) end [2025-02-05 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:14:25] Production.INFO: ==16414== Releasing lock... [2025-02-05 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:14:25] Production.INFO: 50 MB #Memory Used# [2025-02-05 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:15:05 [end_date_ymd] => 2025-02-05 19:15:05 [RateCDR] => 1 ) [2025-02-05 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:15:05' and `end` < '2025-02-05 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:15:19] Production.INFO: count ==2956 [2025-02-05 19:15:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:15:05 - End Time 2025-02-05 19:15:05 [2025-02-05 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409771', 'tblTempUsageDetail_20' ) start [2025-02-05 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409771', 'tblTempUsageDetail_20' ) end [2025-02-05 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409771', 'tblTempVendorCDR_20' ) start [2025-02-05 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409771', 'tblTempVendorCDR_20' ) end [2025-02-05 19:15:20] Production.INFO: ProcessCDR(1,14409771,1,1,2) [2025-02-05 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409771', 'tblTempUsageDetail_20' ) start [2025-02-05 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409771', 'tblTempUsageDetail_20' ) end [2025-02-05 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:15:23] Production.INFO: ==16570== Releasing lock... [2025-02-05 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:15:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-05 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:16:05 [end_date_ymd] => 2025-02-05 19:16:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 16:16:05' and `end` < '2025-02-05 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-02-05 19:16:20] Production.INFO: count ==2939 [2025-02-05 19:16:21] Production.ERROR: pbx CDR StartTime 2025-02-05 16:16:05 - End Time 2025-02-05 19:16:05 [2025-02-05 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409776', 'tblTempUsageDetail_20' ) start [2025-02-05 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409776', 'tblTempUsageDetail_20' ) end [2025-02-05 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409776', 'tblTempVendorCDR_20' ) start [2025-02-05 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409776', 'tblTempVendorCDR_20' ) end [2025-02-05 19:16:21] Production.INFO: ProcessCDR(1,14409776,1,1,2) [2025-02-05 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409776', 'tblTempUsageDetail_20' ) start [2025-02-05 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409776', 'tblTempUsageDetail_20' ) end [2025-02-05 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:16:25] Production.INFO: ==16643== Releasing lock... [2025-02-05 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:16:25] Production.INFO: 50 MB #Memory Used# [2025-02-05 19:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:17:04 [end_date_ymd] => 2025-02-05 19:17:04 [RateCDR] => 1 ) [2025-02-05 19:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:17:04' and `end` < '2025-02-05 19:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:17:19] Production.INFO: count ==2909 [2025-02-05 19:17:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:17:04 - End Time 2025-02-05 19:17:04 [2025-02-05 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409781', 'tblTempUsageDetail_20' ) start [2025-02-05 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409781', 'tblTempUsageDetail_20' ) end [2025-02-05 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409781', 'tblTempVendorCDR_20' ) start [2025-02-05 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409781', 'tblTempVendorCDR_20' ) end [2025-02-05 19:17:20] Production.INFO: ProcessCDR(1,14409781,1,1,2) [2025-02-05 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409781', 'tblTempUsageDetail_20' ) start [2025-02-05 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409781', 'tblTempUsageDetail_20' ) end [2025-02-05 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:17:24] Production.INFO: ==16718== Releasing lock... [2025-02-05 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:17:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-05 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:18:06 [end_date_ymd] => 2025-02-05 19:18:06 [RateCDR] => 1 ) [2025-02-05 19:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:18:06' and `end` < '2025-02-05 19:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:18:19] Production.INFO: count ==2907 [2025-02-05 19:18:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:18:06 - End Time 2025-02-05 19:18:06 [2025-02-05 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409786', 'tblTempUsageDetail_20' ) start [2025-02-05 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409786', 'tblTempUsageDetail_20' ) end [2025-02-05 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409786', 'tblTempVendorCDR_20' ) start [2025-02-05 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409786', 'tblTempVendorCDR_20' ) end [2025-02-05 19:18:20] Production.INFO: ProcessCDR(1,14409786,1,1,2) [2025-02-05 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409786', 'tblTempUsageDetail_20' ) start [2025-02-05 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409786', 'tblTempUsageDetail_20' ) end [2025-02-05 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:18:25] Production.INFO: ==16835== Releasing lock... [2025-02-05 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:18:25] Production.INFO: 49.5 MB #Memory Used# [2025-02-05 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:19:05 [end_date_ymd] => 2025-02-05 19:19:05 [RateCDR] => 1 ) [2025-02-05 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:19:05' and `end` < '2025-02-05 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:19:19] Production.INFO: count ==2900 [2025-02-05 19:19:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:19:05 - End Time 2025-02-05 19:19:05 [2025-02-05 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409791', 'tblTempUsageDetail_20' ) start [2025-02-05 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409791', 'tblTempUsageDetail_20' ) end [2025-02-05 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409791', 'tblTempVendorCDR_20' ) start [2025-02-05 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409791', 'tblTempVendorCDR_20' ) end [2025-02-05 19:19:20] Production.INFO: ProcessCDR(1,14409791,1,1,2) [2025-02-05 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409791', 'tblTempUsageDetail_20' ) start [2025-02-05 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409791', 'tblTempUsageDetail_20' ) end [2025-02-05 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:19:23] Production.INFO: ==16907== Releasing lock... [2025-02-05 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:19:23] Production.INFO: 49.5 MB #Memory Used# [2025-02-05 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:20:05 [end_date_ymd] => 2025-02-05 19:20:05 [RateCDR] => 1 ) [2025-02-05 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:20:05' and `end` < '2025-02-05 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:20:19] Production.INFO: count ==2885 [2025-02-05 19:20:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:20:05 - End Time 2025-02-05 19:20:05 [2025-02-05 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409797', 'tblTempUsageDetail_20' ) start [2025-02-05 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409797', 'tblTempUsageDetail_20' ) end [2025-02-05 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409797', 'tblTempVendorCDR_20' ) start [2025-02-05 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409797', 'tblTempVendorCDR_20' ) end [2025-02-05 19:20:20] Production.INFO: ProcessCDR(1,14409797,1,1,2) [2025-02-05 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409797', 'tblTempUsageDetail_20' ) start [2025-02-05 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409797', 'tblTempUsageDetail_20' ) end [2025-02-05 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:20:23] Production.INFO: ==16984== Releasing lock... [2025-02-05 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:20:23] Production.INFO: 49.5 MB #Memory Used# [2025-02-05 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:21:05 [end_date_ymd] => 2025-02-05 19:21:05 [RateCDR] => 1 ) [2025-02-05 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:21:05' and `end` < '2025-02-05 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:21:19] Production.INFO: count ==2811 [2025-02-05 19:21:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:21:05 - End Time 2025-02-05 19:21:05 [2025-02-05 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409802', 'tblTempUsageDetail_20' ) start [2025-02-05 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409802', 'tblTempUsageDetail_20' ) end [2025-02-05 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409802', 'tblTempVendorCDR_20' ) start [2025-02-05 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409802', 'tblTempVendorCDR_20' ) end [2025-02-05 19:21:20] Production.INFO: ProcessCDR(1,14409802,1,1,2) [2025-02-05 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409802', 'tblTempUsageDetail_20' ) start [2025-02-05 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409802', 'tblTempUsageDetail_20' ) end [2025-02-05 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:21:23] Production.INFO: ==17061== Releasing lock... [2025-02-05 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:21:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-05 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:22:05 [end_date_ymd] => 2025-02-05 19:22:05 [RateCDR] => 1 ) [2025-02-05 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:22:05' and `end` < '2025-02-05 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:22:20] Production.INFO: count ==2808 [2025-02-05 19:22:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:22:05 - End Time 2025-02-05 19:22:05 [2025-02-05 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409807', 'tblTempUsageDetail_20' ) start [2025-02-05 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409807', 'tblTempUsageDetail_20' ) end [2025-02-05 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409807', 'tblTempVendorCDR_20' ) start [2025-02-05 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409807', 'tblTempVendorCDR_20' ) end [2025-02-05 19:22:20] Production.INFO: ProcessCDR(1,14409807,1,1,2) [2025-02-05 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409807', 'tblTempUsageDetail_20' ) start [2025-02-05 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409807', 'tblTempUsageDetail_20' ) end [2025-02-05 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:22:24] Production.INFO: ==17137== Releasing lock... [2025-02-05 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:22:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-05 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:23:05 [end_date_ymd] => 2025-02-05 19:23:05 [RateCDR] => 1 ) [2025-02-05 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:23:05' and `end` < '2025-02-05 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:23:19] Production.INFO: count ==2789 [2025-02-05 19:23:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:23:05 - End Time 2025-02-05 19:23:05 [2025-02-05 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409812', 'tblTempUsageDetail_20' ) start [2025-02-05 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409812', 'tblTempUsageDetail_20' ) end [2025-02-05 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409812', 'tblTempVendorCDR_20' ) start [2025-02-05 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409812', 'tblTempVendorCDR_20' ) end [2025-02-05 19:23:20] Production.INFO: ProcessCDR(1,14409812,1,1,2) [2025-02-05 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409812', 'tblTempUsageDetail_20' ) start [2025-02-05 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409812', 'tblTempUsageDetail_20' ) end [2025-02-05 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:23:24] Production.INFO: ==17211== Releasing lock... [2025-02-05 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:23:24] Production.INFO: 49 MB #Memory Used# [2025-02-05 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:24:05 [end_date_ymd] => 2025-02-05 19:24:05 [RateCDR] => 1 ) [2025-02-05 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:24:05' and `end` < '2025-02-05 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:24:21] Production.INFO: count ==2775 [2025-02-05 19:24:22] Production.ERROR: pbx CDR StartTime 2025-02-05 16:24:05 - End Time 2025-02-05 19:24:05 [2025-02-05 19:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409817', 'tblTempUsageDetail_20' ) start [2025-02-05 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409817', 'tblTempUsageDetail_20' ) end [2025-02-05 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409817', 'tblTempVendorCDR_20' ) start [2025-02-05 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409817', 'tblTempVendorCDR_20' ) end [2025-02-05 19:24:22] Production.INFO: ProcessCDR(1,14409817,1,1,2) [2025-02-05 19:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409817', 'tblTempUsageDetail_20' ) start [2025-02-05 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409817', 'tblTempUsageDetail_20' ) end [2025-02-05 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:24:25] Production.INFO: ==17284== Releasing lock... [2025-02-05 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:24:25] Production.INFO: 49.75 MB #Memory Used# [2025-02-05 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:25:05 [end_date_ymd] => 2025-02-05 19:25:05 [RateCDR] => 1 ) [2025-02-05 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:25:05' and `end` < '2025-02-05 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:25:19] Production.INFO: count ==2756 [2025-02-05 19:25:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:25:05 - End Time 2025-02-05 19:25:05 [2025-02-05 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409822', 'tblTempUsageDetail_20' ) start [2025-02-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409822', 'tblTempUsageDetail_20' ) end [2025-02-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409822', 'tblTempVendorCDR_20' ) start [2025-02-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409822', 'tblTempVendorCDR_20' ) end [2025-02-05 19:25:19] Production.INFO: ProcessCDR(1,14409822,1,1,2) [2025-02-05 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409822', 'tblTempUsageDetail_20' ) start [2025-02-05 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409822', 'tblTempUsageDetail_20' ) end [2025-02-05 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:25:22] Production.INFO: ==17360== Releasing lock... [2025-02-05 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:25:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-05 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:26:05 [end_date_ymd] => 2025-02-05 19:26:05 [RateCDR] => 1 ) [2025-02-05 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:26:05' and `end` < '2025-02-05 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:26:18] Production.INFO: count ==2754 [2025-02-05 19:26:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:26:05 - End Time 2025-02-05 19:26:05 [2025-02-05 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409827', 'tblTempUsageDetail_20' ) start [2025-02-05 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409827', 'tblTempUsageDetail_20' ) end [2025-02-05 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409827', 'tblTempVendorCDR_20' ) start [2025-02-05 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409827', 'tblTempVendorCDR_20' ) end [2025-02-05 19:26:19] Production.INFO: ProcessCDR(1,14409827,1,1,2) [2025-02-05 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409827', 'tblTempUsageDetail_20' ) start [2025-02-05 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409827', 'tblTempUsageDetail_20' ) end [2025-02-05 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:26:22] Production.INFO: ==17431== Releasing lock... [2025-02-05 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:26:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-05 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:27:05 [end_date_ymd] => 2025-02-05 19:27:05 [RateCDR] => 1 ) [2025-02-05 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:27:05' and `end` < '2025-02-05 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:27:19] Production.INFO: count ==2732 [2025-02-05 19:27:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:27:05 - End Time 2025-02-05 19:27:05 [2025-02-05 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409832', 'tblTempUsageDetail_20' ) start [2025-02-05 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409832', 'tblTempUsageDetail_20' ) end [2025-02-05 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409832', 'tblTempVendorCDR_20' ) start [2025-02-05 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409832', 'tblTempVendorCDR_20' ) end [2025-02-05 19:27:19] Production.INFO: ProcessCDR(1,14409832,1,1,2) [2025-02-05 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409832', 'tblTempUsageDetail_20' ) start [2025-02-05 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409832', 'tblTempUsageDetail_20' ) end [2025-02-05 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:27:22] Production.INFO: ==17510== Releasing lock... [2025-02-05 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:27:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-05 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:28:05 [end_date_ymd] => 2025-02-05 19:28:05 [RateCDR] => 1 ) [2025-02-05 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:28:05' and `end` < '2025-02-05 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:28:19] Production.INFO: count ==2716 [2025-02-05 19:28:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:28:05 - End Time 2025-02-05 19:28:05 [2025-02-05 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409837', 'tblTempUsageDetail_20' ) start [2025-02-05 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409837', 'tblTempUsageDetail_20' ) end [2025-02-05 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409837', 'tblTempVendorCDR_20' ) start [2025-02-05 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409837', 'tblTempVendorCDR_20' ) end [2025-02-05 19:28:20] Production.INFO: ProcessCDR(1,14409837,1,1,2) [2025-02-05 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409837', 'tblTempUsageDetail_20' ) start [2025-02-05 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409837', 'tblTempUsageDetail_20' ) end [2025-02-05 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:28:24] Production.INFO: ==17585== Releasing lock... [2025-02-05 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:28:24] Production.INFO: 48.5 MB #Memory Used# [2025-02-05 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:29:05 [end_date_ymd] => 2025-02-05 19:29:05 [RateCDR] => 1 ) [2025-02-05 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:29:05' and `end` < '2025-02-05 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:29:19] Production.INFO: count ==2695 [2025-02-05 19:29:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:29:05 - End Time 2025-02-05 19:29:05 [2025-02-05 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409842', 'tblTempUsageDetail_20' ) start [2025-02-05 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409842', 'tblTempUsageDetail_20' ) end [2025-02-05 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409842', 'tblTempVendorCDR_20' ) start [2025-02-05 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409842', 'tblTempVendorCDR_20' ) end [2025-02-05 19:29:19] Production.INFO: ProcessCDR(1,14409842,1,1,2) [2025-02-05 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409842', 'tblTempUsageDetail_20' ) start [2025-02-05 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409842', 'tblTempUsageDetail_20' ) end [2025-02-05 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:29:24] Production.INFO: ==17661== Releasing lock... [2025-02-05 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:29:24] Production.INFO: 48.25 MB #Memory Used# [2025-02-05 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:30:06 [end_date_ymd] => 2025-02-05 19:30:06 [RateCDR] => 1 ) [2025-02-05 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:30:06' and `end` < '2025-02-05 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:30:24] Production.INFO: count ==2682 [2025-02-05 19:30:25] Production.ERROR: pbx CDR StartTime 2025-02-05 16:30:06 - End Time 2025-02-05 19:30:06 [2025-02-05 19:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409848', 'tblTempUsageDetail_20' ) start [2025-02-05 19:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409848', 'tblTempUsageDetail_20' ) end [2025-02-05 19:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409848', 'tblTempVendorCDR_20' ) start [2025-02-05 19:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409848', 'tblTempVendorCDR_20' ) end [2025-02-05 19:30:25] Production.INFO: ProcessCDR(1,14409848,1,1,2) [2025-02-05 19:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409848', 'tblTempUsageDetail_20' ) start [2025-02-05 19:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409848', 'tblTempUsageDetail_20' ) end [2025-02-05 19:30:29] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:30:29] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:30:29] Production.INFO: ==17739== Releasing lock... [2025-02-05 19:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:30:29] Production.INFO: 48.25 MB #Memory Used# [2025-02-05 19:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:31:04 [end_date_ymd] => 2025-02-05 19:31:04 [RateCDR] => 1 ) [2025-02-05 19:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:31:04' and `end` < '2025-02-05 19:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:31:19] Production.INFO: count ==2633 [2025-02-05 19:31:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:31:04 - End Time 2025-02-05 19:31:04 [2025-02-05 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409853', 'tblTempUsageDetail_20' ) start [2025-02-05 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409853', 'tblTempUsageDetail_20' ) end [2025-02-05 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409853', 'tblTempVendorCDR_20' ) start [2025-02-05 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409853', 'tblTempVendorCDR_20' ) end [2025-02-05 19:31:20] Production.INFO: ProcessCDR(1,14409853,1,1,2) [2025-02-05 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409853', 'tblTempUsageDetail_20' ) start [2025-02-05 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409853', 'tblTempUsageDetail_20' ) end [2025-02-05 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:31:25] Production.INFO: ==17818== Releasing lock... [2025-02-05 19:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:31:25] Production.INFO: 47.75 MB #Memory Used# [2025-02-05 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:32:05 [end_date_ymd] => 2025-02-05 19:32:05 [RateCDR] => 1 ) [2025-02-05 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:32:05' and `end` < '2025-02-05 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:32:19] Production.INFO: count ==2625 [2025-02-05 19:32:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:32:05 - End Time 2025-02-05 19:32:05 [2025-02-05 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409858', 'tblTempUsageDetail_20' ) start [2025-02-05 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409858', 'tblTempUsageDetail_20' ) end [2025-02-05 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409858', 'tblTempVendorCDR_20' ) start [2025-02-05 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409858', 'tblTempVendorCDR_20' ) end [2025-02-05 19:32:20] Production.INFO: ProcessCDR(1,14409858,1,1,2) [2025-02-05 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409858', 'tblTempUsageDetail_20' ) start [2025-02-05 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409858', 'tblTempUsageDetail_20' ) end [2025-02-05 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:32:23] Production.INFO: ==17891== Releasing lock... [2025-02-05 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:32:23] Production.INFO: 48 MB #Memory Used# [2025-02-05 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:33:05 [end_date_ymd] => 2025-02-05 19:33:05 [RateCDR] => 1 ) [2025-02-05 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:33:05' and `end` < '2025-02-05 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:33:19] Production.INFO: count ==2621 [2025-02-05 19:33:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:33:05 - End Time 2025-02-05 19:33:05 [2025-02-05 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409863', 'tblTempUsageDetail_20' ) start [2025-02-05 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409863', 'tblTempUsageDetail_20' ) end [2025-02-05 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409863', 'tblTempVendorCDR_20' ) start [2025-02-05 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409863', 'tblTempVendorCDR_20' ) end [2025-02-05 19:33:19] Production.INFO: ProcessCDR(1,14409863,1,1,2) [2025-02-05 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409863', 'tblTempUsageDetail_20' ) start [2025-02-05 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409863', 'tblTempUsageDetail_20' ) end [2025-02-05 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:33:22] Production.INFO: ==17966== Releasing lock... [2025-02-05 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:33:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-05 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:34:05 [end_date_ymd] => 2025-02-05 19:34:05 [RateCDR] => 1 ) [2025-02-05 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:34:05' and `end` < '2025-02-05 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:34:18] Production.INFO: count ==2613 [2025-02-05 19:34:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:34:05 - End Time 2025-02-05 19:34:05 [2025-02-05 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409868', 'tblTempUsageDetail_20' ) start [2025-02-05 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409868', 'tblTempUsageDetail_20' ) end [2025-02-05 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409868', 'tblTempVendorCDR_20' ) start [2025-02-05 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409868', 'tblTempVendorCDR_20' ) end [2025-02-05 19:34:19] Production.INFO: ProcessCDR(1,14409868,1,1,2) [2025-02-05 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409868', 'tblTempUsageDetail_20' ) start [2025-02-05 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409868', 'tblTempUsageDetail_20' ) end [2025-02-05 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:34:22] Production.INFO: ==18082== Releasing lock... [2025-02-05 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:34:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-05 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:35:06 [end_date_ymd] => 2025-02-05 19:35:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 16:35:06' and `end` < '2025-02-05 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-02-05 19:35:19] Production.INFO: count ==2605 [2025-02-05 19:35:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:35:06 - End Time 2025-02-05 19:35:06 [2025-02-05 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409873', 'tblTempUsageDetail_20' ) start [2025-02-05 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409873', 'tblTempUsageDetail_20' ) end [2025-02-05 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409873', 'tblTempVendorCDR_20' ) start [2025-02-05 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409873', 'tblTempVendorCDR_20' ) end [2025-02-05 19:35:20] Production.INFO: ProcessCDR(1,14409873,1,1,2) [2025-02-05 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409873', 'tblTempUsageDetail_20' ) start [2025-02-05 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409873', 'tblTempUsageDetail_20' ) end [2025-02-05 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:35:23] Production.INFO: ==18159== Releasing lock... [2025-02-05 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:35:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-05 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:36:05 [end_date_ymd] => 2025-02-05 19:36:05 [RateCDR] => 1 ) [2025-02-05 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:36:05' and `end` < '2025-02-05 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:36:19] Production.INFO: count ==2598 [2025-02-05 19:36:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:36:05 - End Time 2025-02-05 19:36:05 [2025-02-05 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409878', 'tblTempUsageDetail_20' ) start [2025-02-05 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409878', 'tblTempUsageDetail_20' ) end [2025-02-05 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409878', 'tblTempVendorCDR_20' ) start [2025-02-05 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409878', 'tblTempVendorCDR_20' ) end [2025-02-05 19:36:20] Production.INFO: ProcessCDR(1,14409878,1,1,2) [2025-02-05 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409878', 'tblTempUsageDetail_20' ) start [2025-02-05 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409878', 'tblTempUsageDetail_20' ) end [2025-02-05 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:36:24] Production.INFO: ==18238== Releasing lock... [2025-02-05 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:36:24] Production.INFO: 47.5 MB #Memory Used# [2025-02-05 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:37:05 [end_date_ymd] => 2025-02-05 19:37:05 [RateCDR] => 1 ) [2025-02-05 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:37:05' and `end` < '2025-02-05 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:37:19] Production.INFO: count ==2592 [2025-02-05 19:37:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:37:05 - End Time 2025-02-05 19:37:05 [2025-02-05 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409883', 'tblTempUsageDetail_20' ) start [2025-02-05 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409883', 'tblTempUsageDetail_20' ) end [2025-02-05 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409883', 'tblTempVendorCDR_20' ) start [2025-02-05 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409883', 'tblTempVendorCDR_20' ) end [2025-02-05 19:37:20] Production.INFO: ProcessCDR(1,14409883,1,1,2) [2025-02-05 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409883', 'tblTempUsageDetail_20' ) start [2025-02-05 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409883', 'tblTempUsageDetail_20' ) end [2025-02-05 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:37:23] Production.INFO: ==18316== Releasing lock... [2025-02-05 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:37:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-05 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:38:05 [end_date_ymd] => 2025-02-05 19:38:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 16:38:05' and `end` < '2025-02-05 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-02-05 19:38:18] Production.INFO: count ==2577 [2025-02-05 19:38:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:38:05 - End Time 2025-02-05 19:38:05 [2025-02-05 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409888', 'tblTempUsageDetail_20' ) start [2025-02-05 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409888', 'tblTempUsageDetail_20' ) end [2025-02-05 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409888', 'tblTempVendorCDR_20' ) start [2025-02-05 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409888', 'tblTempVendorCDR_20' ) end [2025-02-05 19:38:19] Production.INFO: ProcessCDR(1,14409888,1,1,2) [2025-02-05 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409888', 'tblTempUsageDetail_20' ) start [2025-02-05 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409888', 'tblTempUsageDetail_20' ) end [2025-02-05 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:38:22] Production.INFO: ==18393== Releasing lock... [2025-02-05 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:38:22] Production.INFO: 47.5 MB #Memory Used# [2025-02-05 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:39:05 [end_date_ymd] => 2025-02-05 19:39:05 [RateCDR] => 1 ) [2025-02-05 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:39:05' and `end` < '2025-02-05 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:39:21] Production.INFO: count ==2566 [2025-02-05 19:39:21] Production.ERROR: pbx CDR StartTime 2025-02-05 16:39:05 - End Time 2025-02-05 19:39:05 [2025-02-05 19:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409892', 'tblTempUsageDetail_20' ) start [2025-02-05 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409892', 'tblTempUsageDetail_20' ) end [2025-02-05 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409892', 'tblTempVendorCDR_20' ) start [2025-02-05 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409892', 'tblTempVendorCDR_20' ) end [2025-02-05 19:39:21] Production.INFO: ProcessCDR(1,14409892,1,1,2) [2025-02-05 19:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409892', 'tblTempUsageDetail_20' ) start [2025-02-05 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409892', 'tblTempUsageDetail_20' ) end [2025-02-05 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:39:24] Production.INFO: ==18475== Releasing lock... [2025-02-05 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:39:24] Production.INFO: 47.25 MB #Memory Used# [2025-02-05 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:40:06 [end_date_ymd] => 2025-02-05 19:40:06 [RateCDR] => 1 ) [2025-02-05 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:40:06' and `end` < '2025-02-05 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:40:20] Production.INFO: count ==2553 [2025-02-05 19:40:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:40:06 - End Time 2025-02-05 19:40:06 [2025-02-05 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409899', 'tblTempUsageDetail_20' ) start [2025-02-05 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409899', 'tblTempUsageDetail_20' ) end [2025-02-05 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409899', 'tblTempVendorCDR_20' ) start [2025-02-05 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409899', 'tblTempVendorCDR_20' ) end [2025-02-05 19:40:20] Production.INFO: ProcessCDR(1,14409899,1,1,2) [2025-02-05 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409899', 'tblTempUsageDetail_20' ) start [2025-02-05 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409899', 'tblTempUsageDetail_20' ) end [2025-02-05 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:40:23] Production.INFO: ==18554== Releasing lock... [2025-02-05 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:40:23] Production.INFO: 47.25 MB #Memory Used# [2025-02-05 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:41:05 [end_date_ymd] => 2025-02-05 19:41:05 [RateCDR] => 1 ) [2025-02-05 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:41:05' and `end` < '2025-02-05 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-02-05 19:41:18] Production.INFO: count ==2516 [2025-02-05 19:41:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:41:05 - End Time 2025-02-05 19:41:05 [2025-02-05 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409904', 'tblTempUsageDetail_20' ) start [2025-02-05 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409904', 'tblTempUsageDetail_20' ) end [2025-02-05 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409904', 'tblTempVendorCDR_20' ) start [2025-02-05 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409904', 'tblTempVendorCDR_20' ) end [2025-02-05 19:41:19] Production.INFO: ProcessCDR(1,14409904,1,1,2) [2025-02-05 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409904', 'tblTempUsageDetail_20' ) start [2025-02-05 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409904', 'tblTempUsageDetail_20' ) end [2025-02-05 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:41:22] Production.INFO: ==18639== Releasing lock... [2025-02-05 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:41:22] Production.INFO: 47 MB #Memory Used# [2025-02-05 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:42:06 [end_date_ymd] => 2025-02-05 19:42:06 [RateCDR] => 1 ) [2025-02-05 19:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:42:06' and `end` < '2025-02-05 19:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:42:19] Production.INFO: count ==2497 [2025-02-05 19:42:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:42:06 - End Time 2025-02-05 19:42:06 [2025-02-05 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409909', 'tblTempUsageDetail_20' ) start [2025-02-05 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409909', 'tblTempUsageDetail_20' ) end [2025-02-05 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409909', 'tblTempVendorCDR_20' ) start [2025-02-05 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409909', 'tblTempVendorCDR_20' ) end [2025-02-05 19:42:20] Production.INFO: ProcessCDR(1,14409909,1,1,2) [2025-02-05 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409909', 'tblTempUsageDetail_20' ) start [2025-02-05 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409909', 'tblTempUsageDetail_20' ) end [2025-02-05 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:42:23] Production.INFO: ==18716== Releasing lock... [2025-02-05 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:42:23] Production.INFO: 46.75 MB #Memory Used# [2025-02-05 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:43:05 [end_date_ymd] => 2025-02-05 19:43:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 16:43:05' and `end` < '2025-02-05 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-02-05 19:43:19] Production.INFO: count ==2441 [2025-02-05 19:43:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:43:05 - End Time 2025-02-05 19:43:05 [2025-02-05 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409914', 'tblTempUsageDetail_20' ) start [2025-02-05 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409914', 'tblTempUsageDetail_20' ) end [2025-02-05 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409914', 'tblTempVendorCDR_20' ) start [2025-02-05 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409914', 'tblTempVendorCDR_20' ) end [2025-02-05 19:43:20] Production.INFO: ProcessCDR(1,14409914,1,1,2) [2025-02-05 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409914', 'tblTempUsageDetail_20' ) start [2025-02-05 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409914', 'tblTempUsageDetail_20' ) end [2025-02-05 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:43:24] Production.INFO: ==18796== Releasing lock... [2025-02-05 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:43:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-05 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:44:05 [end_date_ymd] => 2025-02-05 19:44:05 [RateCDR] => 1 ) [2025-02-05 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:44:05' and `end` < '2025-02-05 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:44:19] Production.INFO: count ==2422 [2025-02-05 19:44:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:44:05 - End Time 2025-02-05 19:44:05 [2025-02-05 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409919', 'tblTempUsageDetail_20' ) start [2025-02-05 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409919', 'tblTempUsageDetail_20' ) end [2025-02-05 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409919', 'tblTempVendorCDR_20' ) start [2025-02-05 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409919', 'tblTempVendorCDR_20' ) end [2025-02-05 19:44:20] Production.INFO: ProcessCDR(1,14409919,1,1,2) [2025-02-05 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409919', 'tblTempUsageDetail_20' ) start [2025-02-05 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409919', 'tblTempUsageDetail_20' ) end [2025-02-05 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:44:23] Production.INFO: ==18886== Releasing lock... [2025-02-05 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:44:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-05 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:45:05 [end_date_ymd] => 2025-02-05 19:45:05 [RateCDR] => 1 ) [2025-02-05 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:45:05' and `end` < '2025-02-05 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:45:18] Production.INFO: count ==2405 [2025-02-05 19:45:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:45:05 - End Time 2025-02-05 19:45:05 [2025-02-05 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409924', 'tblTempUsageDetail_20' ) start [2025-02-05 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409924', 'tblTempUsageDetail_20' ) end [2025-02-05 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409924', 'tblTempVendorCDR_20' ) start [2025-02-05 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409924', 'tblTempVendorCDR_20' ) end [2025-02-05 19:45:19] Production.INFO: ProcessCDR(1,14409924,1,1,2) [2025-02-05 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409924', 'tblTempUsageDetail_20' ) start [2025-02-05 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409924', 'tblTempUsageDetail_20' ) end [2025-02-05 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:45:22] Production.INFO: ==18967== Releasing lock... [2025-02-05 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:45:22] Production.INFO: 46 MB #Memory Used# [2025-02-05 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:46:05 [end_date_ymd] => 2025-02-05 19:46:05 [RateCDR] => 1 ) [2025-02-05 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:46:05' and `end` < '2025-02-05 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:46:19] Production.INFO: count ==2384 [2025-02-05 19:46:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:46:05 - End Time 2025-02-05 19:46:05 [2025-02-05 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409929', 'tblTempUsageDetail_20' ) start [2025-02-05 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409929', 'tblTempUsageDetail_20' ) end [2025-02-05 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409929', 'tblTempVendorCDR_20' ) start [2025-02-05 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409929', 'tblTempVendorCDR_20' ) end [2025-02-05 19:46:19] Production.INFO: ProcessCDR(1,14409929,1,1,2) [2025-02-05 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409929', 'tblTempUsageDetail_20' ) start [2025-02-05 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409929', 'tblTempUsageDetail_20' ) end [2025-02-05 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:46:23] Production.INFO: ==19050== Releasing lock... [2025-02-05 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:46:23] Production.INFO: 46 MB #Memory Used# [2025-02-05 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:47:05 [end_date_ymd] => 2025-02-05 19:47:05 [RateCDR] => 1 ) [2025-02-05 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:47:05' and `end` < '2025-02-05 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:47:19] Production.INFO: count ==2395 [2025-02-05 19:47:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:47:05 - End Time 2025-02-05 19:47:05 [2025-02-05 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409934', 'tblTempUsageDetail_20' ) start [2025-02-05 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409934', 'tblTempUsageDetail_20' ) end [2025-02-05 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409934', 'tblTempVendorCDR_20' ) start [2025-02-05 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409934', 'tblTempVendorCDR_20' ) end [2025-02-05 19:47:19] Production.INFO: ProcessCDR(1,14409934,1,1,2) [2025-02-05 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409934', 'tblTempUsageDetail_20' ) start [2025-02-05 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409934', 'tblTempUsageDetail_20' ) end [2025-02-05 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:47:24] Production.INFO: ==19129== Releasing lock... [2025-02-05 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:47:24] Production.INFO: 46 MB #Memory Used# [2025-02-05 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:48:05 [end_date_ymd] => 2025-02-05 19:48:05 [RateCDR] => 1 ) [2025-02-05 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:48:05' and `end` < '2025-02-05 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:48:19] Production.INFO: count ==2381 [2025-02-05 19:48:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:48:05 - End Time 2025-02-05 19:48:05 [2025-02-05 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409939', 'tblTempUsageDetail_20' ) start [2025-02-05 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409939', 'tblTempUsageDetail_20' ) end [2025-02-05 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409939', 'tblTempVendorCDR_20' ) start [2025-02-05 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409939', 'tblTempVendorCDR_20' ) end [2025-02-05 19:48:19] Production.INFO: ProcessCDR(1,14409939,1,1,2) [2025-02-05 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409939', 'tblTempUsageDetail_20' ) start [2025-02-05 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409939', 'tblTempUsageDetail_20' ) end [2025-02-05 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:48:22] Production.INFO: ==19213== Releasing lock... [2025-02-05 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:48:22] Production.INFO: 46 MB #Memory Used# [2025-02-05 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:49:06 [end_date_ymd] => 2025-02-05 19:49:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 16:49:06' and `end` < '2025-02-05 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-02-05 19:49:20] Production.INFO: count ==2370 [2025-02-05 19:49:20] Production.ERROR: pbx CDR StartTime 2025-02-05 16:49:06 - End Time 2025-02-05 19:49:06 [2025-02-05 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409944', 'tblTempUsageDetail_20' ) start [2025-02-05 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409944', 'tblTempUsageDetail_20' ) end [2025-02-05 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409944', 'tblTempVendorCDR_20' ) start [2025-02-05 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409944', 'tblTempVendorCDR_20' ) end [2025-02-05 19:49:20] Production.INFO: ProcessCDR(1,14409944,1,1,2) [2025-02-05 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409944', 'tblTempUsageDetail_20' ) start [2025-02-05 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409944', 'tblTempUsageDetail_20' ) end [2025-02-05 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:49:24] Production.INFO: ==19333== Releasing lock... [2025-02-05 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:49:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-05 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:50:05 [end_date_ymd] => 2025-02-05 19:50:05 [RateCDR] => 1 ) [2025-02-05 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:50:05' and `end` < '2025-02-05 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:50:19] Production.INFO: count ==2359 [2025-02-05 19:50:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:50:05 - End Time 2025-02-05 19:50:05 [2025-02-05 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409950', 'tblTempUsageDetail_20' ) start [2025-02-05 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409950', 'tblTempUsageDetail_20' ) end [2025-02-05 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409950', 'tblTempVendorCDR_20' ) start [2025-02-05 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409950', 'tblTempVendorCDR_20' ) end [2025-02-05 19:50:19] Production.INFO: ProcessCDR(1,14409950,1,1,2) [2025-02-05 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409950', 'tblTempUsageDetail_20' ) start [2025-02-05 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409950', 'tblTempUsageDetail_20' ) end [2025-02-05 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:50:22] Production.INFO: ==19417== Releasing lock... [2025-02-05 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:50:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-05 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:51:05 [end_date_ymd] => 2025-02-05 19:51:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 16:51:05' and `end` < '2025-02-05 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-02-05 19:51:23] Production.INFO: count ==2319 [2025-02-05 19:51:23] Production.ERROR: pbx CDR StartTime 2025-02-05 16:51:05 - End Time 2025-02-05 19:51:05 [2025-02-05 19:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409955', 'tblTempUsageDetail_20' ) start [2025-02-05 19:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409955', 'tblTempUsageDetail_20' ) end [2025-02-05 19:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409955', 'tblTempVendorCDR_20' ) start [2025-02-05 19:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409955', 'tblTempVendorCDR_20' ) end [2025-02-05 19:51:23] Production.INFO: ProcessCDR(1,14409955,1,1,2) [2025-02-05 19:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409955', 'tblTempUsageDetail_20' ) start [2025-02-05 19:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409955', 'tblTempUsageDetail_20' ) end [2025-02-05 19:51:28] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:51:28] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:51:28] Production.INFO: ==19498== Releasing lock... [2025-02-05 19:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:51:28] Production.INFO: 45.5 MB #Memory Used# [2025-02-05 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:52:05 [end_date_ymd] => 2025-02-05 19:52:05 [RateCDR] => 1 ) [2025-02-05 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:52:05' and `end` < '2025-02-05 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:52:19] Production.INFO: count ==2309 [2025-02-05 19:52:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:52:05 - End Time 2025-02-05 19:52:05 [2025-02-05 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409960', 'tblTempUsageDetail_20' ) start [2025-02-05 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409960', 'tblTempUsageDetail_20' ) end [2025-02-05 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409960', 'tblTempVendorCDR_20' ) start [2025-02-05 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409960', 'tblTempVendorCDR_20' ) end [2025-02-05 19:52:19] Production.INFO: ProcessCDR(1,14409960,1,1,2) [2025-02-05 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409960', 'tblTempUsageDetail_20' ) start [2025-02-05 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409960', 'tblTempUsageDetail_20' ) end [2025-02-05 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:52:22] Production.INFO: ==19578== Releasing lock... [2025-02-05 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:52:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-05 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:53:05 [end_date_ymd] => 2025-02-05 19:53:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 16:53:05' and `end` < '2025-02-05 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-02-05 19:53:19] Production.INFO: count ==2296 [2025-02-05 19:53:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:53:05 - End Time 2025-02-05 19:53:05 [2025-02-05 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409965', 'tblTempUsageDetail_20' ) start [2025-02-05 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409965', 'tblTempUsageDetail_20' ) end [2025-02-05 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409965', 'tblTempVendorCDR_20' ) start [2025-02-05 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409965', 'tblTempVendorCDR_20' ) end [2025-02-05 19:53:19] Production.INFO: ProcessCDR(1,14409965,1,1,2) [2025-02-05 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409965', 'tblTempUsageDetail_20' ) start [2025-02-05 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409965', 'tblTempUsageDetail_20' ) end [2025-02-05 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:53:23] Production.INFO: ==19656== Releasing lock... [2025-02-05 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:53:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-05 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:54:05 [end_date_ymd] => 2025-02-05 19:54:05 [RateCDR] => 1 ) [2025-02-05 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:54:05' and `end` < '2025-02-05 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:54:18] Production.INFO: count ==2276 [2025-02-05 19:54:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:54:05 - End Time 2025-02-05 19:54:05 [2025-02-05 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409970', 'tblTempUsageDetail_20' ) start [2025-02-05 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409970', 'tblTempUsageDetail_20' ) end [2025-02-05 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409970', 'tblTempVendorCDR_20' ) start [2025-02-05 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409970', 'tblTempVendorCDR_20' ) end [2025-02-05 19:54:19] Production.INFO: ProcessCDR(1,14409970,1,1,2) [2025-02-05 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409970', 'tblTempUsageDetail_20' ) start [2025-02-05 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409970', 'tblTempUsageDetail_20' ) end [2025-02-05 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:54:23] Production.INFO: ==19736== Releasing lock... [2025-02-05 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:54:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-05 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:55:05 [end_date_ymd] => 2025-02-05 19:55:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 16:55:05' and `end` < '2025-02-05 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-02-05 19:55:21] Production.INFO: count ==2271 [2025-02-05 19:55:21] Production.ERROR: pbx CDR StartTime 2025-02-05 16:55:05 - End Time 2025-02-05 19:55:05 [2025-02-05 19:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409975', 'tblTempUsageDetail_20' ) start [2025-02-05 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409975', 'tblTempUsageDetail_20' ) end [2025-02-05 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409975', 'tblTempVendorCDR_20' ) start [2025-02-05 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409975', 'tblTempVendorCDR_20' ) end [2025-02-05 19:55:21] Production.INFO: ProcessCDR(1,14409975,1,1,2) [2025-02-05 19:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409975', 'tblTempUsageDetail_20' ) start [2025-02-05 19:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409975', 'tblTempUsageDetail_20' ) end [2025-02-05 19:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:55:26] Production.INFO: ==19817== Releasing lock... [2025-02-05 19:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:55:26] Production.INFO: 45 MB #Memory Used# [2025-02-05 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:56:05 [end_date_ymd] => 2025-02-05 19:56:05 [RateCDR] => 1 ) [2025-02-05 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:56:05' and `end` < '2025-02-05 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:56:19] Production.INFO: count ==2269 [2025-02-05 19:56:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:56:05 - End Time 2025-02-05 19:56:05 [2025-02-05 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409980', 'tblTempUsageDetail_20' ) start [2025-02-05 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409980', 'tblTempUsageDetail_20' ) end [2025-02-05 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409980', 'tblTempVendorCDR_20' ) start [2025-02-05 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409980', 'tblTempVendorCDR_20' ) end [2025-02-05 19:56:19] Production.INFO: ProcessCDR(1,14409980,1,1,2) [2025-02-05 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409980', 'tblTempUsageDetail_20' ) start [2025-02-05 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409980', 'tblTempUsageDetail_20' ) end [2025-02-05 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:56:23] Production.INFO: ==19896== Releasing lock... [2025-02-05 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:56:23] Production.INFO: 45 MB #Memory Used# [2025-02-05 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:57:05 [end_date_ymd] => 2025-02-05 19:57:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 16:57:05' and `end` < '2025-02-05 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-02-05 19:57:19] Production.INFO: count ==2260 [2025-02-05 19:57:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:57:05 - End Time 2025-02-05 19:57:05 [2025-02-05 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409985', 'tblTempUsageDetail_20' ) start [2025-02-05 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409985', 'tblTempUsageDetail_20' ) end [2025-02-05 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409985', 'tblTempVendorCDR_20' ) start [2025-02-05 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409985', 'tblTempVendorCDR_20' ) end [2025-02-05 19:57:19] Production.INFO: ProcessCDR(1,14409985,1,1,2) [2025-02-05 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409985', 'tblTempUsageDetail_20' ) start [2025-02-05 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409985', 'tblTempUsageDetail_20' ) end [2025-02-05 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:57:23] Production.INFO: ==19970== Releasing lock... [2025-02-05 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:57:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-05 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:58:05 [end_date_ymd] => 2025-02-05 19:58:05 [RateCDR] => 1 ) [2025-02-05 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:58:05' and `end` < '2025-02-05 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:58:19] Production.INFO: count ==2230 [2025-02-05 19:58:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:58:05 - End Time 2025-02-05 19:58:05 [2025-02-05 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409990', 'tblTempUsageDetail_20' ) start [2025-02-05 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409990', 'tblTempUsageDetail_20' ) end [2025-02-05 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409990', 'tblTempVendorCDR_20' ) start [2025-02-05 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409990', 'tblTempVendorCDR_20' ) end [2025-02-05 19:58:19] Production.INFO: ProcessCDR(1,14409990,1,1,2) [2025-02-05 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409990', 'tblTempUsageDetail_20' ) start [2025-02-05 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409990', 'tblTempUsageDetail_20' ) end [2025-02-05 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:58:22] Production.INFO: ==20051== Releasing lock... [2025-02-05 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:58:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-05 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 16:59:05 [end_date_ymd] => 2025-02-05 19:59:05 [RateCDR] => 1 ) [2025-02-05 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 16:59:05' and `end` < '2025-02-05 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 19:59:19] Production.INFO: count ==2220 [2025-02-05 19:59:19] Production.ERROR: pbx CDR StartTime 2025-02-05 16:59:05 - End Time 2025-02-05 19:59:05 [2025-02-05 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409995', 'tblTempUsageDetail_20' ) start [2025-02-05 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14409995', 'tblTempUsageDetail_20' ) end [2025-02-05 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409995', 'tblTempVendorCDR_20' ) start [2025-02-05 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14409995', 'tblTempVendorCDR_20' ) end [2025-02-05 19:59:19] Production.INFO: ProcessCDR(1,14409995,1,1,2) [2025-02-05 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14409995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14409995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14409995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14409995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409995', 'tblTempUsageDetail_20' ) start [2025-02-05 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14409995', 'tblTempUsageDetail_20' ) end [2025-02-05 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 19:59:22] Production.INFO: ==20128== Releasing lock... [2025-02-05 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 19:59:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-05 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:00:06 [end_date_ymd] => 2025-02-05 20:00:06 [RateCDR] => 1 ) [2025-02-05 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:00:06' and `end` < '2025-02-05 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:00:19] Production.INFO: count ==2204 [2025-02-05 20:00:20] Production.ERROR: pbx CDR StartTime 2025-02-05 17:00:06 - End Time 2025-02-05 20:00:06 [2025-02-05 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410000', 'tblTempUsageDetail_20' ) start [2025-02-05 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410000', 'tblTempUsageDetail_20' ) end [2025-02-05 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410000', 'tblTempVendorCDR_20' ) start [2025-02-05 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410000', 'tblTempVendorCDR_20' ) end [2025-02-05 20:00:20] Production.INFO: ProcessCDR(1,14410000,1,1,2) [2025-02-05 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410000', 'tblTempUsageDetail_20' ) start [2025-02-05 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410000', 'tblTempUsageDetail_20' ) end [2025-02-05 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:00:23] Production.INFO: ==20213== Releasing lock... [2025-02-05 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:00:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-05 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:01:05 [end_date_ymd] => 2025-02-05 20:01:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 17:01:05' and `end` < '2025-02-05 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-02-05 20:01:20] Production.INFO: count ==2123 [2025-02-05 20:01:20] Production.ERROR: pbx CDR StartTime 2025-02-05 17:01:05 - End Time 2025-02-05 20:01:05 [2025-02-05 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410006', 'tblTempUsageDetail_20' ) start [2025-02-05 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410006', 'tblTempUsageDetail_20' ) end [2025-02-05 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410006', 'tblTempVendorCDR_20' ) start [2025-02-05 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410006', 'tblTempVendorCDR_20' ) end [2025-02-05 20:01:20] Production.INFO: ProcessCDR(1,14410006,1,1,2) [2025-02-05 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410006', 'tblTempUsageDetail_20' ) start [2025-02-05 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410006', 'tblTempUsageDetail_20' ) end [2025-02-05 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:01:24] Production.INFO: ==20344== Releasing lock... [2025-02-05 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:01:24] Production.INFO: 44 MB #Memory Used# [2025-02-05 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:02:05 [end_date_ymd] => 2025-02-05 20:02:05 [RateCDR] => 1 ) [2025-02-05 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:02:05' and `end` < '2025-02-05 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:02:18] Production.INFO: count ==2104 [2025-02-05 20:02:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:02:05 - End Time 2025-02-05 20:02:05 [2025-02-05 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410011', 'tblTempUsageDetail_20' ) start [2025-02-05 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410011', 'tblTempUsageDetail_20' ) end [2025-02-05 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410011', 'tblTempVendorCDR_20' ) start [2025-02-05 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410011', 'tblTempVendorCDR_20' ) end [2025-02-05 20:02:19] Production.INFO: ProcessCDR(1,14410011,1,1,2) [2025-02-05 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410011', 'tblTempUsageDetail_20' ) start [2025-02-05 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410011', 'tblTempUsageDetail_20' ) end [2025-02-05 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:02:24] Production.INFO: ==20420== Releasing lock... [2025-02-05 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:02:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-05 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:03:05 [end_date_ymd] => 2025-02-05 20:03:05 [RateCDR] => 1 ) [2025-02-05 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:03:05' and `end` < '2025-02-05 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:03:19] Production.INFO: count ==2089 [2025-02-05 20:03:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:03:05 - End Time 2025-02-05 20:03:05 [2025-02-05 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410016', 'tblTempUsageDetail_20' ) start [2025-02-05 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410016', 'tblTempUsageDetail_20' ) end [2025-02-05 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410016', 'tblTempVendorCDR_20' ) start [2025-02-05 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410016', 'tblTempVendorCDR_20' ) end [2025-02-05 20:03:19] Production.INFO: ProcessCDR(1,14410016,1,1,2) [2025-02-05 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410016', 'tblTempUsageDetail_20' ) start [2025-02-05 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410016', 'tblTempUsageDetail_20' ) end [2025-02-05 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:03:23] Production.INFO: ==20499== Releasing lock... [2025-02-05 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:03:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-05 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:04:05 [end_date_ymd] => 2025-02-05 20:04:05 [RateCDR] => 1 ) [2025-02-05 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:04:05' and `end` < '2025-02-05 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:04:18] Production.INFO: count ==2086 [2025-02-05 20:04:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:04:05 - End Time 2025-02-05 20:04:05 [2025-02-05 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410021', 'tblTempUsageDetail_20' ) start [2025-02-05 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410021', 'tblTempUsageDetail_20' ) end [2025-02-05 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410021', 'tblTempVendorCDR_20' ) start [2025-02-05 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410021', 'tblTempVendorCDR_20' ) end [2025-02-05 20:04:19] Production.INFO: ProcessCDR(1,14410021,1,1,2) [2025-02-05 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410021', 'tblTempUsageDetail_20' ) start [2025-02-05 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410021', 'tblTempUsageDetail_20' ) end [2025-02-05 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:04:22] Production.INFO: ==20576== Releasing lock... [2025-02-05 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:04:22] Production.INFO: 44 MB #Memory Used# [2025-02-05 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:05:05 [end_date_ymd] => 2025-02-05 20:05:05 [RateCDR] => 1 ) [2025-02-05 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:05:05' and `end` < '2025-02-05 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:05:20] Production.INFO: count ==2083 [2025-02-05 20:05:20] Production.ERROR: pbx CDR StartTime 2025-02-05 17:05:05 - End Time 2025-02-05 20:05:05 [2025-02-05 20:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410026', 'tblTempUsageDetail_20' ) start [2025-02-05 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410026', 'tblTempUsageDetail_20' ) end [2025-02-05 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410026', 'tblTempVendorCDR_20' ) start [2025-02-05 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410026', 'tblTempVendorCDR_20' ) end [2025-02-05 20:05:20] Production.INFO: ProcessCDR(1,14410026,1,1,2) [2025-02-05 20:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410026', 'tblTempUsageDetail_20' ) start [2025-02-05 20:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410026', 'tblTempUsageDetail_20' ) end [2025-02-05 20:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:05:25] Production.INFO: ==20694== Releasing lock... [2025-02-05 20:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:05:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-05 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:06:06 [end_date_ymd] => 2025-02-05 20:06:06 [RateCDR] => 1 ) [2025-02-05 20:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:06:06' and `end` < '2025-02-05 20:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:06:19] Production.INFO: count ==2086 [2025-02-05 20:06:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:06:06 - End Time 2025-02-05 20:06:06 [2025-02-05 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410031', 'tblTempUsageDetail_20' ) start [2025-02-05 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410031', 'tblTempUsageDetail_20' ) end [2025-02-05 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410031', 'tblTempVendorCDR_20' ) start [2025-02-05 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410031', 'tblTempVendorCDR_20' ) end [2025-02-05 20:06:20] Production.INFO: ProcessCDR(1,14410031,1,1,2) [2025-02-05 20:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410031', 'tblTempUsageDetail_20' ) start [2025-02-05 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410031', 'tblTempUsageDetail_20' ) end [2025-02-05 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:06:23] Production.INFO: ==20776== Releasing lock... [2025-02-05 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:06:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-05 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:07:05 [end_date_ymd] => 2025-02-05 20:07:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 17:07:05' and `end` < '2025-02-05 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-02-05 20:07:19] Production.INFO: count ==2081 [2025-02-05 20:07:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:07:05 - End Time 2025-02-05 20:07:05 [2025-02-05 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410036', 'tblTempUsageDetail_20' ) start [2025-02-05 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410036', 'tblTempUsageDetail_20' ) end [2025-02-05 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410036', 'tblTempVendorCDR_20' ) start [2025-02-05 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410036', 'tblTempVendorCDR_20' ) end [2025-02-05 20:07:19] Production.INFO: ProcessCDR(1,14410036,1,1,2) [2025-02-05 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410036', 'tblTempUsageDetail_20' ) start [2025-02-05 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410036', 'tblTempUsageDetail_20' ) end [2025-02-05 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:07:22] Production.INFO: ==20854== Releasing lock... [2025-02-05 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:07:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-05 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:08:05 [end_date_ymd] => 2025-02-05 20:08:05 [RateCDR] => 1 ) [2025-02-05 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:08:05' and `end` < '2025-02-05 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:08:20] Production.INFO: count ==2082 [2025-02-05 20:08:21] Production.ERROR: pbx CDR StartTime 2025-02-05 17:08:05 - End Time 2025-02-05 20:08:05 [2025-02-05 20:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410041', 'tblTempUsageDetail_20' ) start [2025-02-05 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410041', 'tblTempUsageDetail_20' ) end [2025-02-05 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410041', 'tblTempVendorCDR_20' ) start [2025-02-05 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410041', 'tblTempVendorCDR_20' ) end [2025-02-05 20:08:21] Production.INFO: ProcessCDR(1,14410041,1,1,2) [2025-02-05 20:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410041', 'tblTempUsageDetail_20' ) start [2025-02-05 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410041', 'tblTempUsageDetail_20' ) end [2025-02-05 20:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:08:25] Production.INFO: ==20932== Releasing lock... [2025-02-05 20:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:08:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-05 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:09:05 [end_date_ymd] => 2025-02-05 20:09:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 17:09:05' and `end` < '2025-02-05 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-02-05 20:09:18] Production.INFO: count ==2073 [2025-02-05 20:09:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:09:05 - End Time 2025-02-05 20:09:05 [2025-02-05 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410046', 'tblTempUsageDetail_20' ) start [2025-02-05 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410046', 'tblTempUsageDetail_20' ) end [2025-02-05 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410046', 'tblTempVendorCDR_20' ) start [2025-02-05 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410046', 'tblTempVendorCDR_20' ) end [2025-02-05 20:09:19] Production.INFO: ProcessCDR(1,14410046,1,1,2) [2025-02-05 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410046', 'tblTempUsageDetail_20' ) start [2025-02-05 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410046', 'tblTempUsageDetail_20' ) end [2025-02-05 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:09:22] Production.INFO: ==21008== Releasing lock... [2025-02-05 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:09:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-05 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:10:06 [end_date_ymd] => 2025-02-05 20:10:06 [RateCDR] => 1 ) [2025-02-05 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:10:06' and `end` < '2025-02-05 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:10:23] Production.INFO: count ==2097 [2025-02-05 20:10:24] Production.ERROR: pbx CDR StartTime 2025-02-05 17:10:06 - End Time 2025-02-05 20:10:06 [2025-02-05 20:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410051', 'tblTempUsageDetail_20' ) start [2025-02-05 20:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410051', 'tblTempUsageDetail_20' ) end [2025-02-05 20:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410051', 'tblTempVendorCDR_20' ) start [2025-02-05 20:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410051', 'tblTempVendorCDR_20' ) end [2025-02-05 20:10:24] Production.INFO: ProcessCDR(1,14410051,1,1,2) [2025-02-05 20:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410051', 'tblTempUsageDetail_20' ) start [2025-02-05 20:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410051', 'tblTempUsageDetail_20' ) end [2025-02-05 20:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:10:27] Production.INFO: ==21100== Releasing lock... [2025-02-05 20:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:10:27] Production.INFO: 44 MB #Memory Used# [2025-02-05 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:11:05 [end_date_ymd] => 2025-02-05 20:11:05 [RateCDR] => 1 ) [2025-02-05 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:11:05' and `end` < '2025-02-05 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:11:18] Production.INFO: count ==2041 [2025-02-05 20:11:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:11:05 - End Time 2025-02-05 20:11:05 [2025-02-05 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410057', 'tblTempUsageDetail_20' ) start [2025-02-05 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410057', 'tblTempUsageDetail_20' ) end [2025-02-05 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410057', 'tblTempVendorCDR_20' ) start [2025-02-05 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410057', 'tblTempVendorCDR_20' ) end [2025-02-05 20:11:19] Production.INFO: ProcessCDR(1,14410057,1,1,2) [2025-02-05 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410057', 'tblTempUsageDetail_20' ) start [2025-02-05 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410057', 'tblTempUsageDetail_20' ) end [2025-02-05 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:11:22] Production.INFO: ==21181== Releasing lock... [2025-02-05 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:11:22] Production.INFO: 43 MB #Memory Used# [2025-02-05 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:12:05 [end_date_ymd] => 2025-02-05 20:12:05 [RateCDR] => 1 ) [2025-02-05 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:12:05' and `end` < '2025-02-05 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:12:18] Production.INFO: count ==2026 [2025-02-05 20:12:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:12:05 - End Time 2025-02-05 20:12:05 [2025-02-05 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410062', 'tblTempUsageDetail_20' ) start [2025-02-05 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410062', 'tblTempUsageDetail_20' ) end [2025-02-05 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410062', 'tblTempVendorCDR_20' ) start [2025-02-05 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410062', 'tblTempVendorCDR_20' ) end [2025-02-05 20:12:19] Production.INFO: ProcessCDR(1,14410062,1,1,2) [2025-02-05 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410062', 'tblTempUsageDetail_20' ) start [2025-02-05 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410062', 'tblTempUsageDetail_20' ) end [2025-02-05 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:12:22] Production.INFO: ==21258== Releasing lock... [2025-02-05 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:12:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-05 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:13:05 [end_date_ymd] => 2025-02-05 20:13:05 [RateCDR] => 1 ) [2025-02-05 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:13:05' and `end` < '2025-02-05 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:13:19] Production.INFO: count ==2035 [2025-02-05 20:13:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:13:05 - End Time 2025-02-05 20:13:05 [2025-02-05 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410067', 'tblTempUsageDetail_20' ) start [2025-02-05 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410067', 'tblTempUsageDetail_20' ) end [2025-02-05 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410067', 'tblTempVendorCDR_20' ) start [2025-02-05 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410067', 'tblTempVendorCDR_20' ) end [2025-02-05 20:13:19] Production.INFO: ProcessCDR(1,14410067,1,1,2) [2025-02-05 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410067', 'tblTempUsageDetail_20' ) start [2025-02-05 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410067', 'tblTempUsageDetail_20' ) end [2025-02-05 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:13:22] Production.INFO: ==21338== Releasing lock... [2025-02-05 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:13:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-05 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:14:05 [end_date_ymd] => 2025-02-05 20:14:05 [RateCDR] => 1 ) [2025-02-05 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:14:05' and `end` < '2025-02-05 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:14:19] Production.INFO: count ==2031 [2025-02-05 20:14:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:14:05 - End Time 2025-02-05 20:14:05 [2025-02-05 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410072', 'tblTempUsageDetail_20' ) start [2025-02-05 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410072', 'tblTempUsageDetail_20' ) end [2025-02-05 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410072', 'tblTempVendorCDR_20' ) start [2025-02-05 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410072', 'tblTempVendorCDR_20' ) end [2025-02-05 20:14:19] Production.INFO: ProcessCDR(1,14410072,1,1,2) [2025-02-05 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410072', 'tblTempUsageDetail_20' ) start [2025-02-05 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410072', 'tblTempUsageDetail_20' ) end [2025-02-05 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:14:24] Production.INFO: ==21416== Releasing lock... [2025-02-05 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:14:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-05 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:15:05 [end_date_ymd] => 2025-02-05 20:15:05 [RateCDR] => 1 ) [2025-02-05 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:15:05' and `end` < '2025-02-05 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:15:19] Production.INFO: count ==2024 [2025-02-05 20:15:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:15:05 - End Time 2025-02-05 20:15:05 [2025-02-05 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410077', 'tblTempUsageDetail_20' ) start [2025-02-05 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410077', 'tblTempUsageDetail_20' ) end [2025-02-05 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410077', 'tblTempVendorCDR_20' ) start [2025-02-05 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410077', 'tblTempVendorCDR_20' ) end [2025-02-05 20:15:19] Production.INFO: ProcessCDR(1,14410077,1,1,2) [2025-02-05 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410077', 'tblTempUsageDetail_20' ) start [2025-02-05 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410077', 'tblTempUsageDetail_20' ) end [2025-02-05 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:15:22] Production.INFO: ==21494== Releasing lock... [2025-02-05 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:15:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-05 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:16:05 [end_date_ymd] => 2025-02-05 20:16:05 [RateCDR] => 1 ) [2025-02-05 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:16:05' and `end` < '2025-02-05 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:16:19] Production.INFO: count ==2024 [2025-02-05 20:16:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:16:05 - End Time 2025-02-05 20:16:05 [2025-02-05 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410082', 'tblTempUsageDetail_20' ) start [2025-02-05 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410082', 'tblTempUsageDetail_20' ) end [2025-02-05 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410082', 'tblTempVendorCDR_20' ) start [2025-02-05 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410082', 'tblTempVendorCDR_20' ) end [2025-02-05 20:16:19] Production.INFO: ProcessCDR(1,14410082,1,1,2) [2025-02-05 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410082', 'tblTempUsageDetail_20' ) start [2025-02-05 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410082', 'tblTempUsageDetail_20' ) end [2025-02-05 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:16:24] Production.INFO: ==21572== Releasing lock... [2025-02-05 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:16:24] Production.INFO: 43 MB #Memory Used# [2025-02-05 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:17:05 [end_date_ymd] => 2025-02-05 20:17:05 [RateCDR] => 1 ) [2025-02-05 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:17:05' and `end` < '2025-02-05 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:17:18] Production.INFO: count ==2027 [2025-02-05 20:17:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:17:05 - End Time 2025-02-05 20:17:05 [2025-02-05 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410087', 'tblTempUsageDetail_20' ) start [2025-02-05 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410087', 'tblTempUsageDetail_20' ) end [2025-02-05 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410087', 'tblTempVendorCDR_20' ) start [2025-02-05 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410087', 'tblTempVendorCDR_20' ) end [2025-02-05 20:17:19] Production.INFO: ProcessCDR(1,14410087,1,1,2) [2025-02-05 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410087', 'tblTempUsageDetail_20' ) start [2025-02-05 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410087', 'tblTempUsageDetail_20' ) end [2025-02-05 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:17:23] Production.INFO: ==21653== Releasing lock... [2025-02-05 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:17:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-05 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:18:05 [end_date_ymd] => 2025-02-05 20:18:05 [RateCDR] => 1 ) [2025-02-05 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:18:05' and `end` < '2025-02-05 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:18:19] Production.INFO: count ==2030 [2025-02-05 20:18:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:18:05 - End Time 2025-02-05 20:18:05 [2025-02-05 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410092', 'tblTempUsageDetail_20' ) start [2025-02-05 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410092', 'tblTempUsageDetail_20' ) end [2025-02-05 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410092', 'tblTempVendorCDR_20' ) start [2025-02-05 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410092', 'tblTempVendorCDR_20' ) end [2025-02-05 20:18:19] Production.INFO: ProcessCDR(1,14410092,1,1,2) [2025-02-05 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410092', 'tblTempUsageDetail_20' ) start [2025-02-05 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410092', 'tblTempUsageDetail_20' ) end [2025-02-05 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:18:24] Production.INFO: ==21741== Releasing lock... [2025-02-05 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:18:24] Production.INFO: 43 MB #Memory Used# [2025-02-05 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:19:05 [end_date_ymd] => 2025-02-05 20:19:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 17:19:05' and `end` < '2025-02-05 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-02-05 20:19:18] Production.INFO: count ==2036 [2025-02-05 20:19:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:19:05 - End Time 2025-02-05 20:19:05 [2025-02-05 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410097', 'tblTempUsageDetail_20' ) start [2025-02-05 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410097', 'tblTempUsageDetail_20' ) end [2025-02-05 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410097', 'tblTempVendorCDR_20' ) start [2025-02-05 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410097', 'tblTempVendorCDR_20' ) end [2025-02-05 20:19:19] Production.INFO: ProcessCDR(1,14410097,1,1,2) [2025-02-05 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410097', 'tblTempUsageDetail_20' ) start [2025-02-05 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410097', 'tblTempUsageDetail_20' ) end [2025-02-05 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:19:22] Production.INFO: ==21817== Releasing lock... [2025-02-05 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:19:22] Production.INFO: 43 MB #Memory Used# [2025-02-05 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:20:06 [end_date_ymd] => 2025-02-05 20:20:06 [RateCDR] => 1 ) [2025-02-05 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:20:06' and `end` < '2025-02-05 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:20:20] Production.INFO: count ==2036 [2025-02-05 20:20:20] Production.ERROR: pbx CDR StartTime 2025-02-05 17:20:06 - End Time 2025-02-05 20:20:06 [2025-02-05 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410102', 'tblTempUsageDetail_20' ) start [2025-02-05 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410102', 'tblTempUsageDetail_20' ) end [2025-02-05 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410102', 'tblTempVendorCDR_20' ) start [2025-02-05 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410102', 'tblTempVendorCDR_20' ) end [2025-02-05 20:20:20] Production.INFO: ProcessCDR(1,14410102,1,1,2) [2025-02-05 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410102', 'tblTempUsageDetail_20' ) start [2025-02-05 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410102', 'tblTempUsageDetail_20' ) end [2025-02-05 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:20:24] Production.INFO: ==21933== Releasing lock... [2025-02-05 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:20:24] Production.INFO: 43 MB #Memory Used# [2025-02-05 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:21:05 [end_date_ymd] => 2025-02-05 20:21:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 17:21:05' and `end` < '2025-02-05 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:21:18] Production.INFO: count ==1993 [2025-02-05 20:21:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:21:05 - End Time 2025-02-05 20:21:05 [2025-02-05 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410108', 'tblTempUsageDetail_20' ) start [2025-02-05 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410108', 'tblTempUsageDetail_20' ) end [2025-02-05 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410108', 'tblTempVendorCDR_20' ) start [2025-02-05 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410108', 'tblTempVendorCDR_20' ) end [2025-02-05 20:21:19] Production.INFO: ProcessCDR(1,14410108,1,1,2) [2025-02-05 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410108', 'tblTempUsageDetail_20' ) start [2025-02-05 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410108', 'tblTempUsageDetail_20' ) end [2025-02-05 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:21:24] Production.INFO: ==22011== Releasing lock... [2025-02-05 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:21:24] Production.INFO: 43 MB #Memory Used# [2025-02-05 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:22:05 [end_date_ymd] => 2025-02-05 20:22:05 [RateCDR] => 1 ) [2025-02-05 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:22:05' and `end` < '2025-02-05 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:22:19] Production.INFO: count ==1994 [2025-02-05 20:22:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:22:05 - End Time 2025-02-05 20:22:05 [2025-02-05 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410113', 'tblTempUsageDetail_20' ) start [2025-02-05 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410113', 'tblTempUsageDetail_20' ) end [2025-02-05 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410113', 'tblTempVendorCDR_20' ) start [2025-02-05 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410113', 'tblTempVendorCDR_20' ) end [2025-02-05 20:22:19] Production.INFO: ProcessCDR(1,14410113,1,1,2) [2025-02-05 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410113', 'tblTempUsageDetail_20' ) start [2025-02-05 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410113', 'tblTempUsageDetail_20' ) end [2025-02-05 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:22:24] Production.INFO: ==22086== Releasing lock... [2025-02-05 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:22:24] Production.INFO: 43 MB #Memory Used# [2025-02-05 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:23:05 [end_date_ymd] => 2025-02-05 20:23:05 [RateCDR] => 1 ) [2025-02-05 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:23:05' and `end` < '2025-02-05 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:23:19] Production.INFO: count ==1993 [2025-02-05 20:23:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:23:05 - End Time 2025-02-05 20:23:05 [2025-02-05 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410118', 'tblTempUsageDetail_20' ) start [2025-02-05 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410118', 'tblTempUsageDetail_20' ) end [2025-02-05 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410118', 'tblTempVendorCDR_20' ) start [2025-02-05 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410118', 'tblTempVendorCDR_20' ) end [2025-02-05 20:23:19] Production.INFO: ProcessCDR(1,14410118,1,1,2) [2025-02-05 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410118', 'tblTempUsageDetail_20' ) start [2025-02-05 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410118', 'tblTempUsageDetail_20' ) end [2025-02-05 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:23:24] Production.INFO: ==22161== Releasing lock... [2025-02-05 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:23:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-05 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:24:05 [end_date_ymd] => 2025-02-05 20:24:05 [RateCDR] => 1 ) [2025-02-05 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:24:05' and `end` < '2025-02-05 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:24:18] Production.INFO: count ==1991 [2025-02-05 20:24:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:24:05 - End Time 2025-02-05 20:24:05 [2025-02-05 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410123', 'tblTempUsageDetail_20' ) start [2025-02-05 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410123', 'tblTempUsageDetail_20' ) end [2025-02-05 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410123', 'tblTempVendorCDR_20' ) start [2025-02-05 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410123', 'tblTempVendorCDR_20' ) end [2025-02-05 20:24:19] Production.INFO: ProcessCDR(1,14410123,1,1,2) [2025-02-05 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410123', 'tblTempUsageDetail_20' ) start [2025-02-05 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410123', 'tblTempUsageDetail_20' ) end [2025-02-05 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:24:22] Production.INFO: ==22233== Releasing lock... [2025-02-05 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:24:22] Production.INFO: 43 MB #Memory Used# [2025-02-05 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:25:05 [end_date_ymd] => 2025-02-05 20:25:05 [RateCDR] => 1 ) [2025-02-05 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:25:05' and `end` < '2025-02-05 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:25:18] Production.INFO: count ==1983 [2025-02-05 20:25:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:25:05 - End Time 2025-02-05 20:25:05 [2025-02-05 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410128', 'tblTempUsageDetail_20' ) start [2025-02-05 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410128', 'tblTempUsageDetail_20' ) end [2025-02-05 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410128', 'tblTempVendorCDR_20' ) start [2025-02-05 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410128', 'tblTempVendorCDR_20' ) end [2025-02-05 20:25:19] Production.INFO: ProcessCDR(1,14410128,1,1,2) [2025-02-05 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410128', 'tblTempUsageDetail_20' ) start [2025-02-05 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410128', 'tblTempUsageDetail_20' ) end [2025-02-05 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:25:23] Production.INFO: ==22306== Releasing lock... [2025-02-05 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:25:23] Production.INFO: 43 MB #Memory Used# [2025-02-05 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:26:05 [end_date_ymd] => 2025-02-05 20:26:05 [RateCDR] => 1 ) [2025-02-05 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:26:05' and `end` < '2025-02-05 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:26:19] Production.INFO: count ==1981 [2025-02-05 20:26:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:26:05 - End Time 2025-02-05 20:26:05 [2025-02-05 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410133', 'tblTempUsageDetail_20' ) start [2025-02-05 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410133', 'tblTempUsageDetail_20' ) end [2025-02-05 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410133', 'tblTempVendorCDR_20' ) start [2025-02-05 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410133', 'tblTempVendorCDR_20' ) end [2025-02-05 20:26:19] Production.INFO: ProcessCDR(1,14410133,1,1,2) [2025-02-05 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410133', 'tblTempUsageDetail_20' ) start [2025-02-05 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410133', 'tblTempUsageDetail_20' ) end [2025-02-05 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:26:23] Production.INFO: ==22380== Releasing lock... [2025-02-05 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:26:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-05 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:27:05 [end_date_ymd] => 2025-02-05 20:27:05 [RateCDR] => 1 ) [2025-02-05 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:27:05' and `end` < '2025-02-05 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:27:19] Production.INFO: count ==1976 [2025-02-05 20:27:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:27:05 - End Time 2025-02-05 20:27:05 [2025-02-05 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410138', 'tblTempUsageDetail_20' ) start [2025-02-05 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410138', 'tblTempUsageDetail_20' ) end [2025-02-05 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410138', 'tblTempVendorCDR_20' ) start [2025-02-05 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410138', 'tblTempVendorCDR_20' ) end [2025-02-05 20:27:19] Production.INFO: ProcessCDR(1,14410138,1,1,2) [2025-02-05 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410138', 'tblTempUsageDetail_20' ) start [2025-02-05 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410138', 'tblTempUsageDetail_20' ) end [2025-02-05 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:27:23] Production.INFO: ==22450== Releasing lock... [2025-02-05 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:27:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-05 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:28:05 [end_date_ymd] => 2025-02-05 20:28:05 [RateCDR] => 1 ) [2025-02-05 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:28:05' and `end` < '2025-02-05 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:28:18] Production.INFO: count ==1980 [2025-02-05 20:28:18] Production.ERROR: pbx CDR StartTime 2025-02-05 17:28:05 - End Time 2025-02-05 20:28:05 [2025-02-05 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410143', 'tblTempUsageDetail_20' ) start [2025-02-05 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410143', 'tblTempUsageDetail_20' ) end [2025-02-05 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410143', 'tblTempVendorCDR_20' ) start [2025-02-05 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410143', 'tblTempVendorCDR_20' ) end [2025-02-05 20:28:18] Production.INFO: ProcessCDR(1,14410143,1,1,2) [2025-02-05 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410143', 'tblTempUsageDetail_20' ) start [2025-02-05 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410143', 'tblTempUsageDetail_20' ) end [2025-02-05 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:28:22] Production.INFO: ==22521== Releasing lock... [2025-02-05 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:28:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-05 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:29:05 [end_date_ymd] => 2025-02-05 20:29:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 17:29:05' and `end` < '2025-02-05 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-02-05 20:29:19] Production.INFO: count ==1969 [2025-02-05 20:29:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:29:05 - End Time 2025-02-05 20:29:05 [2025-02-05 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410148', 'tblTempUsageDetail_20' ) start [2025-02-05 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410148', 'tblTempUsageDetail_20' ) end [2025-02-05 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410148', 'tblTempVendorCDR_20' ) start [2025-02-05 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410148', 'tblTempVendorCDR_20' ) end [2025-02-05 20:29:19] Production.INFO: ProcessCDR(1,14410148,1,1,2) [2025-02-05 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410148', 'tblTempUsageDetail_20' ) start [2025-02-05 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410148', 'tblTempUsageDetail_20' ) end [2025-02-05 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:29:22] Production.INFO: ==22598== Releasing lock... [2025-02-05 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:29:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-05 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:30:06 [end_date_ymd] => 2025-02-05 20:30:06 [RateCDR] => 1 ) [2025-02-05 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:30:06' and `end` < '2025-02-05 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:30:20] Production.INFO: count ==1971 [2025-02-05 20:30:20] Production.ERROR: pbx CDR StartTime 2025-02-05 17:30:06 - End Time 2025-02-05 20:30:06 [2025-02-05 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410154', 'tblTempUsageDetail_20' ) start [2025-02-05 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410154', 'tblTempUsageDetail_20' ) end [2025-02-05 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410154', 'tblTempVendorCDR_20' ) start [2025-02-05 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410154', 'tblTempVendorCDR_20' ) end [2025-02-05 20:30:20] Production.INFO: ProcessCDR(1,14410154,1,1,2) [2025-02-05 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410154', 'tblTempUsageDetail_20' ) start [2025-02-05 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410154', 'tblTempUsageDetail_20' ) end [2025-02-05 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:30:23] Production.INFO: ==22672== Releasing lock... [2025-02-05 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:30:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-05 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:31:05 [end_date_ymd] => 2025-02-05 20:31:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 17:31:05' and `end` < '2025-02-05 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-02-05 20:31:18] Production.INFO: count ==1939 [2025-02-05 20:31:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:31:05 - End Time 2025-02-05 20:31:05 [2025-02-05 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410159', 'tblTempUsageDetail_20' ) start [2025-02-05 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410159', 'tblTempUsageDetail_20' ) end [2025-02-05 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410159', 'tblTempVendorCDR_20' ) start [2025-02-05 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410159', 'tblTempVendorCDR_20' ) end [2025-02-05 20:31:19] Production.INFO: ProcessCDR(1,14410159,1,1,2) [2025-02-05 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410159', 'tblTempUsageDetail_20' ) start [2025-02-05 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410159', 'tblTempUsageDetail_20' ) end [2025-02-05 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:31:22] Production.INFO: ==22746== Releasing lock... [2025-02-05 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:31:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-05 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:32:05 [end_date_ymd] => 2025-02-05 20:32:05 [RateCDR] => 1 ) [2025-02-05 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:32:05' and `end` < '2025-02-05 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:32:19] Production.INFO: count ==1930 [2025-02-05 20:32:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:32:05 - End Time 2025-02-05 20:32:05 [2025-02-05 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410164', 'tblTempUsageDetail_20' ) start [2025-02-05 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410164', 'tblTempUsageDetail_20' ) end [2025-02-05 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410164', 'tblTempVendorCDR_20' ) start [2025-02-05 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410164', 'tblTempVendorCDR_20' ) end [2025-02-05 20:32:19] Production.INFO: ProcessCDR(1,14410164,1,1,2) [2025-02-05 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410164', 'tblTempUsageDetail_20' ) start [2025-02-05 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410164', 'tblTempUsageDetail_20' ) end [2025-02-05 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:32:22] Production.INFO: ==22817== Releasing lock... [2025-02-05 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:32:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-05 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:33:05 [end_date_ymd] => 2025-02-05 20:33:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 17:33:05' and `end` < '2025-02-05 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-02-05 20:33:18] Production.INFO: count ==1916 [2025-02-05 20:33:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:33:05 - End Time 2025-02-05 20:33:05 [2025-02-05 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410169', 'tblTempUsageDetail_20' ) start [2025-02-05 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410169', 'tblTempUsageDetail_20' ) end [2025-02-05 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410169', 'tblTempVendorCDR_20' ) start [2025-02-05 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410169', 'tblTempVendorCDR_20' ) end [2025-02-05 20:33:19] Production.INFO: ProcessCDR(1,14410169,1,1,2) [2025-02-05 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410169', 'tblTempUsageDetail_20' ) start [2025-02-05 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410169', 'tblTempUsageDetail_20' ) end [2025-02-05 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:33:22] Production.INFO: ==22888== Releasing lock... [2025-02-05 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:33:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-05 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:34:05 [end_date_ymd] => 2025-02-05 20:34:05 [RateCDR] => 1 ) [2025-02-05 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:34:05' and `end` < '2025-02-05 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:34:19] Production.INFO: count ==1893 [2025-02-05 20:34:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:34:05 - End Time 2025-02-05 20:34:05 [2025-02-05 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410174', 'tblTempUsageDetail_20' ) start [2025-02-05 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410174', 'tblTempUsageDetail_20' ) end [2025-02-05 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410174', 'tblTempVendorCDR_20' ) start [2025-02-05 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410174', 'tblTempVendorCDR_20' ) end [2025-02-05 20:34:19] Production.INFO: ProcessCDR(1,14410174,1,1,2) [2025-02-05 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410174', 'tblTempUsageDetail_20' ) start [2025-02-05 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410174', 'tblTempUsageDetail_20' ) end [2025-02-05 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:34:22] Production.INFO: ==22961== Releasing lock... [2025-02-05 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:34:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-05 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:35:05 [end_date_ymd] => 2025-02-05 20:35:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 17:35:05' and `end` < '2025-02-05 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-02-05 20:35:18] Production.INFO: count ==1887 [2025-02-05 20:35:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:35:05 - End Time 2025-02-05 20:35:05 [2025-02-05 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410179', 'tblTempUsageDetail_20' ) start [2025-02-05 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410179', 'tblTempUsageDetail_20' ) end [2025-02-05 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410179', 'tblTempVendorCDR_20' ) start [2025-02-05 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410179', 'tblTempVendorCDR_20' ) end [2025-02-05 20:35:19] Production.INFO: ProcessCDR(1,14410179,1,1,2) [2025-02-05 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410179', 'tblTempUsageDetail_20' ) start [2025-02-05 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410179', 'tblTempUsageDetail_20' ) end [2025-02-05 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:35:22] Production.INFO: ==23036== Releasing lock... [2025-02-05 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:35:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-05 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:36:05 [end_date_ymd] => 2025-02-05 20:36:05 [RateCDR] => 1 ) [2025-02-05 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:36:05' and `end` < '2025-02-05 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:36:18] Production.INFO: count ==1890 [2025-02-05 20:36:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:36:05 - End Time 2025-02-05 20:36:05 [2025-02-05 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410184', 'tblTempUsageDetail_20' ) start [2025-02-05 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410184', 'tblTempUsageDetail_20' ) end [2025-02-05 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410184', 'tblTempVendorCDR_20' ) start [2025-02-05 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410184', 'tblTempVendorCDR_20' ) end [2025-02-05 20:36:19] Production.INFO: ProcessCDR(1,14410184,1,1,2) [2025-02-05 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410184', 'tblTempUsageDetail_20' ) start [2025-02-05 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410184', 'tblTempUsageDetail_20' ) end [2025-02-05 20:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:36:24] Production.INFO: ==23151== Releasing lock... [2025-02-05 20:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:36:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-05 20:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:37:04 [end_date_ymd] => 2025-02-05 20:37:04 [RateCDR] => 1 ) [2025-02-05 20:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:37:04' and `end` < '2025-02-05 20:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:37:19] Production.INFO: count ==1890 [2025-02-05 20:37:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:37:04 - End Time 2025-02-05 20:37:04 [2025-02-05 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410189', 'tblTempUsageDetail_20' ) start [2025-02-05 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410189', 'tblTempUsageDetail_20' ) end [2025-02-05 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410189', 'tblTempVendorCDR_20' ) start [2025-02-05 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410189', 'tblTempVendorCDR_20' ) end [2025-02-05 20:37:19] Production.INFO: ProcessCDR(1,14410189,1,1,2) [2025-02-05 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410189', 'tblTempUsageDetail_20' ) start [2025-02-05 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410189', 'tblTempUsageDetail_20' ) end [2025-02-05 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:37:22] Production.INFO: ==23226== Releasing lock... [2025-02-05 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:37:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-05 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:38:05 [end_date_ymd] => 2025-02-05 20:38:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 17:38:05' and `end` < '2025-02-05 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-02-05 20:38:18] Production.INFO: count ==1890 [2025-02-05 20:38:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:38:05 - End Time 2025-02-05 20:38:05 [2025-02-05 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410194', 'tblTempUsageDetail_20' ) start [2025-02-05 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410194', 'tblTempUsageDetail_20' ) end [2025-02-05 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410194', 'tblTempVendorCDR_20' ) start [2025-02-05 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410194', 'tblTempVendorCDR_20' ) end [2025-02-05 20:38:19] Production.INFO: ProcessCDR(1,14410194,1,1,2) [2025-02-05 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410194', 'tblTempUsageDetail_20' ) start [2025-02-05 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410194', 'tblTempUsageDetail_20' ) end [2025-02-05 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:38:22] Production.INFO: ==23304== Releasing lock... [2025-02-05 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:38:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-05 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:39:05 [end_date_ymd] => 2025-02-05 20:39:05 [RateCDR] => 1 ) [2025-02-05 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:39:05' and `end` < '2025-02-05 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:39:18] Production.INFO: count ==1885 [2025-02-05 20:39:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:39:05 - End Time 2025-02-05 20:39:05 [2025-02-05 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410199', 'tblTempUsageDetail_20' ) start [2025-02-05 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410199', 'tblTempUsageDetail_20' ) end [2025-02-05 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410199', 'tblTempVendorCDR_20' ) start [2025-02-05 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410199', 'tblTempVendorCDR_20' ) end [2025-02-05 20:39:19] Production.INFO: ProcessCDR(1,14410199,1,1,2) [2025-02-05 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410199', 'tblTempUsageDetail_20' ) start [2025-02-05 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410199', 'tblTempUsageDetail_20' ) end [2025-02-05 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:39:22] Production.INFO: ==23379== Releasing lock... [2025-02-05 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:39:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-05 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:40:06 [end_date_ymd] => 2025-02-05 20:40:06 [RateCDR] => 1 ) [2025-02-05 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:40:06' and `end` < '2025-02-05 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:40:19] Production.INFO: count ==1886 [2025-02-05 20:40:20] Production.ERROR: pbx CDR StartTime 2025-02-05 17:40:06 - End Time 2025-02-05 20:40:06 [2025-02-05 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410205', 'tblTempUsageDetail_20' ) start [2025-02-05 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410205', 'tblTempUsageDetail_20' ) end [2025-02-05 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410205', 'tblTempVendorCDR_20' ) start [2025-02-05 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410205', 'tblTempVendorCDR_20' ) end [2025-02-05 20:40:20] Production.INFO: ProcessCDR(1,14410205,1,1,2) [2025-02-05 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410205', 'tblTempUsageDetail_20' ) start [2025-02-05 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410205', 'tblTempUsageDetail_20' ) end [2025-02-05 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:40:23] Production.INFO: ==23455== Releasing lock... [2025-02-05 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:40:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-05 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:41:05 [end_date_ymd] => 2025-02-05 20:41:05 [RateCDR] => 1 ) [2025-02-05 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:41:05' and `end` < '2025-02-05 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:41:18] Production.INFO: count ==1865 [2025-02-05 20:41:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:41:05 - End Time 2025-02-05 20:41:05 [2025-02-05 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410210', 'tblTempUsageDetail_20' ) start [2025-02-05 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410210', 'tblTempUsageDetail_20' ) end [2025-02-05 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410210', 'tblTempVendorCDR_20' ) start [2025-02-05 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410210', 'tblTempVendorCDR_20' ) end [2025-02-05 20:41:19] Production.INFO: ProcessCDR(1,14410210,1,1,2) [2025-02-05 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410210', 'tblTempUsageDetail_20' ) start [2025-02-05 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410210', 'tblTempUsageDetail_20' ) end [2025-02-05 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:41:23] Production.INFO: ==23531== Releasing lock... [2025-02-05 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:41:23] Production.INFO: 42 MB #Memory Used# [2025-02-05 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:42:05 [end_date_ymd] => 2025-02-05 20:42:05 [RateCDR] => 1 ) [2025-02-05 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:42:05' and `end` < '2025-02-05 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:42:18] Production.INFO: count ==1861 [2025-02-05 20:42:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:42:05 - End Time 2025-02-05 20:42:05 [2025-02-05 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410215', 'tblTempUsageDetail_20' ) start [2025-02-05 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410215', 'tblTempUsageDetail_20' ) end [2025-02-05 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410215', 'tblTempVendorCDR_20' ) start [2025-02-05 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410215', 'tblTempVendorCDR_20' ) end [2025-02-05 20:42:19] Production.INFO: ProcessCDR(1,14410215,1,1,2) [2025-02-05 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410215', 'tblTempUsageDetail_20' ) start [2025-02-05 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410215', 'tblTempUsageDetail_20' ) end [2025-02-05 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:42:22] Production.INFO: ==23603== Releasing lock... [2025-02-05 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:42:22] Production.INFO: 42 MB #Memory Used# [2025-02-05 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:43:05 [end_date_ymd] => 2025-02-05 20:43:05 [RateCDR] => 1 ) [2025-02-05 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:43:05' and `end` < '2025-02-05 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:43:19] Production.INFO: count ==1866 [2025-02-05 20:43:20] Production.ERROR: pbx CDR StartTime 2025-02-05 17:43:05 - End Time 2025-02-05 20:43:05 [2025-02-05 20:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410220', 'tblTempUsageDetail_20' ) start [2025-02-05 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410220', 'tblTempUsageDetail_20' ) end [2025-02-05 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410220', 'tblTempVendorCDR_20' ) start [2025-02-05 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410220', 'tblTempVendorCDR_20' ) end [2025-02-05 20:43:20] Production.INFO: ProcessCDR(1,14410220,1,1,2) [2025-02-05 20:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410220', 'tblTempUsageDetail_20' ) start [2025-02-05 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410220', 'tblTempUsageDetail_20' ) end [2025-02-05 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:43:23] Production.INFO: ==23676== Releasing lock... [2025-02-05 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:43:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-05 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:44:05 [end_date_ymd] => 2025-02-05 20:44:05 [RateCDR] => 1 ) [2025-02-05 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:44:05' and `end` < '2025-02-05 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:44:19] Production.INFO: count ==1859 [2025-02-05 20:44:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:44:05 - End Time 2025-02-05 20:44:05 [2025-02-05 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410225', 'tblTempUsageDetail_20' ) start [2025-02-05 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410225', 'tblTempUsageDetail_20' ) end [2025-02-05 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410225', 'tblTempVendorCDR_20' ) start [2025-02-05 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410225', 'tblTempVendorCDR_20' ) end [2025-02-05 20:44:19] Production.INFO: ProcessCDR(1,14410225,1,1,2) [2025-02-05 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410225', 'tblTempUsageDetail_20' ) start [2025-02-05 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410225', 'tblTempUsageDetail_20' ) end [2025-02-05 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:44:23] Production.INFO: ==23752== Releasing lock... [2025-02-05 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:44:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-05 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:45:05 [end_date_ymd] => 2025-02-05 20:45:05 [RateCDR] => 1 ) [2025-02-05 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:45:05' and `end` < '2025-02-05 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:45:18] Production.INFO: count ==1853 [2025-02-05 20:45:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:45:05 - End Time 2025-02-05 20:45:05 [2025-02-05 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410230', 'tblTempUsageDetail_20' ) start [2025-02-05 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410230', 'tblTempUsageDetail_20' ) end [2025-02-05 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410230', 'tblTempVendorCDR_20' ) start [2025-02-05 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410230', 'tblTempVendorCDR_20' ) end [2025-02-05 20:45:19] Production.INFO: ProcessCDR(1,14410230,1,1,2) [2025-02-05 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410230', 'tblTempUsageDetail_20' ) start [2025-02-05 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410230', 'tblTempUsageDetail_20' ) end [2025-02-05 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:45:22] Production.INFO: ==23825== Releasing lock... [2025-02-05 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:45:22] Production.INFO: 42 MB #Memory Used# [2025-02-05 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:46:05 [end_date_ymd] => 2025-02-05 20:46:05 [RateCDR] => 1 ) [2025-02-05 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:46:05' and `end` < '2025-02-05 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:46:19] Production.INFO: count ==1849 [2025-02-05 20:46:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:46:05 - End Time 2025-02-05 20:46:05 [2025-02-05 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410235', 'tblTempUsageDetail_20' ) start [2025-02-05 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410235', 'tblTempUsageDetail_20' ) end [2025-02-05 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410235', 'tblTempVendorCDR_20' ) start [2025-02-05 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410235', 'tblTempVendorCDR_20' ) end [2025-02-05 20:46:19] Production.INFO: ProcessCDR(1,14410235,1,1,2) [2025-02-05 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410235', 'tblTempUsageDetail_20' ) start [2025-02-05 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410235', 'tblTempUsageDetail_20' ) end [2025-02-05 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:46:22] Production.INFO: ==23896== Releasing lock... [2025-02-05 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:46:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-05 20:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:47:04 [end_date_ymd] => 2025-02-05 20:47:04 [RateCDR] => 1 ) [2025-02-05 20:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:47:04' and `end` < '2025-02-05 20:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:47:18] Production.INFO: count ==1843 [2025-02-05 20:47:18] Production.ERROR: pbx CDR StartTime 2025-02-05 17:47:04 - End Time 2025-02-05 20:47:04 [2025-02-05 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410240', 'tblTempUsageDetail_20' ) start [2025-02-05 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410240', 'tblTempUsageDetail_20' ) end [2025-02-05 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410240', 'tblTempVendorCDR_20' ) start [2025-02-05 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410240', 'tblTempVendorCDR_20' ) end [2025-02-05 20:47:18] Production.INFO: ProcessCDR(1,14410240,1,1,2) [2025-02-05 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410240', 'tblTempUsageDetail_20' ) start [2025-02-05 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410240', 'tblTempUsageDetail_20' ) end [2025-02-05 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:47:21] Production.INFO: ==23970== Releasing lock... [2025-02-05 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:47:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-05 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:48:05 [end_date_ymd] => 2025-02-05 20:48:05 [RateCDR] => 1 ) [2025-02-05 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:48:05' and `end` < '2025-02-05 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:48:18] Production.INFO: count ==1839 [2025-02-05 20:48:18] Production.ERROR: pbx CDR StartTime 2025-02-05 17:48:05 - End Time 2025-02-05 20:48:05 [2025-02-05 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410245', 'tblTempUsageDetail_20' ) start [2025-02-05 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410245', 'tblTempUsageDetail_20' ) end [2025-02-05 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410245', 'tblTempVendorCDR_20' ) start [2025-02-05 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410245', 'tblTempVendorCDR_20' ) end [2025-02-05 20:48:18] Production.INFO: ProcessCDR(1,14410245,1,1,2) [2025-02-05 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410245', 'tblTempUsageDetail_20' ) start [2025-02-05 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410245', 'tblTempUsageDetail_20' ) end [2025-02-05 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:48:23] Production.INFO: ==24047== Releasing lock... [2025-02-05 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:48:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-05 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:49:05 [end_date_ymd] => 2025-02-05 20:49:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 17:49:05' and `end` < '2025-02-05 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-02-05 20:49:19] Production.INFO: count ==1831 [2025-02-05 20:49:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:49:05 - End Time 2025-02-05 20:49:05 [2025-02-05 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410250', 'tblTempUsageDetail_20' ) start [2025-02-05 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410250', 'tblTempUsageDetail_20' ) end [2025-02-05 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410250', 'tblTempVendorCDR_20' ) start [2025-02-05 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410250', 'tblTempVendorCDR_20' ) end [2025-02-05 20:49:19] Production.INFO: ProcessCDR(1,14410250,1,1,2) [2025-02-05 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410250', 'tblTempUsageDetail_20' ) start [2025-02-05 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410250', 'tblTempUsageDetail_20' ) end [2025-02-05 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:49:22] Production.INFO: ==24123== Releasing lock... [2025-02-05 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:49:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-05 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:50:06 [end_date_ymd] => 2025-02-05 20:50:06 [RateCDR] => 1 ) [2025-02-05 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:50:06' and `end` < '2025-02-05 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:50:19] Production.INFO: count ==1831 [2025-02-05 20:50:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:50:06 - End Time 2025-02-05 20:50:06 [2025-02-05 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410256', 'tblTempUsageDetail_20' ) start [2025-02-05 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410256', 'tblTempUsageDetail_20' ) end [2025-02-05 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410256', 'tblTempVendorCDR_20' ) start [2025-02-05 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410256', 'tblTempVendorCDR_20' ) end [2025-02-05 20:50:19] Production.INFO: ProcessCDR(1,14410256,1,1,2) [2025-02-05 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410256', 'tblTempUsageDetail_20' ) start [2025-02-05 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410256', 'tblTempUsageDetail_20' ) end [2025-02-05 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:50:22] Production.INFO: ==24196== Releasing lock... [2025-02-05 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:50:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-05 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:51:05 [end_date_ymd] => 2025-02-05 20:51:05 [RateCDR] => 1 ) [2025-02-05 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:51:05' and `end` < '2025-02-05 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:51:19] Production.INFO: count ==1795 [2025-02-05 20:51:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:51:05 - End Time 2025-02-05 20:51:05 [2025-02-05 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410261', 'tblTempUsageDetail_20' ) start [2025-02-05 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410261', 'tblTempUsageDetail_20' ) end [2025-02-05 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410261', 'tblTempVendorCDR_20' ) start [2025-02-05 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410261', 'tblTempVendorCDR_20' ) end [2025-02-05 20:51:20] Production.INFO: ProcessCDR(1,14410261,1,1,2) [2025-02-05 20:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410261', 'tblTempUsageDetail_20' ) start [2025-02-05 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410261', 'tblTempUsageDetail_20' ) end [2025-02-05 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:51:22] Production.INFO: ==24311== Releasing lock... [2025-02-05 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:51:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-05 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:52:05 [end_date_ymd] => 2025-02-05 20:52:05 [RateCDR] => 1 ) [2025-02-05 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:52:05' and `end` < '2025-02-05 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:52:19] Production.INFO: count ==1795 [2025-02-05 20:52:20] Production.ERROR: pbx CDR StartTime 2025-02-05 17:52:05 - End Time 2025-02-05 20:52:05 [2025-02-05 20:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410266', 'tblTempUsageDetail_20' ) start [2025-02-05 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410266', 'tblTempUsageDetail_20' ) end [2025-02-05 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410266', 'tblTempVendorCDR_20' ) start [2025-02-05 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410266', 'tblTempVendorCDR_20' ) end [2025-02-05 20:52:20] Production.INFO: ProcessCDR(1,14410266,1,1,2) [2025-02-05 20:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410266', 'tblTempUsageDetail_20' ) start [2025-02-05 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410266', 'tblTempUsageDetail_20' ) end [2025-02-05 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:52:23] Production.INFO: ==24400== Releasing lock... [2025-02-05 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:52:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-05 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:53:06 [end_date_ymd] => 2025-02-05 20:53:06 [RateCDR] => 1 ) [2025-02-05 20:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:53:06' and `end` < '2025-02-05 20:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:53:19] Production.INFO: count ==1794 [2025-02-05 20:53:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:53:06 - End Time 2025-02-05 20:53:06 [2025-02-05 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410271', 'tblTempUsageDetail_20' ) start [2025-02-05 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410271', 'tblTempUsageDetail_20' ) end [2025-02-05 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410271', 'tblTempVendorCDR_20' ) start [2025-02-05 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410271', 'tblTempVendorCDR_20' ) end [2025-02-05 20:53:19] Production.INFO: ProcessCDR(1,14410271,1,1,2) [2025-02-05 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410271', 'tblTempUsageDetail_20' ) start [2025-02-05 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410271', 'tblTempUsageDetail_20' ) end [2025-02-05 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:53:23] Production.INFO: ==24521== Releasing lock... [2025-02-05 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:53:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-05 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:54:05 [end_date_ymd] => 2025-02-05 20:54:05 [RateCDR] => 1 ) [2025-02-05 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:54:05' and `end` < '2025-02-05 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:54:18] Production.INFO: count ==1785 [2025-02-05 20:54:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:54:05 - End Time 2025-02-05 20:54:05 [2025-02-05 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410276', 'tblTempUsageDetail_20' ) start [2025-02-05 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410276', 'tblTempUsageDetail_20' ) end [2025-02-05 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410276', 'tblTempVendorCDR_20' ) start [2025-02-05 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410276', 'tblTempVendorCDR_20' ) end [2025-02-05 20:54:19] Production.INFO: ProcessCDR(1,14410276,1,1,2) [2025-02-05 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410276', 'tblTempUsageDetail_20' ) start [2025-02-05 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410276', 'tblTempUsageDetail_20' ) end [2025-02-05 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:54:22] Production.INFO: ==24617== Releasing lock... [2025-02-05 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:54:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-05 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:55:05 [end_date_ymd] => 2025-02-05 20:55:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 17:55:05' and `end` < '2025-02-05 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-02-05 20:55:19] Production.INFO: count ==1783 [2025-02-05 20:55:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:55:05 - End Time 2025-02-05 20:55:05 [2025-02-05 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410281', 'tblTempUsageDetail_20' ) start [2025-02-05 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410281', 'tblTempUsageDetail_20' ) end [2025-02-05 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410281', 'tblTempVendorCDR_20' ) start [2025-02-05 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410281', 'tblTempVendorCDR_20' ) end [2025-02-05 20:55:19] Production.INFO: ProcessCDR(1,14410281,1,1,2) [2025-02-05 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410281', 'tblTempUsageDetail_20' ) start [2025-02-05 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410281', 'tblTempUsageDetail_20' ) end [2025-02-05 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:55:22] Production.INFO: ==24691== Releasing lock... [2025-02-05 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:55:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-05 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:56:05 [end_date_ymd] => 2025-02-05 20:56:05 [RateCDR] => 1 ) [2025-02-05 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:56:05' and `end` < '2025-02-05 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:56:18] Production.INFO: count ==1778 [2025-02-05 20:56:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:56:05 - End Time 2025-02-05 20:56:05 [2025-02-05 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410286', 'tblTempUsageDetail_20' ) start [2025-02-05 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410286', 'tblTempUsageDetail_20' ) end [2025-02-05 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410286', 'tblTempVendorCDR_20' ) start [2025-02-05 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410286', 'tblTempVendorCDR_20' ) end [2025-02-05 20:56:19] Production.INFO: ProcessCDR(1,14410286,1,1,2) [2025-02-05 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410286', 'tblTempUsageDetail_20' ) start [2025-02-05 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410286', 'tblTempUsageDetail_20' ) end [2025-02-05 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:56:22] Production.INFO: ==24767== Releasing lock... [2025-02-05 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:56:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-05 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:57:05 [end_date_ymd] => 2025-02-05 20:57:05 [RateCDR] => 1 ) [2025-02-05 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:57:05' and `end` < '2025-02-05 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:57:18] Production.INFO: count ==1775 [2025-02-05 20:57:18] Production.ERROR: pbx CDR StartTime 2025-02-05 17:57:05 - End Time 2025-02-05 20:57:05 [2025-02-05 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410291', 'tblTempUsageDetail_20' ) start [2025-02-05 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410291', 'tblTempUsageDetail_20' ) end [2025-02-05 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410291', 'tblTempVendorCDR_20' ) start [2025-02-05 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410291', 'tblTempVendorCDR_20' ) end [2025-02-05 20:57:18] Production.INFO: ProcessCDR(1,14410291,1,1,2) [2025-02-05 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410291', 'tblTempUsageDetail_20' ) start [2025-02-05 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410291', 'tblTempUsageDetail_20' ) end [2025-02-05 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:57:21] Production.INFO: ==24839== Releasing lock... [2025-02-05 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:57:21] Production.INFO: 41 MB #Memory Used# [2025-02-05 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:58:05 [end_date_ymd] => 2025-02-05 20:58:05 [RateCDR] => 1 ) [2025-02-05 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 17:58:05' and `end` < '2025-02-05 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 20:58:19] Production.INFO: count ==1774 [2025-02-05 20:58:19] Production.ERROR: pbx CDR StartTime 2025-02-05 17:58:05 - End Time 2025-02-05 20:58:05 [2025-02-05 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410296', 'tblTempUsageDetail_20' ) start [2025-02-05 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410296', 'tblTempUsageDetail_20' ) end [2025-02-05 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410296', 'tblTempVendorCDR_20' ) start [2025-02-05 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410296', 'tblTempVendorCDR_20' ) end [2025-02-05 20:58:19] Production.INFO: ProcessCDR(1,14410296,1,1,2) [2025-02-05 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410296', 'tblTempUsageDetail_20' ) start [2025-02-05 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410296', 'tblTempUsageDetail_20' ) end [2025-02-05 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:58:22] Production.INFO: ==24912== Releasing lock... [2025-02-05 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:58:22] Production.INFO: 41 MB #Memory Used# [2025-02-05 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 17:59:04 [end_date_ymd] => 2025-02-05 20:59:04 [RateCDR] => 1 ) [2025-02-05 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-02-05 17:59:04' and `end` < '2025-02-05 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-02-05 20:59:18] Production.INFO: count ==1772 [2025-02-05 20:59:18] Production.ERROR: pbx CDR StartTime 2025-02-05 17:59:04 - End Time 2025-02-05 20:59:04 [2025-02-05 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410301', 'tblTempUsageDetail_20' ) start [2025-02-05 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410301', 'tblTempUsageDetail_20' ) end [2025-02-05 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410301', 'tblTempVendorCDR_20' ) start [2025-02-05 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410301', 'tblTempVendorCDR_20' ) end [2025-02-05 20:59:18] Production.INFO: ProcessCDR(1,14410301,1,1,2) [2025-02-05 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410301', 'tblTempUsageDetail_20' ) start [2025-02-05 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410301', 'tblTempUsageDetail_20' ) end [2025-02-05 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 20:59:21] Production.INFO: ==24982== Releasing lock... [2025-02-05 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 20:59:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-05 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:00:06 [end_date_ymd] => 2025-02-05 21:00:06 [RateCDR] => 1 ) [2025-02-05 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:00:06' and `end` < '2025-02-05 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:00:19] Production.INFO: count ==1766 [2025-02-05 21:00:20] Production.ERROR: pbx CDR StartTime 2025-02-05 18:00:06 - End Time 2025-02-05 21:00:06 [2025-02-05 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410307', 'tblTempUsageDetail_20' ) start [2025-02-05 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410307', 'tblTempUsageDetail_20' ) end [2025-02-05 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410307', 'tblTempVendorCDR_20' ) start [2025-02-05 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410307', 'tblTempVendorCDR_20' ) end [2025-02-05 21:00:20] Production.INFO: ProcessCDR(1,14410307,1,1,2) [2025-02-05 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410307', 'tblTempUsageDetail_20' ) start [2025-02-05 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410307', 'tblTempUsageDetail_20' ) end [2025-02-05 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:00:23] Production.INFO: ==25060== Releasing lock... [2025-02-05 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:00:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-05 21:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:01:04 [end_date_ymd] => 2025-02-05 21:01:04 [RateCDR] => 1 ) [2025-02-05 21:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:01:04' and `end` < '2025-02-05 21:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:01:18] Production.INFO: count ==1744 [2025-02-05 21:01:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:01:04 - End Time 2025-02-05 21:01:04 [2025-02-05 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410312', 'tblTempUsageDetail_20' ) start [2025-02-05 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410312', 'tblTempUsageDetail_20' ) end [2025-02-05 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410312', 'tblTempVendorCDR_20' ) start [2025-02-05 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410312', 'tblTempVendorCDR_20' ) end [2025-02-05 21:01:18] Production.INFO: ProcessCDR(1,14410312,1,1,2) [2025-02-05 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410312', 'tblTempUsageDetail_20' ) start [2025-02-05 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410312', 'tblTempUsageDetail_20' ) end [2025-02-05 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:01:21] Production.INFO: ==25147== Releasing lock... [2025-02-05 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:01:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-05 21:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:02:04 [end_date_ymd] => 2025-02-05 21:02:04 [RateCDR] => 1 ) [2025-02-05 21:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:02:04' and `end` < '2025-02-05 21:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:02:18] Production.INFO: count ==1739 [2025-02-05 21:02:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:02:04 - End Time 2025-02-05 21:02:04 [2025-02-05 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410313', 'tblTempUsageDetail_20' ) start [2025-02-05 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410313', 'tblTempUsageDetail_20' ) end [2025-02-05 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410313', 'tblTempVendorCDR_20' ) start [2025-02-05 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410313', 'tblTempVendorCDR_20' ) end [2025-02-05 21:02:18] Production.INFO: ProcessCDR(1,14410313,1,1,2) [2025-02-05 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410313', 'tblTempUsageDetail_20' ) start [2025-02-05 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410313', 'tblTempUsageDetail_20' ) end [2025-02-05 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:02:21] Production.INFO: ==25216== Releasing lock... [2025-02-05 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:02:21] Production.INFO: 41 MB #Memory Used# [2025-02-05 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:03:05 [end_date_ymd] => 2025-02-05 21:03:05 [RateCDR] => 1 ) [2025-02-05 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:03:05' and `end` < '2025-02-05 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:03:18] Production.INFO: count ==1739 [2025-02-05 21:03:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:03:05 - End Time 2025-02-05 21:03:05 [2025-02-05 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410322', 'tblTempUsageDetail_20' ) start [2025-02-05 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410322', 'tblTempUsageDetail_20' ) end [2025-02-05 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410322', 'tblTempVendorCDR_20' ) start [2025-02-05 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410322', 'tblTempVendorCDR_20' ) end [2025-02-05 21:03:19] Production.INFO: ProcessCDR(1,14410322,1,1,2) [2025-02-05 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410322', 'tblTempUsageDetail_20' ) start [2025-02-05 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410322', 'tblTempUsageDetail_20' ) end [2025-02-05 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:03:22] Production.INFO: ==25289== Releasing lock... [2025-02-05 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:03:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-05 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:04:05 [end_date_ymd] => 2025-02-05 21:04:05 [RateCDR] => 1 ) [2025-02-05 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:04:05' and `end` < '2025-02-05 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:04:18] Production.INFO: count ==1739 [2025-02-05 21:04:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:04:05 - End Time 2025-02-05 21:04:05 [2025-02-05 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410327', 'tblTempUsageDetail_20' ) start [2025-02-05 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410327', 'tblTempUsageDetail_20' ) end [2025-02-05 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410327', 'tblTempVendorCDR_20' ) start [2025-02-05 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410327', 'tblTempVendorCDR_20' ) end [2025-02-05 21:04:19] Production.INFO: ProcessCDR(1,14410327,1,1,2) [2025-02-05 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410327', 'tblTempUsageDetail_20' ) start [2025-02-05 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410327', 'tblTempUsageDetail_20' ) end [2025-02-05 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:04:23] Production.INFO: ==25362== Releasing lock... [2025-02-05 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:04:23] Production.INFO: 41 MB #Memory Used# [2025-02-05 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:05:05 [end_date_ymd] => 2025-02-05 21:05:05 [RateCDR] => 1 ) [2025-02-05 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:05:05' and `end` < '2025-02-05 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:05:19] Production.INFO: count ==1738 [2025-02-05 21:05:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:05:05 - End Time 2025-02-05 21:05:05 [2025-02-05 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410332', 'tblTempUsageDetail_20' ) start [2025-02-05 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410332', 'tblTempUsageDetail_20' ) end [2025-02-05 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410332', 'tblTempVendorCDR_20' ) start [2025-02-05 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410332', 'tblTempVendorCDR_20' ) end [2025-02-05 21:05:19] Production.INFO: ProcessCDR(1,14410332,1,1,2) [2025-02-05 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410332', 'tblTempUsageDetail_20' ) start [2025-02-05 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410332', 'tblTempUsageDetail_20' ) end [2025-02-05 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:05:23] Production.INFO: ==25433== Releasing lock... [2025-02-05 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:05:23] Production.INFO: 41 MB #Memory Used# [2025-02-05 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:06:05 [end_date_ymd] => 2025-02-05 21:06:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:06:05' and `end` < '2025-02-05 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-02-05 21:06:19] Production.INFO: count ==1733 [2025-02-05 21:06:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:06:05 - End Time 2025-02-05 21:06:05 [2025-02-05 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410337', 'tblTempUsageDetail_20' ) start [2025-02-05 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410337', 'tblTempUsageDetail_20' ) end [2025-02-05 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410337', 'tblTempVendorCDR_20' ) start [2025-02-05 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410337', 'tblTempVendorCDR_20' ) end [2025-02-05 21:06:19] Production.INFO: ProcessCDR(1,14410337,1,1,2) [2025-02-05 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410337', 'tblTempUsageDetail_20' ) start [2025-02-05 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410337', 'tblTempUsageDetail_20' ) end [2025-02-05 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:06:23] Production.INFO: ==25542== Releasing lock... [2025-02-05 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:06:23] Production.INFO: 41 MB #Memory Used# [2025-02-05 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:07:05 [end_date_ymd] => 2025-02-05 21:07:05 [RateCDR] => 1 ) [2025-02-05 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:07:05' and `end` < '2025-02-05 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:07:18] Production.INFO: count ==1727 [2025-02-05 21:07:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:07:05 - End Time 2025-02-05 21:07:05 [2025-02-05 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410342', 'tblTempUsageDetail_20' ) start [2025-02-05 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410342', 'tblTempUsageDetail_20' ) end [2025-02-05 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410342', 'tblTempVendorCDR_20' ) start [2025-02-05 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410342', 'tblTempVendorCDR_20' ) end [2025-02-05 21:07:18] Production.INFO: ProcessCDR(1,14410342,1,1,2) [2025-02-05 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410342', 'tblTempUsageDetail_20' ) start [2025-02-05 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410342', 'tblTempUsageDetail_20' ) end [2025-02-05 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:07:21] Production.INFO: ==25622== Releasing lock... [2025-02-05 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:07:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-05 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:08:05 [end_date_ymd] => 2025-02-05 21:08:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:08:05' and `end` < '2025-02-05 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-02-05 21:08:18] Production.INFO: count ==1714 [2025-02-05 21:08:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:08:05 - End Time 2025-02-05 21:08:05 [2025-02-05 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410347', 'tblTempUsageDetail_20' ) start [2025-02-05 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410347', 'tblTempUsageDetail_20' ) end [2025-02-05 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410347', 'tblTempVendorCDR_20' ) start [2025-02-05 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410347', 'tblTempVendorCDR_20' ) end [2025-02-05 21:08:18] Production.INFO: ProcessCDR(1,14410347,1,1,2) [2025-02-05 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410347', 'tblTempUsageDetail_20' ) start [2025-02-05 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410347', 'tblTempUsageDetail_20' ) end [2025-02-05 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:08:21] Production.INFO: ==25700== Releasing lock... [2025-02-05 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:08:21] Production.INFO: 41 MB #Memory Used# [2025-02-05 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:09:05 [end_date_ymd] => 2025-02-05 21:09:05 [RateCDR] => 1 ) [2025-02-05 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:09:05' and `end` < '2025-02-05 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:09:18] Production.INFO: count ==1699 [2025-02-05 21:09:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:09:05 - End Time 2025-02-05 21:09:05 [2025-02-05 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410352', 'tblTempUsageDetail_20' ) start [2025-02-05 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410352', 'tblTempUsageDetail_20' ) end [2025-02-05 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410352', 'tblTempVendorCDR_20' ) start [2025-02-05 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410352', 'tblTempVendorCDR_20' ) end [2025-02-05 21:09:19] Production.INFO: ProcessCDR(1,14410352,1,1,2) [2025-02-05 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410352', 'tblTempUsageDetail_20' ) start [2025-02-05 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410352', 'tblTempUsageDetail_20' ) end [2025-02-05 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:09:23] Production.INFO: ==25772== Releasing lock... [2025-02-05 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:09:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-05 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:10:06 [end_date_ymd] => 2025-02-05 21:10:06 [RateCDR] => 1 ) [2025-02-05 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:10:06' and `end` < '2025-02-05 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:10:19] Production.INFO: count ==1690 [2025-02-05 21:10:20] Production.ERROR: pbx CDR StartTime 2025-02-05 18:10:06 - End Time 2025-02-05 21:10:06 [2025-02-05 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410358', 'tblTempUsageDetail_20' ) start [2025-02-05 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410358', 'tblTempUsageDetail_20' ) end [2025-02-05 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410358', 'tblTempVendorCDR_20' ) start [2025-02-05 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410358', 'tblTempVendorCDR_20' ) end [2025-02-05 21:10:20] Production.INFO: ProcessCDR(1,14410358,1,1,2) [2025-02-05 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410358', 'tblTempUsageDetail_20' ) start [2025-02-05 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410358', 'tblTempUsageDetail_20' ) end [2025-02-05 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:10:22] Production.INFO: ==25845== Releasing lock... [2025-02-05 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:10:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-05 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:11:05 [end_date_ymd] => 2025-02-05 21:11:05 [RateCDR] => 1 ) [2025-02-05 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:11:05' and `end` < '2025-02-05 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:11:19] Production.INFO: count ==1703 [2025-02-05 21:11:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:11:05 - End Time 2025-02-05 21:11:05 [2025-02-05 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410363', 'tblTempUsageDetail_20' ) start [2025-02-05 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410363', 'tblTempUsageDetail_20' ) end [2025-02-05 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410363', 'tblTempVendorCDR_20' ) start [2025-02-05 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410363', 'tblTempVendorCDR_20' ) end [2025-02-05 21:11:19] Production.INFO: ProcessCDR(1,14410363,1,1,2) [2025-02-05 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410363', 'tblTempUsageDetail_20' ) start [2025-02-05 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410363', 'tblTempUsageDetail_20' ) end [2025-02-05 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:11:22] Production.INFO: ==25919== Releasing lock... [2025-02-05 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:11:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-05 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:12:05 [end_date_ymd] => 2025-02-05 21:12:05 [RateCDR] => 1 ) [2025-02-05 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:12:05' and `end` < '2025-02-05 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:12:19] Production.INFO: count ==1706 [2025-02-05 21:12:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:12:05 - End Time 2025-02-05 21:12:05 [2025-02-05 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410368', 'tblTempUsageDetail_20' ) start [2025-02-05 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410368', 'tblTempUsageDetail_20' ) end [2025-02-05 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410368', 'tblTempVendorCDR_20' ) start [2025-02-05 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410368', 'tblTempVendorCDR_20' ) end [2025-02-05 21:12:19] Production.INFO: ProcessCDR(1,14410368,1,1,2) [2025-02-05 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410368', 'tblTempUsageDetail_20' ) start [2025-02-05 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410368', 'tblTempUsageDetail_20' ) end [2025-02-05 21:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:12:24] Production.INFO: ==25992== Releasing lock... [2025-02-05 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:12:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-05 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:13:05 [end_date_ymd] => 2025-02-05 21:13:05 [RateCDR] => 1 ) [2025-02-05 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:13:05' and `end` < '2025-02-05 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:13:19] Production.INFO: count ==1701 [2025-02-05 21:13:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:13:05 - End Time 2025-02-05 21:13:05 [2025-02-05 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410373', 'tblTempUsageDetail_20' ) start [2025-02-05 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410373', 'tblTempUsageDetail_20' ) end [2025-02-05 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410373', 'tblTempVendorCDR_20' ) start [2025-02-05 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410373', 'tblTempVendorCDR_20' ) end [2025-02-05 21:13:19] Production.INFO: ProcessCDR(1,14410373,1,1,2) [2025-02-05 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410373', 'tblTempUsageDetail_20' ) start [2025-02-05 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410373', 'tblTempUsageDetail_20' ) end [2025-02-05 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:13:23] Production.INFO: ==26065== Releasing lock... [2025-02-05 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:13:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-05 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:14:05 [end_date_ymd] => 2025-02-05 21:14:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:14:05' and `end` < '2025-02-05 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-02-05 21:14:18] Production.INFO: count ==1700 [2025-02-05 21:14:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:14:05 - End Time 2025-02-05 21:14:05 [2025-02-05 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410378', 'tblTempUsageDetail_20' ) start [2025-02-05 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410378', 'tblTempUsageDetail_20' ) end [2025-02-05 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410378', 'tblTempVendorCDR_20' ) start [2025-02-05 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410378', 'tblTempVendorCDR_20' ) end [2025-02-05 21:14:19] Production.INFO: ProcessCDR(1,14410378,1,1,2) [2025-02-05 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410378', 'tblTempUsageDetail_20' ) start [2025-02-05 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410378', 'tblTempUsageDetail_20' ) end [2025-02-05 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:14:22] Production.INFO: ==26136== Releasing lock... [2025-02-05 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:14:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-05 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:15:05 [end_date_ymd] => 2025-02-05 21:15:05 [RateCDR] => 1 ) [2025-02-05 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:15:05' and `end` < '2025-02-05 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:15:18] Production.INFO: count ==1692 [2025-02-05 21:15:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:15:05 - End Time 2025-02-05 21:15:05 [2025-02-05 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410383', 'tblTempUsageDetail_20' ) start [2025-02-05 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410383', 'tblTempUsageDetail_20' ) end [2025-02-05 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410383', 'tblTempVendorCDR_20' ) start [2025-02-05 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410383', 'tblTempVendorCDR_20' ) end [2025-02-05 21:15:18] Production.INFO: ProcessCDR(1,14410383,1,1,2) [2025-02-05 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410383', 'tblTempUsageDetail_20' ) start [2025-02-05 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410383', 'tblTempUsageDetail_20' ) end [2025-02-05 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:15:21] Production.INFO: ==26210== Releasing lock... [2025-02-05 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:15:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-05 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:16:05 [end_date_ymd] => 2025-02-05 21:16:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:16:05' and `end` < '2025-02-05 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-02-05 21:16:19] Production.INFO: count ==1691 [2025-02-05 21:16:20] Production.ERROR: pbx CDR StartTime 2025-02-05 18:16:05 - End Time 2025-02-05 21:16:05 [2025-02-05 21:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410388', 'tblTempUsageDetail_20' ) start [2025-02-05 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410388', 'tblTempUsageDetail_20' ) end [2025-02-05 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410388', 'tblTempVendorCDR_20' ) start [2025-02-05 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410388', 'tblTempVendorCDR_20' ) end [2025-02-05 21:16:20] Production.INFO: ProcessCDR(1,14410388,1,1,2) [2025-02-05 21:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410388', 'tblTempUsageDetail_20' ) start [2025-02-05 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410388', 'tblTempUsageDetail_20' ) end [2025-02-05 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:16:23] Production.INFO: ==26282== Releasing lock... [2025-02-05 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:16:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-05 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:17:05 [end_date_ymd] => 2025-02-05 21:17:05 [RateCDR] => 1 ) [2025-02-05 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:17:05' and `end` < '2025-02-05 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:17:19] Production.INFO: count ==1689 [2025-02-05 21:17:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:17:05 - End Time 2025-02-05 21:17:05 [2025-02-05 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410393', 'tblTempUsageDetail_20' ) start [2025-02-05 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410393', 'tblTempUsageDetail_20' ) end [2025-02-05 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410393', 'tblTempVendorCDR_20' ) start [2025-02-05 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410393', 'tblTempVendorCDR_20' ) end [2025-02-05 21:17:19] Production.INFO: ProcessCDR(1,14410393,1,1,2) [2025-02-05 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410393', 'tblTempUsageDetail_20' ) start [2025-02-05 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410393', 'tblTempUsageDetail_20' ) end [2025-02-05 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:17:22] Production.INFO: ==26355== Releasing lock... [2025-02-05 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:17:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-05 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:18:05 [end_date_ymd] => 2025-02-05 21:18:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:18:05' and `end` < '2025-02-05 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-02-05 21:18:19] Production.INFO: count ==1676 [2025-02-05 21:18:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:18:05 - End Time 2025-02-05 21:18:05 [2025-02-05 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410398', 'tblTempUsageDetail_20' ) start [2025-02-05 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410398', 'tblTempUsageDetail_20' ) end [2025-02-05 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410398', 'tblTempVendorCDR_20' ) start [2025-02-05 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410398', 'tblTempVendorCDR_20' ) end [2025-02-05 21:18:19] Production.INFO: ProcessCDR(1,14410398,1,1,2) [2025-02-05 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410398', 'tblTempUsageDetail_20' ) start [2025-02-05 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410398', 'tblTempUsageDetail_20' ) end [2025-02-05 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:18:23] Production.INFO: ==26424== Releasing lock... [2025-02-05 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:18:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-05 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:19:05 [end_date_ymd] => 2025-02-05 21:19:05 [RateCDR] => 1 ) [2025-02-05 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:19:05' and `end` < '2025-02-05 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:19:19] Production.INFO: count ==1675 [2025-02-05 21:19:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:19:05 - End Time 2025-02-05 21:19:05 [2025-02-05 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410403', 'tblTempUsageDetail_20' ) start [2025-02-05 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410403', 'tblTempUsageDetail_20' ) end [2025-02-05 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410403', 'tblTempVendorCDR_20' ) start [2025-02-05 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410403', 'tblTempVendorCDR_20' ) end [2025-02-05 21:19:19] Production.INFO: ProcessCDR(1,14410403,1,1,2) [2025-02-05 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410403', 'tblTempUsageDetail_20' ) start [2025-02-05 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410403', 'tblTempUsageDetail_20' ) end [2025-02-05 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:19:22] Production.INFO: ==26501== Releasing lock... [2025-02-05 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:19:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-05 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:20:06 [end_date_ymd] => 2025-02-05 21:20:06 [RateCDR] => 1 ) [2025-02-05 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:20:06' and `end` < '2025-02-05 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:20:19] Production.INFO: count ==1667 [2025-02-05 21:20:20] Production.ERROR: pbx CDR StartTime 2025-02-05 18:20:06 - End Time 2025-02-05 21:20:06 [2025-02-05 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410409', 'tblTempUsageDetail_20' ) start [2025-02-05 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410409', 'tblTempUsageDetail_20' ) end [2025-02-05 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410409', 'tblTempVendorCDR_20' ) start [2025-02-05 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410409', 'tblTempVendorCDR_20' ) end [2025-02-05 21:20:20] Production.INFO: ProcessCDR(1,14410409,1,1,2) [2025-02-05 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410409', 'tblTempUsageDetail_20' ) start [2025-02-05 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410409', 'tblTempUsageDetail_20' ) end [2025-02-05 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:20:24] Production.INFO: ==26574== Releasing lock... [2025-02-05 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:20:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-05 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:21:05 [end_date_ymd] => 2025-02-05 21:21:05 [RateCDR] => 1 ) [2025-02-05 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:21:05' and `end` < '2025-02-05 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:21:19] Production.INFO: count ==1622 [2025-02-05 21:21:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:21:05 - End Time 2025-02-05 21:21:05 [2025-02-05 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410414', 'tblTempUsageDetail_20' ) start [2025-02-05 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410414', 'tblTempUsageDetail_20' ) end [2025-02-05 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410414', 'tblTempVendorCDR_20' ) start [2025-02-05 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410414', 'tblTempVendorCDR_20' ) end [2025-02-05 21:21:19] Production.INFO: ProcessCDR(1,14410414,1,1,2) [2025-02-05 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410414', 'tblTempUsageDetail_20' ) start [2025-02-05 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410414', 'tblTempUsageDetail_20' ) end [2025-02-05 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:21:22] Production.INFO: ==26650== Releasing lock... [2025-02-05 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:21:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-05 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:22:05 [end_date_ymd] => 2025-02-05 21:22:05 [RateCDR] => 1 ) [2025-02-05 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:22:05' and `end` < '2025-02-05 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:22:18] Production.INFO: count ==1619 [2025-02-05 21:22:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:22:05 - End Time 2025-02-05 21:22:05 [2025-02-05 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410419', 'tblTempUsageDetail_20' ) start [2025-02-05 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410419', 'tblTempUsageDetail_20' ) end [2025-02-05 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410419', 'tblTempVendorCDR_20' ) start [2025-02-05 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410419', 'tblTempVendorCDR_20' ) end [2025-02-05 21:22:18] Production.INFO: ProcessCDR(1,14410419,1,1,2) [2025-02-05 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410419', 'tblTempUsageDetail_20' ) start [2025-02-05 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410419', 'tblTempUsageDetail_20' ) end [2025-02-05 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:22:21] Production.INFO: ==26762== Releasing lock... [2025-02-05 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:22:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-05 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:23:05 [end_date_ymd] => 2025-02-05 21:23:05 [RateCDR] => 1 ) [2025-02-05 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:23:05' and `end` < '2025-02-05 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:23:19] Production.INFO: count ==1616 [2025-02-05 21:23:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:23:05 - End Time 2025-02-05 21:23:05 [2025-02-05 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410424', 'tblTempUsageDetail_20' ) start [2025-02-05 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410424', 'tblTempUsageDetail_20' ) end [2025-02-05 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410424', 'tblTempVendorCDR_20' ) start [2025-02-05 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410424', 'tblTempVendorCDR_20' ) end [2025-02-05 21:23:19] Production.INFO: ProcessCDR(1,14410424,1,1,2) [2025-02-05 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410424', 'tblTempUsageDetail_20' ) start [2025-02-05 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410424', 'tblTempUsageDetail_20' ) end [2025-02-05 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:23:23] Production.INFO: ==26838== Releasing lock... [2025-02-05 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:23:23] Production.INFO: 40 MB #Memory Used# [2025-02-05 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:24:05 [end_date_ymd] => 2025-02-05 21:24:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:24:05' and `end` < '2025-02-05 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-02-05 21:24:19] Production.INFO: count ==1604 [2025-02-05 21:24:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:24:05 - End Time 2025-02-05 21:24:05 [2025-02-05 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410429', 'tblTempUsageDetail_20' ) start [2025-02-05 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410429', 'tblTempUsageDetail_20' ) end [2025-02-05 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410429', 'tblTempVendorCDR_20' ) start [2025-02-05 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410429', 'tblTempVendorCDR_20' ) end [2025-02-05 21:24:19] Production.INFO: ProcessCDR(1,14410429,1,1,2) [2025-02-05 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410429', 'tblTempUsageDetail_20' ) start [2025-02-05 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410429', 'tblTempUsageDetail_20' ) end [2025-02-05 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:24:22] Production.INFO: ==26910== Releasing lock... [2025-02-05 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:24:22] Production.INFO: 40 MB #Memory Used# [2025-02-05 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:25:05 [end_date_ymd] => 2025-02-05 21:25:05 [RateCDR] => 1 ) [2025-02-05 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:25:05' and `end` < '2025-02-05 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:25:18] Production.INFO: count ==1602 [2025-02-05 21:25:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:25:05 - End Time 2025-02-05 21:25:05 [2025-02-05 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410434', 'tblTempUsageDetail_20' ) start [2025-02-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410434', 'tblTempUsageDetail_20' ) end [2025-02-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410434', 'tblTempVendorCDR_20' ) start [2025-02-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410434', 'tblTempVendorCDR_20' ) end [2025-02-05 21:25:18] Production.INFO: ProcessCDR(1,14410434,1,1,2) [2025-02-05 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410434', 'tblTempUsageDetail_20' ) start [2025-02-05 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410434', 'tblTempUsageDetail_20' ) end [2025-02-05 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:25:22] Production.INFO: ==26982== Releasing lock... [2025-02-05 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:25:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-05 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:26:05 [end_date_ymd] => 2025-02-05 21:26:05 [RateCDR] => 1 ) [2025-02-05 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:26:05' and `end` < '2025-02-05 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:26:18] Production.INFO: count ==1595 [2025-02-05 21:26:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:26:05 - End Time 2025-02-05 21:26:05 [2025-02-05 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410439', 'tblTempUsageDetail_20' ) start [2025-02-05 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410439', 'tblTempUsageDetail_20' ) end [2025-02-05 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410439', 'tblTempVendorCDR_20' ) start [2025-02-05 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410439', 'tblTempVendorCDR_20' ) end [2025-02-05 21:26:18] Production.INFO: ProcessCDR(1,14410439,1,1,2) [2025-02-05 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410439', 'tblTempUsageDetail_20' ) start [2025-02-05 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410439', 'tblTempUsageDetail_20' ) end [2025-02-05 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:26:21] Production.INFO: ==27053== Releasing lock... [2025-02-05 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:26:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-05 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:27:05 [end_date_ymd] => 2025-02-05 21:27:05 [RateCDR] => 1 ) [2025-02-05 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:27:05' and `end` < '2025-02-05 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:27:18] Production.INFO: count ==1599 [2025-02-05 21:27:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:27:05 - End Time 2025-02-05 21:27:05 [2025-02-05 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410444', 'tblTempUsageDetail_20' ) start [2025-02-05 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410444', 'tblTempUsageDetail_20' ) end [2025-02-05 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410444', 'tblTempVendorCDR_20' ) start [2025-02-05 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410444', 'tblTempVendorCDR_20' ) end [2025-02-05 21:27:18] Production.INFO: ProcessCDR(1,14410444,1,1,2) [2025-02-05 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410444', 'tblTempUsageDetail_20' ) start [2025-02-05 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410444', 'tblTempUsageDetail_20' ) end [2025-02-05 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:27:22] Production.INFO: ==27133== Releasing lock... [2025-02-05 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:27:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-05 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:28:05 [end_date_ymd] => 2025-02-05 21:28:05 [RateCDR] => 1 ) [2025-02-05 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:28:05' and `end` < '2025-02-05 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:28:19] Production.INFO: count ==1602 [2025-02-05 21:28:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:28:05 - End Time 2025-02-05 21:28:05 [2025-02-05 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410449', 'tblTempUsageDetail_20' ) start [2025-02-05 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410449', 'tblTempUsageDetail_20' ) end [2025-02-05 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410449', 'tblTempVendorCDR_20' ) start [2025-02-05 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410449', 'tblTempVendorCDR_20' ) end [2025-02-05 21:28:19] Production.INFO: ProcessCDR(1,14410449,1,1,2) [2025-02-05 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410449', 'tblTempUsageDetail_20' ) start [2025-02-05 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410449', 'tblTempUsageDetail_20' ) end [2025-02-05 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:28:24] Production.INFO: ==27206== Releasing lock... [2025-02-05 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:28:24] Production.INFO: 40 MB #Memory Used# [2025-02-05 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:29:05 [end_date_ymd] => 2025-02-05 21:29:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:29:05' and `end` < '2025-02-05 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-02-05 21:29:18] Production.INFO: count ==1609 [2025-02-05 21:29:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:29:05 - End Time 2025-02-05 21:29:05 [2025-02-05 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410454', 'tblTempUsageDetail_20' ) start [2025-02-05 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410454', 'tblTempUsageDetail_20' ) end [2025-02-05 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410454', 'tblTempVendorCDR_20' ) start [2025-02-05 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410454', 'tblTempVendorCDR_20' ) end [2025-02-05 21:29:19] Production.INFO: ProcessCDR(1,14410454,1,1,2) [2025-02-05 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410454', 'tblTempUsageDetail_20' ) start [2025-02-05 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410454', 'tblTempUsageDetail_20' ) end [2025-02-05 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:29:22] Production.INFO: ==27277== Releasing lock... [2025-02-05 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:29:22] Production.INFO: 40 MB #Memory Used# [2025-02-05 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:30:06 [end_date_ymd] => 2025-02-05 21:30:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:30:06' and `end` < '2025-02-05 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-02-05 21:30:19] Production.INFO: count ==1619 [2025-02-05 21:30:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:30:06 - End Time 2025-02-05 21:30:06 [2025-02-05 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410459', 'tblTempUsageDetail_20' ) start [2025-02-05 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410459', 'tblTempUsageDetail_20' ) end [2025-02-05 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410459', 'tblTempVendorCDR_20' ) start [2025-02-05 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410459', 'tblTempVendorCDR_20' ) end [2025-02-05 21:30:19] Production.INFO: ProcessCDR(1,14410459,1,1,2) [2025-02-05 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410459', 'tblTempUsageDetail_20' ) start [2025-02-05 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410459', 'tblTempUsageDetail_20' ) end [2025-02-05 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:30:22] Production.INFO: ==27354== Releasing lock... [2025-02-05 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:30:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-05 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:31:05 [end_date_ymd] => 2025-02-05 21:31:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:31:05' and `end` < '2025-02-05 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-02-05 21:31:18] Production.INFO: count ==1593 [2025-02-05 21:31:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:31:05 - End Time 2025-02-05 21:31:05 [2025-02-05 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410465', 'tblTempUsageDetail_20' ) start [2025-02-05 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410465', 'tblTempUsageDetail_20' ) end [2025-02-05 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410465', 'tblTempVendorCDR_20' ) start [2025-02-05 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410465', 'tblTempVendorCDR_20' ) end [2025-02-05 21:31:19] Production.INFO: ProcessCDR(1,14410465,1,1,2) [2025-02-05 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410465', 'tblTempUsageDetail_20' ) start [2025-02-05 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410465', 'tblTempUsageDetail_20' ) end [2025-02-05 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:31:22] Production.INFO: ==27430== Releasing lock... [2025-02-05 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:31:22] Production.INFO: 40 MB #Memory Used# [2025-02-05 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:32:05 [end_date_ymd] => 2025-02-05 21:32:05 [RateCDR] => 1 ) [2025-02-05 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:32:05' and `end` < '2025-02-05 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:32:19] Production.INFO: count ==1595 [2025-02-05 21:32:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:32:05 - End Time 2025-02-05 21:32:05 [2025-02-05 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410470', 'tblTempUsageDetail_20' ) start [2025-02-05 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410470', 'tblTempUsageDetail_20' ) end [2025-02-05 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410470', 'tblTempVendorCDR_20' ) start [2025-02-05 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410470', 'tblTempVendorCDR_20' ) end [2025-02-05 21:32:19] Production.INFO: ProcessCDR(1,14410470,1,1,2) [2025-02-05 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410470', 'tblTempUsageDetail_20' ) start [2025-02-05 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410470', 'tblTempUsageDetail_20' ) end [2025-02-05 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:32:22] Production.INFO: ==27501== Releasing lock... [2025-02-05 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:32:22] Production.INFO: 40 MB #Memory Used# [2025-02-05 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:33:05 [end_date_ymd] => 2025-02-05 21:33:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:33:05' and `end` < '2025-02-05 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-02-05 21:33:19] Production.INFO: count ==1592 [2025-02-05 21:33:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:33:05 - End Time 2025-02-05 21:33:05 [2025-02-05 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410475', 'tblTempUsageDetail_20' ) start [2025-02-05 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410475', 'tblTempUsageDetail_20' ) end [2025-02-05 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410475', 'tblTempVendorCDR_20' ) start [2025-02-05 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410475', 'tblTempVendorCDR_20' ) end [2025-02-05 21:33:19] Production.INFO: ProcessCDR(1,14410475,1,1,2) [2025-02-05 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410475', 'tblTempUsageDetail_20' ) start [2025-02-05 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410475', 'tblTempUsageDetail_20' ) end [2025-02-05 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:33:22] Production.INFO: ==27573== Releasing lock... [2025-02-05 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-05 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:34:05 [end_date_ymd] => 2025-02-05 21:34:05 [RateCDR] => 1 ) [2025-02-05 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:34:05' and `end` < '2025-02-05 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:34:18] Production.INFO: count ==1595 [2025-02-05 21:34:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:34:05 - End Time 2025-02-05 21:34:05 [2025-02-05 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410480', 'tblTempUsageDetail_20' ) start [2025-02-05 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410480', 'tblTempUsageDetail_20' ) end [2025-02-05 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410480', 'tblTempVendorCDR_20' ) start [2025-02-05 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410480', 'tblTempVendorCDR_20' ) end [2025-02-05 21:34:18] Production.INFO: ProcessCDR(1,14410480,1,1,2) [2025-02-05 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410480', 'tblTempUsageDetail_20' ) start [2025-02-05 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410480', 'tblTempUsageDetail_20' ) end [2025-02-05 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:34:23] Production.INFO: ==27644== Releasing lock... [2025-02-05 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:34:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-05 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:35:05 [end_date_ymd] => 2025-02-05 21:35:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:35:05' and `end` < '2025-02-05 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-02-05 21:35:18] Production.INFO: count ==1585 [2025-02-05 21:35:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:35:05 - End Time 2025-02-05 21:35:05 [2025-02-05 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410485', 'tblTempUsageDetail_20' ) start [2025-02-05 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410485', 'tblTempUsageDetail_20' ) end [2025-02-05 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410485', 'tblTempVendorCDR_20' ) start [2025-02-05 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410485', 'tblTempVendorCDR_20' ) end [2025-02-05 21:35:19] Production.INFO: ProcessCDR(1,14410485,1,1,2) [2025-02-05 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410485', 'tblTempUsageDetail_20' ) start [2025-02-05 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410485', 'tblTempUsageDetail_20' ) end [2025-02-05 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:35:22] Production.INFO: ==27715== Releasing lock... [2025-02-05 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:35:22] Production.INFO: 40 MB #Memory Used# [2025-02-05 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:36:05 [end_date_ymd] => 2025-02-05 21:36:05 [RateCDR] => 1 ) [2025-02-05 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:36:05' and `end` < '2025-02-05 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:36:18] Production.INFO: count ==1586 [2025-02-05 21:36:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:36:05 - End Time 2025-02-05 21:36:05 [2025-02-05 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410490', 'tblTempUsageDetail_20' ) start [2025-02-05 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410490', 'tblTempUsageDetail_20' ) end [2025-02-05 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410490', 'tblTempVendorCDR_20' ) start [2025-02-05 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410490', 'tblTempVendorCDR_20' ) end [2025-02-05 21:36:18] Production.INFO: ProcessCDR(1,14410490,1,1,2) [2025-02-05 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410490', 'tblTempUsageDetail_20' ) start [2025-02-05 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410490', 'tblTempUsageDetail_20' ) end [2025-02-05 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:36:21] Production.INFO: ==27786== Releasing lock... [2025-02-05 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:36:21] Production.INFO: 40 MB #Memory Used# [2025-02-05 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:37:05 [end_date_ymd] => 2025-02-05 21:37:05 [RateCDR] => 1 ) [2025-02-05 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:37:05' and `end` < '2025-02-05 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:37:18] Production.INFO: count ==1577 [2025-02-05 21:37:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:37:05 - End Time 2025-02-05 21:37:05 [2025-02-05 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410495', 'tblTempUsageDetail_20' ) start [2025-02-05 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410495', 'tblTempUsageDetail_20' ) end [2025-02-05 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410495', 'tblTempVendorCDR_20' ) start [2025-02-05 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410495', 'tblTempVendorCDR_20' ) end [2025-02-05 21:37:18] Production.INFO: ProcessCDR(1,14410495,1,1,2) [2025-02-05 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410495', 'tblTempUsageDetail_20' ) start [2025-02-05 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410495', 'tblTempUsageDetail_20' ) end [2025-02-05 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:37:21] Production.INFO: ==27897== Releasing lock... [2025-02-05 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:37:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-05 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:38:06 [end_date_ymd] => 2025-02-05 21:38:06 [RateCDR] => 1 ) [2025-02-05 21:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:38:06' and `end` < '2025-02-05 21:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:38:19] Production.INFO: count ==1573 [2025-02-05 21:38:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:38:06 - End Time 2025-02-05 21:38:06 [2025-02-05 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410500', 'tblTempUsageDetail_20' ) start [2025-02-05 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410500', 'tblTempUsageDetail_20' ) end [2025-02-05 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410500', 'tblTempVendorCDR_20' ) start [2025-02-05 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410500', 'tblTempVendorCDR_20' ) end [2025-02-05 21:38:19] Production.INFO: ProcessCDR(1,14410500,1,1,2) [2025-02-05 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410500', 'tblTempUsageDetail_20' ) start [2025-02-05 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410500', 'tblTempUsageDetail_20' ) end [2025-02-05 21:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:38:24] Production.INFO: ==27972== Releasing lock... [2025-02-05 21:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:38:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-05 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:39:05 [end_date_ymd] => 2025-02-05 21:39:05 [RateCDR] => 1 ) [2025-02-05 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:39:05' and `end` < '2025-02-05 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:39:18] Production.INFO: count ==1568 [2025-02-05 21:39:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:39:05 - End Time 2025-02-05 21:39:05 [2025-02-05 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410505', 'tblTempUsageDetail_20' ) start [2025-02-05 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410505', 'tblTempUsageDetail_20' ) end [2025-02-05 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410505', 'tblTempVendorCDR_20' ) start [2025-02-05 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410505', 'tblTempVendorCDR_20' ) end [2025-02-05 21:39:19] Production.INFO: ProcessCDR(1,14410505,1,1,2) [2025-02-05 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410505', 'tblTempUsageDetail_20' ) start [2025-02-05 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410505', 'tblTempUsageDetail_20' ) end [2025-02-05 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:39:22] Production.INFO: ==28045== Releasing lock... [2025-02-05 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:39:22] Production.INFO: 40 MB #Memory Used# [2025-02-05 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:40:06 [end_date_ymd] => 2025-02-05 21:40:06 [RateCDR] => 1 ) [2025-02-05 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:40:06' and `end` < '2025-02-05 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:40:19] Production.INFO: count ==1578 [2025-02-05 21:40:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:40:06 - End Time 2025-02-05 21:40:06 [2025-02-05 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410510', 'tblTempUsageDetail_20' ) start [2025-02-05 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410510', 'tblTempUsageDetail_20' ) end [2025-02-05 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410510', 'tblTempVendorCDR_20' ) start [2025-02-05 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410510', 'tblTempVendorCDR_20' ) end [2025-02-05 21:40:19] Production.INFO: ProcessCDR(1,14410510,1,1,2) [2025-02-05 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410510', 'tblTempUsageDetail_20' ) start [2025-02-05 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410510', 'tblTempUsageDetail_20' ) end [2025-02-05 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:40:22] Production.INFO: ==28119== Releasing lock... [2025-02-05 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:40:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-05 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:41:05 [end_date_ymd] => 2025-02-05 21:41:05 [RateCDR] => 1 ) [2025-02-05 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:41:05' and `end` < '2025-02-05 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:41:19] Production.INFO: count ==1580 [2025-02-05 21:41:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:41:05 - End Time 2025-02-05 21:41:05 [2025-02-05 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410516', 'tblTempUsageDetail_20' ) start [2025-02-05 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410516', 'tblTempUsageDetail_20' ) end [2025-02-05 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410516', 'tblTempVendorCDR_20' ) start [2025-02-05 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410516', 'tblTempVendorCDR_20' ) end [2025-02-05 21:41:19] Production.INFO: ProcessCDR(1,14410516,1,1,2) [2025-02-05 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410516', 'tblTempUsageDetail_20' ) start [2025-02-05 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410516', 'tblTempUsageDetail_20' ) end [2025-02-05 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:41:22] Production.INFO: ==28193== Releasing lock... [2025-02-05 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:41:22] Production.INFO: 40 MB #Memory Used# [2025-02-05 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:42:06 [end_date_ymd] => 2025-02-05 21:42:06 [RateCDR] => 1 ) [2025-02-05 21:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:42:06' and `end` < '2025-02-05 21:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:42:20] Production.INFO: count ==1579 [2025-02-05 21:42:20] Production.ERROR: pbx CDR StartTime 2025-02-05 18:42:06 - End Time 2025-02-05 21:42:06 [2025-02-05 21:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410521', 'tblTempUsageDetail_20' ) start [2025-02-05 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410521', 'tblTempUsageDetail_20' ) end [2025-02-05 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410521', 'tblTempVendorCDR_20' ) start [2025-02-05 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410521', 'tblTempVendorCDR_20' ) end [2025-02-05 21:42:20] Production.INFO: ProcessCDR(1,14410521,1,1,2) [2025-02-05 21:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410521', 'tblTempUsageDetail_20' ) start [2025-02-05 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410521', 'tblTempUsageDetail_20' ) end [2025-02-05 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:42:23] Production.INFO: ==28264== Releasing lock... [2025-02-05 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:42:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-05 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:43:05 [end_date_ymd] => 2025-02-05 21:43:05 [RateCDR] => 1 ) [2025-02-05 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:43:05' and `end` < '2025-02-05 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:43:19] Production.INFO: count ==1579 [2025-02-05 21:43:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:43:05 - End Time 2025-02-05 21:43:05 [2025-02-05 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410526', 'tblTempUsageDetail_20' ) start [2025-02-05 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410526', 'tblTempUsageDetail_20' ) end [2025-02-05 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410526', 'tblTempVendorCDR_20' ) start [2025-02-05 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410526', 'tblTempVendorCDR_20' ) end [2025-02-05 21:43:19] Production.INFO: ProcessCDR(1,14410526,1,1,2) [2025-02-05 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410526', 'tblTempUsageDetail_20' ) start [2025-02-05 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410526', 'tblTempUsageDetail_20' ) end [2025-02-05 21:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:43:24] Production.INFO: ==28335== Releasing lock... [2025-02-05 21:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:43:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-05 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:44:05 [end_date_ymd] => 2025-02-05 21:44:05 [RateCDR] => 1 ) [2025-02-05 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:44:05' and `end` < '2025-02-05 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:44:19] Production.INFO: count ==1569 [2025-02-05 21:44:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:44:05 - End Time 2025-02-05 21:44:05 [2025-02-05 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410531', 'tblTempUsageDetail_20' ) start [2025-02-05 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410531', 'tblTempUsageDetail_20' ) end [2025-02-05 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410531', 'tblTempVendorCDR_20' ) start [2025-02-05 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410531', 'tblTempVendorCDR_20' ) end [2025-02-05 21:44:19] Production.INFO: ProcessCDR(1,14410531,1,1,2) [2025-02-05 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410531', 'tblTempUsageDetail_20' ) start [2025-02-05 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410531', 'tblTempUsageDetail_20' ) end [2025-02-05 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:44:22] Production.INFO: ==28408== Releasing lock... [2025-02-05 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:44:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-05 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:45:05 [end_date_ymd] => 2025-02-05 21:45:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:45:05' and `end` < '2025-02-05 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-02-05 21:45:18] Production.INFO: count ==1563 [2025-02-05 21:45:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:45:05 - End Time 2025-02-05 21:45:05 [2025-02-05 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410536', 'tblTempUsageDetail_20' ) start [2025-02-05 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410536', 'tblTempUsageDetail_20' ) end [2025-02-05 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410536', 'tblTempVendorCDR_20' ) start [2025-02-05 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410536', 'tblTempVendorCDR_20' ) end [2025-02-05 21:45:19] Production.INFO: ProcessCDR(1,14410536,1,1,2) [2025-02-05 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410536', 'tblTempUsageDetail_20' ) start [2025-02-05 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410536', 'tblTempUsageDetail_20' ) end [2025-02-05 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:45:22] Production.INFO: ==28482== Releasing lock... [2025-02-05 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:45:22] Production.INFO: 40 MB #Memory Used# [2025-02-05 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:46:05 [end_date_ymd] => 2025-02-05 21:46:05 [RateCDR] => 1 ) [2025-02-05 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:46:05' and `end` < '2025-02-05 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:46:18] Production.INFO: count ==1559 [2025-02-05 21:46:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:46:05 - End Time 2025-02-05 21:46:05 [2025-02-05 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410541', 'tblTempUsageDetail_20' ) start [2025-02-05 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410541', 'tblTempUsageDetail_20' ) end [2025-02-05 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410541', 'tblTempVendorCDR_20' ) start [2025-02-05 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410541', 'tblTempVendorCDR_20' ) end [2025-02-05 21:46:19] Production.INFO: ProcessCDR(1,14410541,1,1,2) [2025-02-05 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410541', 'tblTempUsageDetail_20' ) start [2025-02-05 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410541', 'tblTempUsageDetail_20' ) end [2025-02-05 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:46:22] Production.INFO: ==28562== Releasing lock... [2025-02-05 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:46:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-05 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:47:05 [end_date_ymd] => 2025-02-05 21:47:05 [RateCDR] => 1 ) [2025-02-05 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:47:05' and `end` < '2025-02-05 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:47:19] Production.INFO: count ==1559 [2025-02-05 21:47:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:47:05 - End Time 2025-02-05 21:47:05 [2025-02-05 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410546', 'tblTempUsageDetail_20' ) start [2025-02-05 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410546', 'tblTempUsageDetail_20' ) end [2025-02-05 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410546', 'tblTempVendorCDR_20' ) start [2025-02-05 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410546', 'tblTempVendorCDR_20' ) end [2025-02-05 21:47:19] Production.INFO: ProcessCDR(1,14410546,1,1,2) [2025-02-05 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410546', 'tblTempUsageDetail_20' ) start [2025-02-05 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410546', 'tblTempUsageDetail_20' ) end [2025-02-05 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:47:22] Production.INFO: ==28637== Releasing lock... [2025-02-05 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:47:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-05 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:48:05 [end_date_ymd] => 2025-02-05 21:48:05 [RateCDR] => 1 ) [2025-02-05 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:48:05' and `end` < '2025-02-05 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:48:19] Production.INFO: count ==1546 [2025-02-05 21:48:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:48:05 - End Time 2025-02-05 21:48:05 [2025-02-05 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410551', 'tblTempUsageDetail_20' ) start [2025-02-05 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410551', 'tblTempUsageDetail_20' ) end [2025-02-05 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410551', 'tblTempVendorCDR_20' ) start [2025-02-05 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410551', 'tblTempVendorCDR_20' ) end [2025-02-05 21:48:19] Production.INFO: ProcessCDR(1,14410551,1,1,2) [2025-02-05 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410551', 'tblTempUsageDetail_20' ) start [2025-02-05 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410551', 'tblTempUsageDetail_20' ) end [2025-02-05 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:48:22] Production.INFO: ==28712== Releasing lock... [2025-02-05 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:48:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-05 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:49:06 [end_date_ymd] => 2025-02-05 21:49:06 [RateCDR] => 1 ) [2025-02-05 21:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:49:06' and `end` < '2025-02-05 21:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:49:19] Production.INFO: count ==1542 [2025-02-05 21:49:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:49:06 - End Time 2025-02-05 21:49:06 [2025-02-05 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410556', 'tblTempUsageDetail_20' ) start [2025-02-05 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410556', 'tblTempUsageDetail_20' ) end [2025-02-05 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410556', 'tblTempVendorCDR_20' ) start [2025-02-05 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410556', 'tblTempVendorCDR_20' ) end [2025-02-05 21:49:19] Production.INFO: ProcessCDR(1,14410556,1,1,2) [2025-02-05 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410556', 'tblTempUsageDetail_20' ) start [2025-02-05 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410556', 'tblTempUsageDetail_20' ) end [2025-02-05 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:49:22] Production.INFO: ==28798== Releasing lock... [2025-02-05 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:49:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-05 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:50:05 [end_date_ymd] => 2025-02-05 21:50:05 [RateCDR] => 1 ) [2025-02-05 21:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:50:05' and `end` < '2025-02-05 21:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:50:19] Production.INFO: count ==1536 [2025-02-05 21:50:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:50:05 - End Time 2025-02-05 21:50:05 [2025-02-05 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410561', 'tblTempUsageDetail_20' ) start [2025-02-05 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410561', 'tblTempUsageDetail_20' ) end [2025-02-05 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410561', 'tblTempVendorCDR_20' ) start [2025-02-05 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410561', 'tblTempVendorCDR_20' ) end [2025-02-05 21:50:19] Production.INFO: ProcessCDR(1,14410561,1,1,2) [2025-02-05 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410561', 'tblTempUsageDetail_20' ) start [2025-02-05 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410561', 'tblTempUsageDetail_20' ) end [2025-02-05 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:50:22] Production.INFO: ==28872== Releasing lock... [2025-02-05 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:50:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-05 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:51:05 [end_date_ymd] => 2025-02-05 21:51:05 [RateCDR] => 1 ) [2025-02-05 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:51:05' and `end` < '2025-02-05 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:51:18] Production.INFO: count ==1485 [2025-02-05 21:51:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:51:05 - End Time 2025-02-05 21:51:05 [2025-02-05 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410567', 'tblTempUsageDetail_20' ) start [2025-02-05 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410567', 'tblTempUsageDetail_20' ) end [2025-02-05 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410567', 'tblTempVendorCDR_20' ) start [2025-02-05 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410567', 'tblTempVendorCDR_20' ) end [2025-02-05 21:51:19] Production.INFO: ProcessCDR(1,14410567,1,1,2) [2025-02-05 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410567', 'tblTempUsageDetail_20' ) start [2025-02-05 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410567', 'tblTempUsageDetail_20' ) end [2025-02-05 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:51:23] Production.INFO: ==28949== Releasing lock... [2025-02-05 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:51:23] Production.INFO: 39 MB #Memory Used# [2025-02-05 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:52:05 [end_date_ymd] => 2025-02-05 21:52:05 [RateCDR] => 1 ) [2025-02-05 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:52:05' and `end` < '2025-02-05 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:52:19] Production.INFO: count ==1485 [2025-02-05 21:52:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:52:05 - End Time 2025-02-05 21:52:05 [2025-02-05 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410572', 'tblTempUsageDetail_20' ) start [2025-02-05 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410572', 'tblTempUsageDetail_20' ) end [2025-02-05 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410572', 'tblTempVendorCDR_20' ) start [2025-02-05 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410572', 'tblTempVendorCDR_20' ) end [2025-02-05 21:52:19] Production.INFO: ProcessCDR(1,14410572,1,1,2) [2025-02-05 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410572', 'tblTempUsageDetail_20' ) start [2025-02-05 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410572', 'tblTempUsageDetail_20' ) end [2025-02-05 21:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:52:24] Production.INFO: ==29029== Releasing lock... [2025-02-05 21:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:52:24] Production.INFO: 39 MB #Memory Used# [2025-02-05 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:53:05 [end_date_ymd] => 2025-02-05 21:53:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:53:05' and `end` < '2025-02-05 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-02-05 21:53:18] Production.INFO: count ==1485 [2025-02-05 21:53:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:53:05 - End Time 2025-02-05 21:53:05 [2025-02-05 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410577', 'tblTempUsageDetail_20' ) start [2025-02-05 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410577', 'tblTempUsageDetail_20' ) end [2025-02-05 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410577', 'tblTempVendorCDR_20' ) start [2025-02-05 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410577', 'tblTempVendorCDR_20' ) end [2025-02-05 21:53:19] Production.INFO: ProcessCDR(1,14410577,1,1,2) [2025-02-05 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410577', 'tblTempUsageDetail_20' ) start [2025-02-05 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410577', 'tblTempUsageDetail_20' ) end [2025-02-05 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:53:22] Production.INFO: ==29145== Releasing lock... [2025-02-05 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:53:22] Production.INFO: 39 MB #Memory Used# [2025-02-05 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:54:05 [end_date_ymd] => 2025-02-05 21:54:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 18:54:05' and `end` < '2025-02-05 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-02-05 21:54:19] Production.INFO: count ==1480 [2025-02-05 21:54:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:54:05 - End Time 2025-02-05 21:54:05 [2025-02-05 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410582', 'tblTempUsageDetail_20' ) start [2025-02-05 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410582', 'tblTempUsageDetail_20' ) end [2025-02-05 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410582', 'tblTempVendorCDR_20' ) start [2025-02-05 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410582', 'tblTempVendorCDR_20' ) end [2025-02-05 21:54:19] Production.INFO: ProcessCDR(1,14410582,1,1,2) [2025-02-05 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410582', 'tblTempUsageDetail_20' ) start [2025-02-05 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410582', 'tblTempUsageDetail_20' ) end [2025-02-05 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:54:22] Production.INFO: ==29218== Releasing lock... [2025-02-05 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:54:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-05 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:55:05 [end_date_ymd] => 2025-02-05 21:55:05 [RateCDR] => 1 ) [2025-02-05 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:55:05' and `end` < '2025-02-05 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:55:19] Production.INFO: count ==1478 [2025-02-05 21:55:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:55:05 - End Time 2025-02-05 21:55:05 [2025-02-05 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410587', 'tblTempUsageDetail_20' ) start [2025-02-05 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410587', 'tblTempUsageDetail_20' ) end [2025-02-05 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410587', 'tblTempVendorCDR_20' ) start [2025-02-05 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410587', 'tblTempVendorCDR_20' ) end [2025-02-05 21:55:19] Production.INFO: ProcessCDR(1,14410587,1,1,2) [2025-02-05 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410587', 'tblTempUsageDetail_20' ) start [2025-02-05 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410587', 'tblTempUsageDetail_20' ) end [2025-02-05 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:55:23] Production.INFO: ==29295== Releasing lock... [2025-02-05 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:55:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-05 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:56:05 [end_date_ymd] => 2025-02-05 21:56:05 [RateCDR] => 1 ) [2025-02-05 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:56:05' and `end` < '2025-02-05 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:56:18] Production.INFO: count ==1478 [2025-02-05 21:56:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:56:05 - End Time 2025-02-05 21:56:05 [2025-02-05 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410592', 'tblTempUsageDetail_20' ) start [2025-02-05 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410592', 'tblTempUsageDetail_20' ) end [2025-02-05 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410592', 'tblTempVendorCDR_20' ) start [2025-02-05 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410592', 'tblTempVendorCDR_20' ) end [2025-02-05 21:56:18] Production.INFO: ProcessCDR(1,14410592,1,1,2) [2025-02-05 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410592', 'tblTempUsageDetail_20' ) start [2025-02-05 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410592', 'tblTempUsageDetail_20' ) end [2025-02-05 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:56:21] Production.INFO: ==29372== Releasing lock... [2025-02-05 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:56:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-05 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:57:05 [end_date_ymd] => 2025-02-05 21:57:05 [RateCDR] => 1 ) [2025-02-05 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:57:05' and `end` < '2025-02-05 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:57:18] Production.INFO: count ==1465 [2025-02-05 21:57:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:57:05 - End Time 2025-02-05 21:57:05 [2025-02-05 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410597', 'tblTempUsageDetail_20' ) start [2025-02-05 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410597', 'tblTempUsageDetail_20' ) end [2025-02-05 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410597', 'tblTempVendorCDR_20' ) start [2025-02-05 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410597', 'tblTempVendorCDR_20' ) end [2025-02-05 21:57:18] Production.INFO: ProcessCDR(1,14410597,1,1,2) [2025-02-05 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410597', 'tblTempUsageDetail_20' ) start [2025-02-05 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410597', 'tblTempUsageDetail_20' ) end [2025-02-05 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:57:22] Production.INFO: ==29445== Releasing lock... [2025-02-05 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:57:22] Production.INFO: 39 MB #Memory Used# [2025-02-05 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:58:05 [end_date_ymd] => 2025-02-05 21:58:05 [RateCDR] => 1 ) [2025-02-05 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:58:05' and `end` < '2025-02-05 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:58:18] Production.INFO: count ==1462 [2025-02-05 21:58:18] Production.ERROR: pbx CDR StartTime 2025-02-05 18:58:05 - End Time 2025-02-05 21:58:05 [2025-02-05 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410602', 'tblTempUsageDetail_20' ) start [2025-02-05 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410602', 'tblTempUsageDetail_20' ) end [2025-02-05 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410602', 'tblTempVendorCDR_20' ) start [2025-02-05 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410602', 'tblTempVendorCDR_20' ) end [2025-02-05 21:58:18] Production.INFO: ProcessCDR(1,14410602,1,1,2) [2025-02-05 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410602', 'tblTempUsageDetail_20' ) start [2025-02-05 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410602', 'tblTempUsageDetail_20' ) end [2025-02-05 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:58:23] Production.INFO: ==29517== Releasing lock... [2025-02-05 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:58:23] Production.INFO: 39 MB #Memory Used# [2025-02-05 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 18:59:05 [end_date_ymd] => 2025-02-05 21:59:05 [RateCDR] => 1 ) [2025-02-05 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 18:59:05' and `end` < '2025-02-05 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 21:59:19] Production.INFO: count ==1452 [2025-02-05 21:59:19] Production.ERROR: pbx CDR StartTime 2025-02-05 18:59:05 - End Time 2025-02-05 21:59:05 [2025-02-05 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410607', 'tblTempUsageDetail_20' ) start [2025-02-05 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410607', 'tblTempUsageDetail_20' ) end [2025-02-05 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410607', 'tblTempVendorCDR_20' ) start [2025-02-05 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410607', 'tblTempVendorCDR_20' ) end [2025-02-05 21:59:19] Production.INFO: ProcessCDR(1,14410607,1,1,2) [2025-02-05 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410607', 'tblTempUsageDetail_20' ) start [2025-02-05 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410607', 'tblTempUsageDetail_20' ) end [2025-02-05 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 21:59:23] Production.INFO: ==29595== Releasing lock... [2025-02-05 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 21:59:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-05 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:00:06 [end_date_ymd] => 2025-02-05 22:00:06 [RateCDR] => 1 ) [2025-02-05 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:00:06' and `end` < '2025-02-05 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:00:19] Production.INFO: count ==1451 [2025-02-05 22:00:20] Production.ERROR: pbx CDR StartTime 2025-02-05 19:00:06 - End Time 2025-02-05 22:00:06 [2025-02-05 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410612', 'tblTempUsageDetail_20' ) start [2025-02-05 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410612', 'tblTempUsageDetail_20' ) end [2025-02-05 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410612', 'tblTempVendorCDR_20' ) start [2025-02-05 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410612', 'tblTempVendorCDR_20' ) end [2025-02-05 22:00:20] Production.INFO: ProcessCDR(1,14410612,1,1,2) [2025-02-05 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410612', 'tblTempUsageDetail_20' ) start [2025-02-05 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410612', 'tblTempUsageDetail_20' ) end [2025-02-05 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:00:23] Production.INFO: ==29677== Releasing lock... [2025-02-05 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:00:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-05 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:01:05 [end_date_ymd] => 2025-02-05 22:01:05 [RateCDR] => 1 ) [2025-02-05 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:01:05' and `end` < '2025-02-05 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:01:20] Production.INFO: count ==1390 [2025-02-05 22:01:20] Production.ERROR: pbx CDR StartTime 2025-02-05 19:01:05 - End Time 2025-02-05 22:01:05 [2025-02-05 22:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410618', 'tblTempUsageDetail_20' ) start [2025-02-05 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410618', 'tblTempUsageDetail_20' ) end [2025-02-05 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410618', 'tblTempVendorCDR_20' ) start [2025-02-05 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410618', 'tblTempVendorCDR_20' ) end [2025-02-05 22:01:20] Production.INFO: ProcessCDR(1,14410618,1,1,2) [2025-02-05 22:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410618', 'tblTempUsageDetail_20' ) start [2025-02-05 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410618', 'tblTempUsageDetail_20' ) end [2025-02-05 22:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:01:23] Production.INFO: ==29772== Releasing lock... [2025-02-05 22:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:01:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-05 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:02:06 [end_date_ymd] => 2025-02-05 22:02:06 [RateCDR] => 1 ) [2025-02-05 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:02:06' and `end` < '2025-02-05 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:02:19] Production.INFO: count ==1384 [2025-02-05 22:02:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:02:06 - End Time 2025-02-05 22:02:06 [2025-02-05 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410623', 'tblTempUsageDetail_20' ) start [2025-02-05 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410623', 'tblTempUsageDetail_20' ) end [2025-02-05 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410623', 'tblTempVendorCDR_20' ) start [2025-02-05 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410623', 'tblTempVendorCDR_20' ) end [2025-02-05 22:02:19] Production.INFO: ProcessCDR(1,14410623,1,1,2) [2025-02-05 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410623', 'tblTempUsageDetail_20' ) start [2025-02-05 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410623', 'tblTempUsageDetail_20' ) end [2025-02-05 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:02:22] Production.INFO: ==29854== Releasing lock... [2025-02-05 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:02:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-05 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:03:05 [end_date_ymd] => 2025-02-05 22:03:05 [RateCDR] => 1 ) [2025-02-05 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:03:05' and `end` < '2025-02-05 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:03:18] Production.INFO: count ==1378 [2025-02-05 22:03:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:03:05 - End Time 2025-02-05 22:03:05 [2025-02-05 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410628', 'tblTempUsageDetail_20' ) start [2025-02-05 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410628', 'tblTempUsageDetail_20' ) end [2025-02-05 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410628', 'tblTempVendorCDR_20' ) start [2025-02-05 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410628', 'tblTempVendorCDR_20' ) end [2025-02-05 22:03:19] Production.INFO: ProcessCDR(1,14410628,1,1,2) [2025-02-05 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410628', 'tblTempUsageDetail_20' ) start [2025-02-05 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410628', 'tblTempUsageDetail_20' ) end [2025-02-05 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:03:22] Production.INFO: ==29932== Releasing lock... [2025-02-05 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:03:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-05 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:04:05 [end_date_ymd] => 2025-02-05 22:04:05 [RateCDR] => 1 ) [2025-02-05 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:04:05' and `end` < '2025-02-05 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:04:19] Production.INFO: count ==1372 [2025-02-05 22:04:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:04:05 - End Time 2025-02-05 22:04:05 [2025-02-05 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410633', 'tblTempUsageDetail_20' ) start [2025-02-05 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410633', 'tblTempUsageDetail_20' ) end [2025-02-05 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410633', 'tblTempVendorCDR_20' ) start [2025-02-05 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410633', 'tblTempVendorCDR_20' ) end [2025-02-05 22:04:19] Production.INFO: ProcessCDR(1,14410633,1,1,2) [2025-02-05 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410633', 'tblTempUsageDetail_20' ) start [2025-02-05 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410633', 'tblTempUsageDetail_20' ) end [2025-02-05 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:04:22] Production.INFO: ==30016== Releasing lock... [2025-02-05 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:04:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-05 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:05:05 [end_date_ymd] => 2025-02-05 22:05:05 [RateCDR] => 1 ) [2025-02-05 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:05:05' and `end` < '2025-02-05 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:05:18] Production.INFO: count ==1370 [2025-02-05 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:05:05 - End Time 2025-02-05 22:05:05 [2025-02-05 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410638', 'tblTempUsageDetail_20' ) start [2025-02-05 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410638', 'tblTempUsageDetail_20' ) end [2025-02-05 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410638', 'tblTempVendorCDR_20' ) start [2025-02-05 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410638', 'tblTempVendorCDR_20' ) end [2025-02-05 22:05:18] Production.INFO: ProcessCDR(1,14410638,1,1,2) [2025-02-05 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410638', 'tblTempUsageDetail_20' ) start [2025-02-05 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410638', 'tblTempUsageDetail_20' ) end [2025-02-05 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:05:21] Production.INFO: ==30099== Releasing lock... [2025-02-05 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:05:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-05 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:06:06 [end_date_ymd] => 2025-02-05 22:06:06 [RateCDR] => 1 ) [2025-02-05 22:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:06:06' and `end` < '2025-02-05 22:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:06:19] Production.INFO: count ==1368 [2025-02-05 22:06:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:06:06 - End Time 2025-02-05 22:06:06 [2025-02-05 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410643', 'tblTempUsageDetail_20' ) start [2025-02-05 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410643', 'tblTempUsageDetail_20' ) end [2025-02-05 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410643', 'tblTempVendorCDR_20' ) start [2025-02-05 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410643', 'tblTempVendorCDR_20' ) end [2025-02-05 22:06:19] Production.INFO: ProcessCDR(1,14410643,1,1,2) [2025-02-05 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410643', 'tblTempUsageDetail_20' ) start [2025-02-05 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410643', 'tblTempUsageDetail_20' ) end [2025-02-05 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:06:22] Production.INFO: ==30181== Releasing lock... [2025-02-05 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:06:22] Production.INFO: 38 MB #Memory Used# [2025-02-05 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:07:05 [end_date_ymd] => 2025-02-05 22:07:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 19:07:05' and `end` < '2025-02-05 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-02-05 22:07:18] Production.INFO: count ==1368 [2025-02-05 22:07:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:07:05 - End Time 2025-02-05 22:07:05 [2025-02-05 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410648', 'tblTempUsageDetail_20' ) start [2025-02-05 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410648', 'tblTempUsageDetail_20' ) end [2025-02-05 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410648', 'tblTempVendorCDR_20' ) start [2025-02-05 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410648', 'tblTempVendorCDR_20' ) end [2025-02-05 22:07:19] Production.INFO: ProcessCDR(1,14410648,1,1,2) [2025-02-05 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410648', 'tblTempUsageDetail_20' ) start [2025-02-05 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410648', 'tblTempUsageDetail_20' ) end [2025-02-05 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:07:22] Production.INFO: ==30262== Releasing lock... [2025-02-05 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:07:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-05 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:08:05 [end_date_ymd] => 2025-02-05 22:08:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 19:08:05' and `end` < '2025-02-05 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-02-05 22:08:19] Production.INFO: count ==1373 [2025-02-05 22:08:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:08:05 - End Time 2025-02-05 22:08:05 [2025-02-05 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410653', 'tblTempUsageDetail_20' ) start [2025-02-05 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410653', 'tblTempUsageDetail_20' ) end [2025-02-05 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410653', 'tblTempVendorCDR_20' ) start [2025-02-05 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410653', 'tblTempVendorCDR_20' ) end [2025-02-05 22:08:19] Production.INFO: ProcessCDR(1,14410653,1,1,2) [2025-02-05 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410653', 'tblTempUsageDetail_20' ) start [2025-02-05 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410653', 'tblTempUsageDetail_20' ) end [2025-02-05 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:08:22] Production.INFO: ==30383== Releasing lock... [2025-02-05 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:08:22] Production.INFO: 38 MB #Memory Used# [2025-02-05 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:09:05 [end_date_ymd] => 2025-02-05 22:09:05 [RateCDR] => 1 ) [2025-02-05 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:09:05' and `end` < '2025-02-05 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:09:18] Production.INFO: count ==1363 [2025-02-05 22:09:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:09:05 - End Time 2025-02-05 22:09:05 [2025-02-05 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410658', 'tblTempUsageDetail_20' ) start [2025-02-05 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410658', 'tblTempUsageDetail_20' ) end [2025-02-05 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410658', 'tblTempVendorCDR_20' ) start [2025-02-05 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410658', 'tblTempVendorCDR_20' ) end [2025-02-05 22:09:19] Production.INFO: ProcessCDR(1,14410658,1,1,2) [2025-02-05 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410658', 'tblTempUsageDetail_20' ) start [2025-02-05 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410658', 'tblTempUsageDetail_20' ) end [2025-02-05 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:09:22] Production.INFO: ==30462== Releasing lock... [2025-02-05 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:09:22] Production.INFO: 38 MB #Memory Used# [2025-02-05 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:10:06 [end_date_ymd] => 2025-02-05 22:10:06 [RateCDR] => 1 ) [2025-02-05 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:10:06' and `end` < '2025-02-05 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:10:19] Production.INFO: count ==1360 [2025-02-05 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:10:06 - End Time 2025-02-05 22:10:06 [2025-02-05 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410664', 'tblTempUsageDetail_20' ) start [2025-02-05 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410664', 'tblTempUsageDetail_20' ) end [2025-02-05 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410664', 'tblTempVendorCDR_20' ) start [2025-02-05 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410664', 'tblTempVendorCDR_20' ) end [2025-02-05 22:10:19] Production.INFO: ProcessCDR(1,14410664,1,1,2) [2025-02-05 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410664', 'tblTempUsageDetail_20' ) start [2025-02-05 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410664', 'tblTempUsageDetail_20' ) end [2025-02-05 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:10:22] Production.INFO: ==30536== Releasing lock... [2025-02-05 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:10:22] Production.INFO: 38 MB #Memory Used# [2025-02-05 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:11:05 [end_date_ymd] => 2025-02-05 22:11:05 [RateCDR] => 1 ) [2025-02-05 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:11:05' and `end` < '2025-02-05 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:11:18] Production.INFO: count ==1300 [2025-02-05 22:11:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:11:05 - End Time 2025-02-05 22:11:05 [2025-02-05 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410669', 'tblTempUsageDetail_20' ) start [2025-02-05 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410669', 'tblTempUsageDetail_20' ) end [2025-02-05 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410669', 'tblTempVendorCDR_20' ) start [2025-02-05 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410669', 'tblTempVendorCDR_20' ) end [2025-02-05 22:11:19] Production.INFO: ProcessCDR(1,14410669,1,1,2) [2025-02-05 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410669', 'tblTempUsageDetail_20' ) start [2025-02-05 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410669', 'tblTempUsageDetail_20' ) end [2025-02-05 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:11:22] Production.INFO: ==30623== Releasing lock... [2025-02-05 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:11:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-05 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:12:05 [end_date_ymd] => 2025-02-05 22:12:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 19:12:05' and `end` < '2025-02-05 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-02-05 22:12:19] Production.INFO: count ==1294 [2025-02-05 22:12:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:12:05 - End Time 2025-02-05 22:12:05 [2025-02-05 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410674', 'tblTempUsageDetail_20' ) start [2025-02-05 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410674', 'tblTempUsageDetail_20' ) end [2025-02-05 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410674', 'tblTempVendorCDR_20' ) start [2025-02-05 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410674', 'tblTempVendorCDR_20' ) end [2025-02-05 22:12:19] Production.INFO: ProcessCDR(1,14410674,1,1,2) [2025-02-05 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410674', 'tblTempUsageDetail_20' ) start [2025-02-05 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410674', 'tblTempUsageDetail_20' ) end [2025-02-05 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:12:22] Production.INFO: ==30703== Releasing lock... [2025-02-05 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:12:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-05 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:13:06 [end_date_ymd] => 2025-02-05 22:13:06 [RateCDR] => 1 ) [2025-02-05 22:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:13:06' and `end` < '2025-02-05 22:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:13:19] Production.INFO: count ==1286 [2025-02-05 22:13:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:13:06 - End Time 2025-02-05 22:13:06 [2025-02-05 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410679', 'tblTempUsageDetail_20' ) start [2025-02-05 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410679', 'tblTempUsageDetail_20' ) end [2025-02-05 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410679', 'tblTempVendorCDR_20' ) start [2025-02-05 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410679', 'tblTempVendorCDR_20' ) end [2025-02-05 22:13:19] Production.INFO: ProcessCDR(1,14410679,1,1,2) [2025-02-05 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410679', 'tblTempUsageDetail_20' ) start [2025-02-05 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410679', 'tblTempUsageDetail_20' ) end [2025-02-05 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:13:23] Production.INFO: ==30779== Releasing lock... [2025-02-05 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:13:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-05 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:14:05 [end_date_ymd] => 2025-02-05 22:14:05 [RateCDR] => 1 ) [2025-02-05 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:14:05' and `end` < '2025-02-05 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:14:19] Production.INFO: count ==1276 [2025-02-05 22:14:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:14:05 - End Time 2025-02-05 22:14:05 [2025-02-05 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410684', 'tblTempUsageDetail_20' ) start [2025-02-05 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410684', 'tblTempUsageDetail_20' ) end [2025-02-05 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410684', 'tblTempVendorCDR_20' ) start [2025-02-05 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410684', 'tblTempVendorCDR_20' ) end [2025-02-05 22:14:19] Production.INFO: ProcessCDR(1,14410684,1,1,2) [2025-02-05 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410684', 'tblTempUsageDetail_20' ) start [2025-02-05 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410684', 'tblTempUsageDetail_20' ) end [2025-02-05 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:14:22] Production.INFO: ==30860== Releasing lock... [2025-02-05 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:14:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-05 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:15:05 [end_date_ymd] => 2025-02-05 22:15:05 [RateCDR] => 1 ) [2025-02-05 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:15:05' and `end` < '2025-02-05 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:15:18] Production.INFO: count ==1276 [2025-02-05 22:15:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:15:05 - End Time 2025-02-05 22:15:05 [2025-02-05 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410689', 'tblTempUsageDetail_20' ) start [2025-02-05 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410689', 'tblTempUsageDetail_20' ) end [2025-02-05 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410689', 'tblTempVendorCDR_20' ) start [2025-02-05 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410689', 'tblTempVendorCDR_20' ) end [2025-02-05 22:15:19] Production.INFO: ProcessCDR(1,14410689,1,1,2) [2025-02-05 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410689', 'tblTempUsageDetail_20' ) start [2025-02-05 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410689', 'tblTempUsageDetail_20' ) end [2025-02-05 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:15:22] Production.INFO: ==30941== Releasing lock... [2025-02-05 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:15:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-05 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:16:05 [end_date_ymd] => 2025-02-05 22:16:05 [RateCDR] => 1 ) [2025-02-05 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:16:05' and `end` < '2025-02-05 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:16:18] Production.INFO: count ==1277 [2025-02-05 22:16:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:16:05 - End Time 2025-02-05 22:16:05 [2025-02-05 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410694', 'tblTempUsageDetail_20' ) start [2025-02-05 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410694', 'tblTempUsageDetail_20' ) end [2025-02-05 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410694', 'tblTempVendorCDR_20' ) start [2025-02-05 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410694', 'tblTempVendorCDR_20' ) end [2025-02-05 22:16:19] Production.INFO: ProcessCDR(1,14410694,1,1,2) [2025-02-05 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410694', 'tblTempUsageDetail_20' ) start [2025-02-05 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410694', 'tblTempUsageDetail_20' ) end [2025-02-05 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:16:22] Production.INFO: ==31026== Releasing lock... [2025-02-05 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:16:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:17:05 [end_date_ymd] => 2025-02-05 22:17:05 [RateCDR] => 1 ) [2025-02-05 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:17:05' and `end` < '2025-02-05 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:17:19] Production.INFO: count ==1277 [2025-02-05 22:17:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:17:05 - End Time 2025-02-05 22:17:05 [2025-02-05 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410699', 'tblTempUsageDetail_20' ) start [2025-02-05 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410699', 'tblTempUsageDetail_20' ) end [2025-02-05 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410699', 'tblTempVendorCDR_20' ) start [2025-02-05 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410699', 'tblTempVendorCDR_20' ) end [2025-02-05 22:17:19] Production.INFO: ProcessCDR(1,14410699,1,1,2) [2025-02-05 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410699', 'tblTempUsageDetail_20' ) start [2025-02-05 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410699', 'tblTempUsageDetail_20' ) end [2025-02-05 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:17:22] Production.INFO: ==31101== Releasing lock... [2025-02-05 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:17:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:18:05 [end_date_ymd] => 2025-02-05 22:18:05 [RateCDR] => 1 ) [2025-02-05 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:18:05' and `end` < '2025-02-05 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:18:18] Production.INFO: count ==1277 [2025-02-05 22:18:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:18:05 - End Time 2025-02-05 22:18:05 [2025-02-05 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410704', 'tblTempUsageDetail_20' ) start [2025-02-05 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410704', 'tblTempUsageDetail_20' ) end [2025-02-05 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410704', 'tblTempVendorCDR_20' ) start [2025-02-05 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410704', 'tblTempVendorCDR_20' ) end [2025-02-05 22:18:19] Production.INFO: ProcessCDR(1,14410704,1,1,2) [2025-02-05 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410704', 'tblTempUsageDetail_20' ) start [2025-02-05 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410704', 'tblTempUsageDetail_20' ) end [2025-02-05 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:18:22] Production.INFO: ==31183== Releasing lock... [2025-02-05 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:18:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:19:06 [end_date_ymd] => 2025-02-05 22:19:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 19:19:06' and `end` < '2025-02-05 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-02-05 22:19:19] Production.INFO: count ==1277 [2025-02-05 22:19:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:19:06 - End Time 2025-02-05 22:19:06 [2025-02-05 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410709', 'tblTempUsageDetail_20' ) start [2025-02-05 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410709', 'tblTempUsageDetail_20' ) end [2025-02-05 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410709', 'tblTempVendorCDR_20' ) start [2025-02-05 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410709', 'tblTempVendorCDR_20' ) end [2025-02-05 22:19:19] Production.INFO: ProcessCDR(1,14410709,1,1,2) [2025-02-05 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410709', 'tblTempUsageDetail_20' ) start [2025-02-05 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410709', 'tblTempUsageDetail_20' ) end [2025-02-05 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:19:22] Production.INFO: ==31265== Releasing lock... [2025-02-05 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:19:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:20:05 [end_date_ymd] => 2025-02-05 22:20:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 19:20:05' and `end` < '2025-02-05 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-02-05 22:20:18] Production.INFO: count ==1281 [2025-02-05 22:20:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:20:05 - End Time 2025-02-05 22:20:05 [2025-02-05 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410714', 'tblTempUsageDetail_20' ) start [2025-02-05 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410714', 'tblTempUsageDetail_20' ) end [2025-02-05 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410714', 'tblTempVendorCDR_20' ) start [2025-02-05 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410714', 'tblTempVendorCDR_20' ) end [2025-02-05 22:20:19] Production.INFO: ProcessCDR(1,14410714,1,1,2) [2025-02-05 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410714', 'tblTempUsageDetail_20' ) start [2025-02-05 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410714', 'tblTempUsageDetail_20' ) end [2025-02-05 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:20:22] Production.INFO: ==31346== Releasing lock... [2025-02-05 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:20:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-05 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:21:05 [end_date_ymd] => 2025-02-05 22:21:05 [RateCDR] => 1 ) [2025-02-05 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:21:05' and `end` < '2025-02-05 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:21:18] Production.INFO: count ==1254 [2025-02-05 22:21:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:21:05 - End Time 2025-02-05 22:21:05 [2025-02-05 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410720', 'tblTempUsageDetail_20' ) start [2025-02-05 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410720', 'tblTempUsageDetail_20' ) end [2025-02-05 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410720', 'tblTempVendorCDR_20' ) start [2025-02-05 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410720', 'tblTempVendorCDR_20' ) end [2025-02-05 22:21:19] Production.INFO: ProcessCDR(1,14410720,1,1,2) [2025-02-05 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410720', 'tblTempUsageDetail_20' ) start [2025-02-05 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410720', 'tblTempUsageDetail_20' ) end [2025-02-05 22:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:21:23] Production.INFO: ==31426== Releasing lock... [2025-02-05 22:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:21:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:22:05 [end_date_ymd] => 2025-02-05 22:22:05 [RateCDR] => 1 ) [2025-02-05 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:22:05' and `end` < '2025-02-05 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:22:19] Production.INFO: count ==1258 [2025-02-05 22:22:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:22:05 - End Time 2025-02-05 22:22:05 [2025-02-05 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410725', 'tblTempUsageDetail_20' ) start [2025-02-05 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410725', 'tblTempUsageDetail_20' ) end [2025-02-05 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410725', 'tblTempVendorCDR_20' ) start [2025-02-05 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410725', 'tblTempVendorCDR_20' ) end [2025-02-05 22:22:19] Production.INFO: ProcessCDR(1,14410725,1,1,2) [2025-02-05 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410725', 'tblTempUsageDetail_20' ) start [2025-02-05 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410725', 'tblTempUsageDetail_20' ) end [2025-02-05 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:22:23] Production.INFO: ==31507== Releasing lock... [2025-02-05 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:22:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:23:05 [end_date_ymd] => 2025-02-05 22:23:05 [RateCDR] => 1 ) [2025-02-05 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:23:05' and `end` < '2025-02-05 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:23:18] Production.INFO: count ==1260 [2025-02-05 22:23:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:23:05 - End Time 2025-02-05 22:23:05 [2025-02-05 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410730', 'tblTempUsageDetail_20' ) start [2025-02-05 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410730', 'tblTempUsageDetail_20' ) end [2025-02-05 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410730', 'tblTempVendorCDR_20' ) start [2025-02-05 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410730', 'tblTempVendorCDR_20' ) end [2025-02-05 22:23:19] Production.INFO: ProcessCDR(1,14410730,1,1,2) [2025-02-05 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410730', 'tblTempUsageDetail_20' ) start [2025-02-05 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410730', 'tblTempUsageDetail_20' ) end [2025-02-05 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:23:22] Production.INFO: ==31584== Releasing lock... [2025-02-05 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:23:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-05 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:24:05 [end_date_ymd] => 2025-02-05 22:24:05 [RateCDR] => 1 ) [2025-02-05 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:24:05' and `end` < '2025-02-05 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:24:18] Production.INFO: count ==1256 [2025-02-05 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:24:05 - End Time 2025-02-05 22:24:05 [2025-02-05 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410735', 'tblTempUsageDetail_20' ) start [2025-02-05 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410735', 'tblTempUsageDetail_20' ) end [2025-02-05 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410735', 'tblTempVendorCDR_20' ) start [2025-02-05 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410735', 'tblTempVendorCDR_20' ) end [2025-02-05 22:24:18] Production.INFO: ProcessCDR(1,14410735,1,1,2) [2025-02-05 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410735', 'tblTempUsageDetail_20' ) start [2025-02-05 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410735', 'tblTempUsageDetail_20' ) end [2025-02-05 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:24:22] Production.INFO: ==31705== Releasing lock... [2025-02-05 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:24:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-05 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:25:05 [end_date_ymd] => 2025-02-05 22:25:05 [RateCDR] => 1 ) [2025-02-05 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:25:05' and `end` < '2025-02-05 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:25:18] Production.INFO: count ==1253 [2025-02-05 22:25:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:25:05 - End Time 2025-02-05 22:25:05 [2025-02-05 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410740', 'tblTempUsageDetail_20' ) start [2025-02-05 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410740', 'tblTempUsageDetail_20' ) end [2025-02-05 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410740', 'tblTempVendorCDR_20' ) start [2025-02-05 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410740', 'tblTempVendorCDR_20' ) end [2025-02-05 22:25:19] Production.INFO: ProcessCDR(1,14410740,1,1,2) [2025-02-05 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410740', 'tblTempUsageDetail_20' ) start [2025-02-05 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410740', 'tblTempUsageDetail_20' ) end [2025-02-05 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:25:22] Production.INFO: ==31787== Releasing lock... [2025-02-05 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:25:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:26:05 [end_date_ymd] => 2025-02-05 22:26:05 [RateCDR] => 1 ) [2025-02-05 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:26:05' and `end` < '2025-02-05 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:26:19] Production.INFO: count ==1252 [2025-02-05 22:26:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:26:05 - End Time 2025-02-05 22:26:05 [2025-02-05 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410745', 'tblTempUsageDetail_20' ) start [2025-02-05 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410745', 'tblTempUsageDetail_20' ) end [2025-02-05 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410745', 'tblTempVendorCDR_20' ) start [2025-02-05 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410745', 'tblTempVendorCDR_20' ) end [2025-02-05 22:26:19] Production.INFO: ProcessCDR(1,14410745,1,1,2) [2025-02-05 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410745', 'tblTempUsageDetail_20' ) start [2025-02-05 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410745', 'tblTempUsageDetail_20' ) end [2025-02-05 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:26:22] Production.INFO: ==31864== Releasing lock... [2025-02-05 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:26:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:27:04 [end_date_ymd] => 2025-02-05 22:27:04 [RateCDR] => 1 ) [2025-02-05 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:27:04' and `end` < '2025-02-05 22:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:27:18] Production.INFO: count ==1253 [2025-02-05 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:27:04 - End Time 2025-02-05 22:27:04 [2025-02-05 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410750', 'tblTempUsageDetail_20' ) start [2025-02-05 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410750', 'tblTempUsageDetail_20' ) end [2025-02-05 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410750', 'tblTempVendorCDR_20' ) start [2025-02-05 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410750', 'tblTempVendorCDR_20' ) end [2025-02-05 22:27:18] Production.INFO: ProcessCDR(1,14410750,1,1,2) [2025-02-05 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410750', 'tblTempUsageDetail_20' ) start [2025-02-05 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410750', 'tblTempUsageDetail_20' ) end [2025-02-05 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:27:22] Production.INFO: ==31942== Releasing lock... [2025-02-05 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:27:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:28:05 [end_date_ymd] => 2025-02-05 22:28:05 [RateCDR] => 1 ) [2025-02-05 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:28:05' and `end` < '2025-02-05 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:28:18] Production.INFO: count ==1254 [2025-02-05 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:28:05 - End Time 2025-02-05 22:28:05 [2025-02-05 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410755', 'tblTempUsageDetail_20' ) start [2025-02-05 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410755', 'tblTempUsageDetail_20' ) end [2025-02-05 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410755', 'tblTempVendorCDR_20' ) start [2025-02-05 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410755', 'tblTempVendorCDR_20' ) end [2025-02-05 22:28:18] Production.INFO: ProcessCDR(1,14410755,1,1,2) [2025-02-05 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410755', 'tblTempUsageDetail_20' ) start [2025-02-05 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410755', 'tblTempUsageDetail_20' ) end [2025-02-05 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:28:21] Production.INFO: ==32022== Releasing lock... [2025-02-05 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:28:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:29:05 [end_date_ymd] => 2025-02-05 22:29:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 19:29:05' and `end` < '2025-02-05 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-02-05 22:29:19] Production.INFO: count ==1253 [2025-02-05 22:29:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:29:05 - End Time 2025-02-05 22:29:05 [2025-02-05 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410760', 'tblTempUsageDetail_20' ) start [2025-02-05 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410760', 'tblTempUsageDetail_20' ) end [2025-02-05 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410760', 'tblTempVendorCDR_20' ) start [2025-02-05 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410760', 'tblTempVendorCDR_20' ) end [2025-02-05 22:29:19] Production.INFO: ProcessCDR(1,14410760,1,1,2) [2025-02-05 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410760', 'tblTempUsageDetail_20' ) start [2025-02-05 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410760', 'tblTempUsageDetail_20' ) end [2025-02-05 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:29:22] Production.INFO: ==32095== Releasing lock... [2025-02-05 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:29:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:30:06 [end_date_ymd] => 2025-02-05 22:30:06 [RateCDR] => 1 ) [2025-02-05 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:30:06' and `end` < '2025-02-05 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:30:19] Production.INFO: count ==1252 [2025-02-05 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:30:06 - End Time 2025-02-05 22:30:06 [2025-02-05 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410765', 'tblTempUsageDetail_20' ) start [2025-02-05 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410765', 'tblTempUsageDetail_20' ) end [2025-02-05 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410765', 'tblTempVendorCDR_20' ) start [2025-02-05 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410765', 'tblTempVendorCDR_20' ) end [2025-02-05 22:30:19] Production.INFO: ProcessCDR(1,14410765,1,1,2) [2025-02-05 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410765', 'tblTempUsageDetail_20' ) start [2025-02-05 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410765', 'tblTempUsageDetail_20' ) end [2025-02-05 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:30:22] Production.INFO: ==32183== Releasing lock... [2025-02-05 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:30:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:31:06 [end_date_ymd] => 2025-02-05 22:31:06 [RateCDR] => 1 ) [2025-02-05 22:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:31:06' and `end` < '2025-02-05 22:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:31:19] Production.INFO: count ==1219 [2025-02-05 22:31:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:31:06 - End Time 2025-02-05 22:31:06 [2025-02-05 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410771', 'tblTempUsageDetail_20' ) start [2025-02-05 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410771', 'tblTempUsageDetail_20' ) end [2025-02-05 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410771', 'tblTempVendorCDR_20' ) start [2025-02-05 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410771', 'tblTempVendorCDR_20' ) end [2025-02-05 22:31:19] Production.INFO: ProcessCDR(1,14410771,1,1,2) [2025-02-05 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410771', 'tblTempUsageDetail_20' ) start [2025-02-05 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410771', 'tblTempUsageDetail_20' ) end [2025-02-05 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:31:22] Production.INFO: ==32269== Releasing lock... [2025-02-05 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:31:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:32:05 [end_date_ymd] => 2025-02-05 22:32:05 [RateCDR] => 1 ) [2025-02-05 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:32:05' and `end` < '2025-02-05 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:32:18] Production.INFO: count ==1219 [2025-02-05 22:32:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:32:05 - End Time 2025-02-05 22:32:05 [2025-02-05 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410776', 'tblTempUsageDetail_20' ) start [2025-02-05 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410776', 'tblTempUsageDetail_20' ) end [2025-02-05 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410776', 'tblTempVendorCDR_20' ) start [2025-02-05 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410776', 'tblTempVendorCDR_20' ) end [2025-02-05 22:32:18] Production.INFO: ProcessCDR(1,14410776,1,1,2) [2025-02-05 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410776', 'tblTempUsageDetail_20' ) start [2025-02-05 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410776', 'tblTempUsageDetail_20' ) end [2025-02-05 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:32:22] Production.INFO: ==32346== Releasing lock... [2025-02-05 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:32:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:33:06 [end_date_ymd] => 2025-02-05 22:33:06 [RateCDR] => 1 ) [2025-02-05 22:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:33:06' and `end` < '2025-02-05 22:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:33:19] Production.INFO: count ==1220 [2025-02-05 22:33:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:33:06 - End Time 2025-02-05 22:33:06 [2025-02-05 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410781', 'tblTempUsageDetail_20' ) start [2025-02-05 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410781', 'tblTempUsageDetail_20' ) end [2025-02-05 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410781', 'tblTempVendorCDR_20' ) start [2025-02-05 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410781', 'tblTempVendorCDR_20' ) end [2025-02-05 22:33:19] Production.INFO: ProcessCDR(1,14410781,1,1,2) [2025-02-05 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410781', 'tblTempUsageDetail_20' ) start [2025-02-05 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410781', 'tblTempUsageDetail_20' ) end [2025-02-05 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:33:22] Production.INFO: ==32424== Releasing lock... [2025-02-05 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:33:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:34:05 [end_date_ymd] => 2025-02-05 22:34:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 19:34:05' and `end` < '2025-02-05 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-02-05 22:34:18] Production.INFO: count ==1226 [2025-02-05 22:34:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:34:05 - End Time 2025-02-05 22:34:05 [2025-02-05 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410786', 'tblTempUsageDetail_20' ) start [2025-02-05 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410786', 'tblTempUsageDetail_20' ) end [2025-02-05 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410786', 'tblTempVendorCDR_20' ) start [2025-02-05 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410786', 'tblTempVendorCDR_20' ) end [2025-02-05 22:34:18] Production.INFO: ProcessCDR(1,14410786,1,1,2) [2025-02-05 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410786', 'tblTempUsageDetail_20' ) start [2025-02-05 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410786', 'tblTempUsageDetail_20' ) end [2025-02-05 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:34:22] Production.INFO: ==32504== Releasing lock... [2025-02-05 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:34:22] Production.INFO: 37 MB #Memory Used# [2025-02-05 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:35:05 [end_date_ymd] => 2025-02-05 22:35:05 [RateCDR] => 1 ) [2025-02-05 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:35:05' and `end` < '2025-02-05 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:35:18] Production.INFO: count ==1228 [2025-02-05 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:35:05 - End Time 2025-02-05 22:35:05 [2025-02-05 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410791', 'tblTempUsageDetail_20' ) start [2025-02-05 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410791', 'tblTempUsageDetail_20' ) end [2025-02-05 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410791', 'tblTempVendorCDR_20' ) start [2025-02-05 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410791', 'tblTempVendorCDR_20' ) end [2025-02-05 22:35:18] Production.INFO: ProcessCDR(1,14410791,1,1,2) [2025-02-05 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410791', 'tblTempUsageDetail_20' ) start [2025-02-05 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410791', 'tblTempUsageDetail_20' ) end [2025-02-05 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:35:22] Production.INFO: ==32581== Releasing lock... [2025-02-05 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:35:22] Production.INFO: 37 MB #Memory Used# [2025-02-05 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:36:05 [end_date_ymd] => 2025-02-05 22:36:05 [RateCDR] => 1 ) [2025-02-05 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:36:05' and `end` < '2025-02-05 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:36:19] Production.INFO: count ==1227 [2025-02-05 22:36:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:36:05 - End Time 2025-02-05 22:36:05 [2025-02-05 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410796', 'tblTempUsageDetail_20' ) start [2025-02-05 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410796', 'tblTempUsageDetail_20' ) end [2025-02-05 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410796', 'tblTempVendorCDR_20' ) start [2025-02-05 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410796', 'tblTempVendorCDR_20' ) end [2025-02-05 22:36:19] Production.INFO: ProcessCDR(1,14410796,1,1,2) [2025-02-05 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410796', 'tblTempUsageDetail_20' ) start [2025-02-05 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410796', 'tblTempUsageDetail_20' ) end [2025-02-05 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:36:22] Production.INFO: ==32657== Releasing lock... [2025-02-05 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:36:22] Production.INFO: 37 MB #Memory Used# [2025-02-05 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:37:05 [end_date_ymd] => 2025-02-05 22:37:05 [RateCDR] => 1 ) [2025-02-05 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:37:05' and `end` < '2025-02-05 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:37:19] Production.INFO: count ==1226 [2025-02-05 22:37:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:37:05 - End Time 2025-02-05 22:37:05 [2025-02-05 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410801', 'tblTempUsageDetail_20' ) start [2025-02-05 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410801', 'tblTempUsageDetail_20' ) end [2025-02-05 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410801', 'tblTempVendorCDR_20' ) start [2025-02-05 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410801', 'tblTempVendorCDR_20' ) end [2025-02-05 22:37:19] Production.INFO: ProcessCDR(1,14410801,1,1,2) [2025-02-05 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410801', 'tblTempUsageDetail_20' ) start [2025-02-05 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410801', 'tblTempUsageDetail_20' ) end [2025-02-05 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:37:22] Production.INFO: ==32734== Releasing lock... [2025-02-05 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:37:22] Production.INFO: 37 MB #Memory Used# [2025-02-05 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:38:06 [end_date_ymd] => 2025-02-05 22:38:06 [RateCDR] => 1 ) [2025-02-05 22:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:38:06' and `end` < '2025-02-05 22:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:38:19] Production.INFO: count ==1223 [2025-02-05 22:38:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:38:06 - End Time 2025-02-05 22:38:06 [2025-02-05 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410806', 'tblTempUsageDetail_20' ) start [2025-02-05 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410806', 'tblTempUsageDetail_20' ) end [2025-02-05 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410806', 'tblTempVendorCDR_20' ) start [2025-02-05 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410806', 'tblTempVendorCDR_20' ) end [2025-02-05 22:38:19] Production.INFO: ProcessCDR(1,14410806,1,1,2) [2025-02-05 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410806', 'tblTempUsageDetail_20' ) start [2025-02-05 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410806', 'tblTempUsageDetail_20' ) end [2025-02-05 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:38:23] Production.INFO: ==364== Releasing lock... [2025-02-05 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:38:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:39:05 [end_date_ymd] => 2025-02-05 22:39:05 [RateCDR] => 1 ) [2025-02-05 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:39:05' and `end` < '2025-02-05 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:39:18] Production.INFO: count ==1218 [2025-02-05 22:39:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:39:05 - End Time 2025-02-05 22:39:05 [2025-02-05 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410811', 'tblTempUsageDetail_20' ) start [2025-02-05 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410811', 'tblTempUsageDetail_20' ) end [2025-02-05 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410811', 'tblTempVendorCDR_20' ) start [2025-02-05 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410811', 'tblTempVendorCDR_20' ) end [2025-02-05 22:39:19] Production.INFO: ProcessCDR(1,14410811,1,1,2) [2025-02-05 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410811', 'tblTempUsageDetail_20' ) start [2025-02-05 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410811', 'tblTempUsageDetail_20' ) end [2025-02-05 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:39:22] Production.INFO: ==481== Releasing lock... [2025-02-05 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:39:22] Production.INFO: 37 MB #Memory Used# [2025-02-05 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:40:06 [end_date_ymd] => 2025-02-05 22:40:06 [RateCDR] => 1 ) [2025-02-05 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:40:06' and `end` < '2025-02-05 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:40:19] Production.INFO: count ==1221 [2025-02-05 22:40:20] Production.ERROR: pbx CDR StartTime 2025-02-05 19:40:06 - End Time 2025-02-05 22:40:06 [2025-02-05 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410817', 'tblTempUsageDetail_20' ) start [2025-02-05 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410817', 'tblTempUsageDetail_20' ) end [2025-02-05 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410817', 'tblTempVendorCDR_20' ) start [2025-02-05 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410817', 'tblTempVendorCDR_20' ) end [2025-02-05 22:40:20] Production.INFO: ProcessCDR(1,14410817,1,1,2) [2025-02-05 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410817', 'tblTempUsageDetail_20' ) start [2025-02-05 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410817', 'tblTempUsageDetail_20' ) end [2025-02-05 22:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:40:24] Production.INFO: ==570== Releasing lock... [2025-02-05 22:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:40:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-05 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:41:04 [end_date_ymd] => 2025-02-05 22:41:04 [RateCDR] => 1 ) [2025-02-05 22:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:41:04' and `end` < '2025-02-05 22:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:41:17] Production.INFO: count ==1211 [2025-02-05 22:41:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:41:04 - End Time 2025-02-05 22:41:04 [2025-02-05 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410822', 'tblTempUsageDetail_20' ) start [2025-02-05 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410822', 'tblTempUsageDetail_20' ) end [2025-02-05 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410822', 'tblTempVendorCDR_20' ) start [2025-02-05 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410822', 'tblTempVendorCDR_20' ) end [2025-02-05 22:41:18] Production.INFO: ProcessCDR(1,14410822,1,1,2) [2025-02-05 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410822', 'tblTempUsageDetail_20' ) start [2025-02-05 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410822', 'tblTempUsageDetail_20' ) end [2025-02-05 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:41:21] Production.INFO: ==654== Releasing lock... [2025-02-05 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:41:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-05 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:42:05 [end_date_ymd] => 2025-02-05 22:42:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 19:42:05' and `end` < '2025-02-05 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-02-05 22:42:19] Production.INFO: count ==1204 [2025-02-05 22:42:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:42:05 - End Time 2025-02-05 22:42:05 [2025-02-05 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410827', 'tblTempUsageDetail_20' ) start [2025-02-05 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410827', 'tblTempUsageDetail_20' ) end [2025-02-05 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410827', 'tblTempVendorCDR_20' ) start [2025-02-05 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410827', 'tblTempVendorCDR_20' ) end [2025-02-05 22:42:19] Production.INFO: ProcessCDR(1,14410827,1,1,2) [2025-02-05 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410827', 'tblTempUsageDetail_20' ) start [2025-02-05 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410827', 'tblTempUsageDetail_20' ) end [2025-02-05 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:42:22] Production.INFO: ==759== Releasing lock... [2025-02-05 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:42:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-05 22:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:43:04 [end_date_ymd] => 2025-02-05 22:43:04 [RateCDR] => 1 ) [2025-02-05 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-02-05 19:43:04' and `end` < '2025-02-05 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-02-05 22:43:18] Production.INFO: count ==1202 [2025-02-05 22:43:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:43:04 - End Time 2025-02-05 22:43:04 [2025-02-05 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410832', 'tblTempUsageDetail_20' ) start [2025-02-05 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410832', 'tblTempUsageDetail_20' ) end [2025-02-05 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410832', 'tblTempVendorCDR_20' ) start [2025-02-05 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410832', 'tblTempVendorCDR_20' ) end [2025-02-05 22:43:18] Production.INFO: ProcessCDR(1,14410832,1,1,2) [2025-02-05 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410832', 'tblTempUsageDetail_20' ) start [2025-02-05 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410832', 'tblTempUsageDetail_20' ) end [2025-02-05 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:43:21] Production.INFO: ==840== Releasing lock... [2025-02-05 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:43:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-05 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:44:05 [end_date_ymd] => 2025-02-05 22:44:05 [RateCDR] => 1 ) [2025-02-05 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:44:05' and `end` < '2025-02-05 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:44:18] Production.INFO: count ==1202 [2025-02-05 22:44:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:44:05 - End Time 2025-02-05 22:44:05 [2025-02-05 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410837', 'tblTempUsageDetail_20' ) start [2025-02-05 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410837', 'tblTempUsageDetail_20' ) end [2025-02-05 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410837', 'tblTempVendorCDR_20' ) start [2025-02-05 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410837', 'tblTempVendorCDR_20' ) end [2025-02-05 22:44:19] Production.INFO: ProcessCDR(1,14410837,1,1,2) [2025-02-05 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410837', 'tblTempUsageDetail_20' ) start [2025-02-05 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410837', 'tblTempUsageDetail_20' ) end [2025-02-05 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:44:22] Production.INFO: ==917== Releasing lock... [2025-02-05 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:44:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-05 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:45:05 [end_date_ymd] => 2025-02-05 22:45:05 [RateCDR] => 1 ) [2025-02-05 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:45:05' and `end` < '2025-02-05 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:45:19] Production.INFO: count ==1204 [2025-02-05 22:45:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:45:05 - End Time 2025-02-05 22:45:05 [2025-02-05 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410842', 'tblTempUsageDetail_20' ) start [2025-02-05 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410842', 'tblTempUsageDetail_20' ) end [2025-02-05 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410842', 'tblTempVendorCDR_20' ) start [2025-02-05 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410842', 'tblTempVendorCDR_20' ) end [2025-02-05 22:45:19] Production.INFO: ProcessCDR(1,14410842,1,1,2) [2025-02-05 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410842', 'tblTempUsageDetail_20' ) start [2025-02-05 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410842', 'tblTempUsageDetail_20' ) end [2025-02-05 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:45:22] Production.INFO: ==996== Releasing lock... [2025-02-05 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:45:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-05 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:46:05 [end_date_ymd] => 2025-02-05 22:46:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 19:46:05' and `end` < '2025-02-05 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-02-05 22:46:18] Production.INFO: count ==1207 [2025-02-05 22:46:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:46:05 - End Time 2025-02-05 22:46:05 [2025-02-05 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410847', 'tblTempUsageDetail_20' ) start [2025-02-05 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410847', 'tblTempUsageDetail_20' ) end [2025-02-05 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410847', 'tblTempVendorCDR_20' ) start [2025-02-05 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410847', 'tblTempVendorCDR_20' ) end [2025-02-05 22:46:18] Production.INFO: ProcessCDR(1,14410847,1,1,2) [2025-02-05 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410847', 'tblTempUsageDetail_20' ) start [2025-02-05 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410847', 'tblTempUsageDetail_20' ) end [2025-02-05 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:46:21] Production.INFO: ==1071== Releasing lock... [2025-02-05 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:46:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-05 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:47:05 [end_date_ymd] => 2025-02-05 22:47:05 [RateCDR] => 1 ) [2025-02-05 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:47:05' and `end` < '2025-02-05 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:47:18] Production.INFO: count ==1191 [2025-02-05 22:47:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:47:05 - End Time 2025-02-05 22:47:05 [2025-02-05 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410852', 'tblTempUsageDetail_20' ) start [2025-02-05 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410852', 'tblTempUsageDetail_20' ) end [2025-02-05 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410852', 'tblTempVendorCDR_20' ) start [2025-02-05 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410852', 'tblTempVendorCDR_20' ) end [2025-02-05 22:47:18] Production.INFO: ProcessCDR(1,14410852,1,1,2) [2025-02-05 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410852', 'tblTempUsageDetail_20' ) start [2025-02-05 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410852', 'tblTempUsageDetail_20' ) end [2025-02-05 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:47:21] Production.INFO: ==1155== Releasing lock... [2025-02-05 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:47:21] Production.INFO: 37 MB #Memory Used# [2025-02-05 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:48:05 [end_date_ymd] => 2025-02-05 22:48:05 [RateCDR] => 1 ) [2025-02-05 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:48:05' and `end` < '2025-02-05 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:48:19] Production.INFO: count ==1194 [2025-02-05 22:48:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:48:05 - End Time 2025-02-05 22:48:05 [2025-02-05 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410857', 'tblTempUsageDetail_20' ) start [2025-02-05 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410857', 'tblTempUsageDetail_20' ) end [2025-02-05 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410857', 'tblTempVendorCDR_20' ) start [2025-02-05 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410857', 'tblTempVendorCDR_20' ) end [2025-02-05 22:48:19] Production.INFO: ProcessCDR(1,14410857,1,1,2) [2025-02-05 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410857', 'tblTempUsageDetail_20' ) start [2025-02-05 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410857', 'tblTempUsageDetail_20' ) end [2025-02-05 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:48:22] Production.INFO: ==1236== Releasing lock... [2025-02-05 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:48:22] Production.INFO: 37 MB #Memory Used# [2025-02-05 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:49:05 [end_date_ymd] => 2025-02-05 22:49:05 [RateCDR] => 1 ) [2025-02-05 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:49:05' and `end` < '2025-02-05 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:49:18] Production.INFO: count ==1193 [2025-02-05 22:49:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:49:05 - End Time 2025-02-05 22:49:05 [2025-02-05 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410862', 'tblTempUsageDetail_20' ) start [2025-02-05 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410862', 'tblTempUsageDetail_20' ) end [2025-02-05 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410862', 'tblTempVendorCDR_20' ) start [2025-02-05 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410862', 'tblTempVendorCDR_20' ) end [2025-02-05 22:49:19] Production.INFO: ProcessCDR(1,14410862,1,1,2) [2025-02-05 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410862', 'tblTempUsageDetail_20' ) start [2025-02-05 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410862', 'tblTempUsageDetail_20' ) end [2025-02-05 22:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:49:23] Production.INFO: ==1321== Releasing lock... [2025-02-05 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:49:23] Production.INFO: 37 MB #Memory Used# [2025-02-05 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:50:05 [end_date_ymd] => 2025-02-05 22:50:05 [RateCDR] => 1 ) [2025-02-05 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:50:05' and `end` < '2025-02-05 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:50:19] Production.INFO: count ==1195 [2025-02-05 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:50:05 - End Time 2025-02-05 22:50:05 [2025-02-05 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410868', 'tblTempUsageDetail_20' ) start [2025-02-05 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410868', 'tblTempUsageDetail_20' ) end [2025-02-05 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410868', 'tblTempVendorCDR_20' ) start [2025-02-05 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410868', 'tblTempVendorCDR_20' ) end [2025-02-05 22:50:19] Production.INFO: ProcessCDR(1,14410868,1,1,2) [2025-02-05 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410868', 'tblTempUsageDetail_20' ) start [2025-02-05 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410868', 'tblTempUsageDetail_20' ) end [2025-02-05 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:50:22] Production.INFO: ==1399== Releasing lock... [2025-02-05 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:50:22] Production.INFO: 37 MB #Memory Used# [2025-02-05 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:51:05 [end_date_ymd] => 2025-02-05 22:51:05 [RateCDR] => 1 ) [2025-02-05 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:51:05' and `end` < '2025-02-05 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:51:18] Production.INFO: count ==1140 [2025-02-05 22:51:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:51:05 - End Time 2025-02-05 22:51:05 [2025-02-05 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410873', 'tblTempUsageDetail_20' ) start [2025-02-05 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410873', 'tblTempUsageDetail_20' ) end [2025-02-05 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410873', 'tblTempVendorCDR_20' ) start [2025-02-05 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410873', 'tblTempVendorCDR_20' ) end [2025-02-05 22:51:19] Production.INFO: ProcessCDR(1,14410873,1,1,2) [2025-02-05 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410873', 'tblTempUsageDetail_20' ) start [2025-02-05 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410873', 'tblTempUsageDetail_20' ) end [2025-02-05 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:51:22] Production.INFO: ==1475== Releasing lock... [2025-02-05 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:51:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:52:05 [end_date_ymd] => 2025-02-05 22:52:05 [RateCDR] => 1 ) [2025-02-05 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:52:05' and `end` < '2025-02-05 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:52:18] Production.INFO: count ==1140 [2025-02-05 22:52:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:52:05 - End Time 2025-02-05 22:52:05 [2025-02-05 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410878', 'tblTempUsageDetail_20' ) start [2025-02-05 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410878', 'tblTempUsageDetail_20' ) end [2025-02-05 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410878', 'tblTempVendorCDR_20' ) start [2025-02-05 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410878', 'tblTempVendorCDR_20' ) end [2025-02-05 22:52:19] Production.INFO: ProcessCDR(1,14410878,1,1,2) [2025-02-05 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410878', 'tblTempUsageDetail_20' ) start [2025-02-05 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410878', 'tblTempUsageDetail_20' ) end [2025-02-05 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:52:22] Production.INFO: ==1583== Releasing lock... [2025-02-05 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:52:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:53:05 [end_date_ymd] => 2025-02-05 22:53:05 [RateCDR] => 1 ) [2025-02-05 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:53:05' and `end` < '2025-02-05 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:53:18] Production.INFO: count ==1142 [2025-02-05 22:53:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:53:05 - End Time 2025-02-05 22:53:05 [2025-02-05 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410883', 'tblTempUsageDetail_20' ) start [2025-02-05 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410883', 'tblTempUsageDetail_20' ) end [2025-02-05 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410883', 'tblTempVendorCDR_20' ) start [2025-02-05 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410883', 'tblTempVendorCDR_20' ) end [2025-02-05 22:53:18] Production.INFO: ProcessCDR(1,14410883,1,1,2) [2025-02-05 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410883', 'tblTempUsageDetail_20' ) start [2025-02-05 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410883', 'tblTempUsageDetail_20' ) end [2025-02-05 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:53:23] Production.INFO: ==1659== Releasing lock... [2025-02-05 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:53:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:54:05 [end_date_ymd] => 2025-02-05 22:54:05 [RateCDR] => 1 ) [2025-02-05 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:54:05' and `end` < '2025-02-05 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:54:19] Production.INFO: count ==1143 [2025-02-05 22:54:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:54:05 - End Time 2025-02-05 22:54:05 [2025-02-05 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410888', 'tblTempUsageDetail_20' ) start [2025-02-05 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410888', 'tblTempUsageDetail_20' ) end [2025-02-05 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410888', 'tblTempVendorCDR_20' ) start [2025-02-05 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410888', 'tblTempVendorCDR_20' ) end [2025-02-05 22:54:19] Production.INFO: ProcessCDR(1,14410888,1,1,2) [2025-02-05 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410888', 'tblTempUsageDetail_20' ) start [2025-02-05 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410888', 'tblTempUsageDetail_20' ) end [2025-02-05 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:54:22] Production.INFO: ==1773== Releasing lock... [2025-02-05 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:54:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 22:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:55:04 [end_date_ymd] => 2025-02-05 22:55:04 [RateCDR] => 1 ) [2025-02-05 22:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:55:04' and `end` < '2025-02-05 22:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:55:18] Production.INFO: count ==1141 [2025-02-05 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:55:04 - End Time 2025-02-05 22:55:04 [2025-02-05 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410893', 'tblTempUsageDetail_20' ) start [2025-02-05 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410893', 'tblTempUsageDetail_20' ) end [2025-02-05 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410893', 'tblTempVendorCDR_20' ) start [2025-02-05 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410893', 'tblTempVendorCDR_20' ) end [2025-02-05 22:55:18] Production.INFO: ProcessCDR(1,14410893,1,1,2) [2025-02-05 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410893', 'tblTempUsageDetail_20' ) start [2025-02-05 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410893', 'tblTempUsageDetail_20' ) end [2025-02-05 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:55:21] Production.INFO: ==1849== Releasing lock... [2025-02-05 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:55:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:56:06 [end_date_ymd] => 2025-02-05 22:56:06 [RateCDR] => 1 ) [2025-02-05 22:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:56:06' and `end` < '2025-02-05 22:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:56:19] Production.INFO: count ==1140 [2025-02-05 22:56:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:56:06 - End Time 2025-02-05 22:56:06 [2025-02-05 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410898', 'tblTempUsageDetail_20' ) start [2025-02-05 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410898', 'tblTempUsageDetail_20' ) end [2025-02-05 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410898', 'tblTempVendorCDR_20' ) start [2025-02-05 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410898', 'tblTempVendorCDR_20' ) end [2025-02-05 22:56:19] Production.INFO: ProcessCDR(1,14410898,1,1,2) [2025-02-05 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410898', 'tblTempUsageDetail_20' ) start [2025-02-05 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410898', 'tblTempUsageDetail_20' ) end [2025-02-05 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:56:22] Production.INFO: ==1925== Releasing lock... [2025-02-05 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:56:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:57:05 [end_date_ymd] => 2025-02-05 22:57:05 [RateCDR] => 1 ) [2025-02-05 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:57:05' and `end` < '2025-02-05 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:57:18] Production.INFO: count ==1139 [2025-02-05 22:57:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:57:05 - End Time 2025-02-05 22:57:05 [2025-02-05 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410903', 'tblTempUsageDetail_20' ) start [2025-02-05 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410903', 'tblTempUsageDetail_20' ) end [2025-02-05 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410903', 'tblTempVendorCDR_20' ) start [2025-02-05 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410903', 'tblTempVendorCDR_20' ) end [2025-02-05 22:57:18] Production.INFO: ProcessCDR(1,14410903,1,1,2) [2025-02-05 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410903', 'tblTempUsageDetail_20' ) start [2025-02-05 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410903', 'tblTempUsageDetail_20' ) end [2025-02-05 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:57:22] Production.INFO: ==2001== Releasing lock... [2025-02-05 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:57:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:58:05 [end_date_ymd] => 2025-02-05 22:58:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 19:58:05' and `end` < '2025-02-05 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-02-05 22:58:18] Production.INFO: count ==1136 [2025-02-05 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-05 19:58:05 - End Time 2025-02-05 22:58:05 [2025-02-05 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410908', 'tblTempUsageDetail_20' ) start [2025-02-05 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410908', 'tblTempUsageDetail_20' ) end [2025-02-05 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410908', 'tblTempVendorCDR_20' ) start [2025-02-05 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410908', 'tblTempVendorCDR_20' ) end [2025-02-05 22:58:18] Production.INFO: ProcessCDR(1,14410908,1,1,2) [2025-02-05 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410908', 'tblTempUsageDetail_20' ) start [2025-02-05 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410908', 'tblTempUsageDetail_20' ) end [2025-02-05 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:58:21] Production.INFO: ==2076== Releasing lock... [2025-02-05 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:58:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 22:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 19:59:06 [end_date_ymd] => 2025-02-05 22:59:06 [RateCDR] => 1 ) [2025-02-05 22:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 19:59:06' and `end` < '2025-02-05 22:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 22:59:19] Production.INFO: count ==1136 [2025-02-05 22:59:19] Production.ERROR: pbx CDR StartTime 2025-02-05 19:59:06 - End Time 2025-02-05 22:59:06 [2025-02-05 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410913', 'tblTempUsageDetail_20' ) start [2025-02-05 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410913', 'tblTempUsageDetail_20' ) end [2025-02-05 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410913', 'tblTempVendorCDR_20' ) start [2025-02-05 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410913', 'tblTempVendorCDR_20' ) end [2025-02-05 22:59:19] Production.INFO: ProcessCDR(1,14410913,1,1,2) [2025-02-05 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410913', 'tblTempUsageDetail_20' ) start [2025-02-05 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410913', 'tblTempUsageDetail_20' ) end [2025-02-05 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 22:59:22] Production.INFO: ==2150== Releasing lock... [2025-02-05 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 22:59:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:00:05 [end_date_ymd] => 2025-02-05 23:00:05 [RateCDR] => 1 ) [2025-02-05 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:00:05' and `end` < '2025-02-05 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:00:19] Production.INFO: count ==1134 [2025-02-05 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:00:05 - End Time 2025-02-05 23:00:05 [2025-02-05 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410918', 'tblTempUsageDetail_20' ) start [2025-02-05 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410918', 'tblTempUsageDetail_20' ) end [2025-02-05 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410918', 'tblTempVendorCDR_20' ) start [2025-02-05 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410918', 'tblTempVendorCDR_20' ) end [2025-02-05 23:00:19] Production.INFO: ProcessCDR(1,14410918,1,1,2) [2025-02-05 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410918', 'tblTempUsageDetail_20' ) start [2025-02-05 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410918', 'tblTempUsageDetail_20' ) end [2025-02-05 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:00:22] Production.INFO: ==2230== Releasing lock... [2025-02-05 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:00:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-05 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:01:05 [end_date_ymd] => 2025-02-05 23:01:05 [RateCDR] => 1 ) [2025-02-05 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:01:05' and `end` < '2025-02-05 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:01:19] Production.INFO: count ==1108 [2025-02-05 23:01:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:01:05 - End Time 2025-02-05 23:01:05 [2025-02-05 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410924', 'tblTempUsageDetail_20' ) start [2025-02-05 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410924', 'tblTempUsageDetail_20' ) end [2025-02-05 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410924', 'tblTempVendorCDR_20' ) start [2025-02-05 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410924', 'tblTempVendorCDR_20' ) end [2025-02-05 23:01:19] Production.INFO: ProcessCDR(1,14410924,1,1,2) [2025-02-05 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410924', 'tblTempUsageDetail_20' ) start [2025-02-05 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410924', 'tblTempUsageDetail_20' ) end [2025-02-05 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:01:22] Production.INFO: ==2360== Releasing lock... [2025-02-05 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:01:22] Production.INFO: 36 MB #Memory Used# [2025-02-05 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:02:05 [end_date_ymd] => 2025-02-05 23:02:05 [RateCDR] => 1 ) [2025-02-05 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:02:05' and `end` < '2025-02-05 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:02:19] Production.INFO: count ==1104 [2025-02-05 23:02:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:02:05 - End Time 2025-02-05 23:02:05 [2025-02-05 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410929', 'tblTempUsageDetail_20' ) start [2025-02-05 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410929', 'tblTempUsageDetail_20' ) end [2025-02-05 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410929', 'tblTempVendorCDR_20' ) start [2025-02-05 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410929', 'tblTempVendorCDR_20' ) end [2025-02-05 23:02:19] Production.INFO: ProcessCDR(1,14410929,1,1,2) [2025-02-05 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410929', 'tblTempUsageDetail_20' ) start [2025-02-05 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410929', 'tblTempUsageDetail_20' ) end [2025-02-05 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:02:22] Production.INFO: ==2477== Releasing lock... [2025-02-05 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:02:22] Production.INFO: 36 MB #Memory Used# [2025-02-05 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:03:05 [end_date_ymd] => 2025-02-05 23:03:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 20:03:05' and `end` < '2025-02-05 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-02-05 23:03:19] Production.INFO: count ==1103 [2025-02-05 23:03:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:03:05 - End Time 2025-02-05 23:03:05 [2025-02-05 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410934', 'tblTempUsageDetail_20' ) start [2025-02-05 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410934', 'tblTempUsageDetail_20' ) end [2025-02-05 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410934', 'tblTempVendorCDR_20' ) start [2025-02-05 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410934', 'tblTempVendorCDR_20' ) end [2025-02-05 23:03:19] Production.INFO: ProcessCDR(1,14410934,1,1,2) [2025-02-05 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410934', 'tblTempUsageDetail_20' ) start [2025-02-05 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410934', 'tblTempUsageDetail_20' ) end [2025-02-05 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:03:22] Production.INFO: ==2549== Releasing lock... [2025-02-05 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:03:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-05 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:04:05 [end_date_ymd] => 2025-02-05 23:04:05 [RateCDR] => 1 ) [2025-02-05 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:04:05' and `end` < '2025-02-05 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:04:18] Production.INFO: count ==1096 [2025-02-05 23:04:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:04:05 - End Time 2025-02-05 23:04:05 [2025-02-05 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410939', 'tblTempUsageDetail_20' ) start [2025-02-05 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410939', 'tblTempUsageDetail_20' ) end [2025-02-05 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410939', 'tblTempVendorCDR_20' ) start [2025-02-05 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410939', 'tblTempVendorCDR_20' ) end [2025-02-05 23:04:18] Production.INFO: ProcessCDR(1,14410939,1,1,2) [2025-02-05 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410939', 'tblTempUsageDetail_20' ) start [2025-02-05 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410939', 'tblTempUsageDetail_20' ) end [2025-02-05 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:04:21] Production.INFO: ==2626== Releasing lock... [2025-02-05 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:04:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-05 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:05:05 [end_date_ymd] => 2025-02-05 23:05:05 [RateCDR] => 1 ) [2025-02-05 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:05:05' and `end` < '2025-02-05 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:05:18] Production.INFO: count ==1095 [2025-02-05 23:05:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:05:05 - End Time 2025-02-05 23:05:05 [2025-02-05 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410944', 'tblTempUsageDetail_20' ) start [2025-02-05 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410944', 'tblTempUsageDetail_20' ) end [2025-02-05 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410944', 'tblTempVendorCDR_20' ) start [2025-02-05 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410944', 'tblTempVendorCDR_20' ) end [2025-02-05 23:05:18] Production.INFO: ProcessCDR(1,14410944,1,1,2) [2025-02-05 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410944', 'tblTempUsageDetail_20' ) start [2025-02-05 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410944', 'tblTempUsageDetail_20' ) end [2025-02-05 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:05:21] Production.INFO: ==2775== Releasing lock... [2025-02-05 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:05:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-05 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:06:06 [end_date_ymd] => 2025-02-05 23:06:06 [RateCDR] => 1 ) [2025-02-05 23:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:06:06' and `end` < '2025-02-05 23:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:06:19] Production.INFO: count ==1093 [2025-02-05 23:06:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:06:06 - End Time 2025-02-05 23:06:06 [2025-02-05 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410949', 'tblTempUsageDetail_20' ) start [2025-02-05 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410949', 'tblTempUsageDetail_20' ) end [2025-02-05 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410949', 'tblTempVendorCDR_20' ) start [2025-02-05 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410949', 'tblTempVendorCDR_20' ) end [2025-02-05 23:06:19] Production.INFO: ProcessCDR(1,14410949,1,1,2) [2025-02-05 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410949', 'tblTempUsageDetail_20' ) start [2025-02-05 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410949', 'tblTempUsageDetail_20' ) end [2025-02-05 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:06:22] Production.INFO: ==2849== Releasing lock... [2025-02-05 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:06:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-05 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:07:05 [end_date_ymd] => 2025-02-05 23:07:05 [RateCDR] => 1 ) [2025-02-05 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:07:05' and `end` < '2025-02-05 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:07:18] Production.INFO: count ==1090 [2025-02-05 23:07:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:07:05 - End Time 2025-02-05 23:07:05 [2025-02-05 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410954', 'tblTempUsageDetail_20' ) start [2025-02-05 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410954', 'tblTempUsageDetail_20' ) end [2025-02-05 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410954', 'tblTempVendorCDR_20' ) start [2025-02-05 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410954', 'tblTempVendorCDR_20' ) end [2025-02-05 23:07:18] Production.INFO: ProcessCDR(1,14410954,1,1,2) [2025-02-05 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410954', 'tblTempUsageDetail_20' ) start [2025-02-05 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410954', 'tblTempUsageDetail_20' ) end [2025-02-05 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:07:21] Production.INFO: ==2918== Releasing lock... [2025-02-05 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:07:21] Production.INFO: 36 MB #Memory Used# [2025-02-05 23:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:08:04 [end_date_ymd] => 2025-02-05 23:08:04 [RateCDR] => 1 ) [2025-02-05 23:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:08:04' and `end` < '2025-02-05 23:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:08:18] Production.INFO: count ==1092 [2025-02-05 23:08:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:08:04 - End Time 2025-02-05 23:08:04 [2025-02-05 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410959', 'tblTempUsageDetail_20' ) start [2025-02-05 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410959', 'tblTempUsageDetail_20' ) end [2025-02-05 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410959', 'tblTempVendorCDR_20' ) start [2025-02-05 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410959', 'tblTempVendorCDR_20' ) end [2025-02-05 23:08:18] Production.INFO: ProcessCDR(1,14410959,1,1,2) [2025-02-05 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410959', 'tblTempUsageDetail_20' ) start [2025-02-05 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410959', 'tblTempUsageDetail_20' ) end [2025-02-05 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:08:21] Production.INFO: ==3070== Releasing lock... [2025-02-05 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:08:21] Production.INFO: 36 MB #Memory Used# [2025-02-05 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:09:05 [end_date_ymd] => 2025-02-05 23:09:05 [RateCDR] => 1 ) [2025-02-05 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:09:05' and `end` < '2025-02-05 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:09:18] Production.INFO: count ==1088 [2025-02-05 23:09:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:09:05 - End Time 2025-02-05 23:09:05 [2025-02-05 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410964', 'tblTempUsageDetail_20' ) start [2025-02-05 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410964', 'tblTempUsageDetail_20' ) end [2025-02-05 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410964', 'tblTempVendorCDR_20' ) start [2025-02-05 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410964', 'tblTempVendorCDR_20' ) end [2025-02-05 23:09:18] Production.INFO: ProcessCDR(1,14410964,1,1,2) [2025-02-05 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410964', 'tblTempUsageDetail_20' ) start [2025-02-05 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410964', 'tblTempUsageDetail_20' ) end [2025-02-05 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:09:21] Production.INFO: ==3144== Releasing lock... [2025-02-05 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:09:21] Production.INFO: 36 MB #Memory Used# [2025-02-05 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:10:05 [end_date_ymd] => 2025-02-05 23:10:05 [RateCDR] => 1 ) [2025-02-05 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:10:05' and `end` < '2025-02-05 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:10:18] Production.INFO: count ==1030 [2025-02-05 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:10:05 - End Time 2025-02-05 23:10:05 [2025-02-05 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410969', 'tblTempUsageDetail_20' ) start [2025-02-05 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410969', 'tblTempUsageDetail_20' ) end [2025-02-05 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410969', 'tblTempVendorCDR_20' ) start [2025-02-05 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410969', 'tblTempVendorCDR_20' ) end [2025-02-05 23:10:19] Production.INFO: ProcessCDR(1,14410969,1,1,2) [2025-02-05 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410969', 'tblTempUsageDetail_20' ) start [2025-02-05 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410969', 'tblTempUsageDetail_20' ) end [2025-02-05 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:10:22] Production.INFO: ==3256== Releasing lock... [2025-02-05 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:10:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-05 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:11:05 [end_date_ymd] => 2025-02-05 23:11:05 [RateCDR] => 1 ) [2025-02-05 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:11:05' and `end` < '2025-02-05 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:11:18] Production.INFO: count ==989 [2025-02-05 23:11:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:11:05 - End Time 2025-02-05 23:11:05 [2025-02-05 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410975', 'tblTempUsageDetail_20' ) start [2025-02-05 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410975', 'tblTempUsageDetail_20' ) end [2025-02-05 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410975', 'tblTempVendorCDR_20' ) start [2025-02-05 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410975', 'tblTempVendorCDR_20' ) end [2025-02-05 23:11:19] Production.INFO: ProcessCDR(1,14410975,1,1,2) [2025-02-05 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410975', 'tblTempUsageDetail_20' ) start [2025-02-05 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410975', 'tblTempUsageDetail_20' ) end [2025-02-05 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:11:22] Production.INFO: ==3330== Releasing lock... [2025-02-05 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:11:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-05 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:12:05 [end_date_ymd] => 2025-02-05 23:12:05 [RateCDR] => 1 ) [2025-02-05 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:12:05' and `end` < '2025-02-05 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:12:18] Production.INFO: count ==981 [2025-02-05 23:12:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:12:05 - End Time 2025-02-05 23:12:05 [2025-02-05 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410980', 'tblTempUsageDetail_20' ) start [2025-02-05 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410980', 'tblTempUsageDetail_20' ) end [2025-02-05 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410980', 'tblTempVendorCDR_20' ) start [2025-02-05 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410980', 'tblTempVendorCDR_20' ) end [2025-02-05 23:12:18] Production.INFO: ProcessCDR(1,14410980,1,1,2) [2025-02-05 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410980', 'tblTempUsageDetail_20' ) start [2025-02-05 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410980', 'tblTempUsageDetail_20' ) end [2025-02-05 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:12:21] Production.INFO: ==3483== Releasing lock... [2025-02-05 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:12:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-05 23:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:13:06 [end_date_ymd] => 2025-02-05 23:13:06 [RateCDR] => 1 ) [2025-02-05 23:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:13:06' and `end` < '2025-02-05 23:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:13:20] Production.INFO: count ==983 [2025-02-05 23:13:20] Production.ERROR: pbx CDR StartTime 2025-02-05 20:13:06 - End Time 2025-02-05 23:13:06 [2025-02-05 23:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410985', 'tblTempUsageDetail_20' ) start [2025-02-05 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410985', 'tblTempUsageDetail_20' ) end [2025-02-05 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410985', 'tblTempVendorCDR_20' ) start [2025-02-05 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410985', 'tblTempVendorCDR_20' ) end [2025-02-05 23:13:20] Production.INFO: ProcessCDR(1,14410985,1,1,2) [2025-02-05 23:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410985', 'tblTempUsageDetail_20' ) start [2025-02-05 23:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410985', 'tblTempUsageDetail_20' ) end [2025-02-05 23:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:13:25] Production.INFO: ==3555== Releasing lock... [2025-02-05 23:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:13:25] Production.INFO: 35.75 MB #Memory Used# [2025-02-05 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:14:04 [end_date_ymd] => 2025-02-05 23:14:04 [RateCDR] => 1 ) [2025-02-05 23:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:14:04' and `end` < '2025-02-05 23:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:14:17] Production.INFO: count ==982 [2025-02-05 23:14:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:14:04 - End Time 2025-02-05 23:14:04 [2025-02-05 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410990', 'tblTempUsageDetail_20' ) start [2025-02-05 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410990', 'tblTempUsageDetail_20' ) end [2025-02-05 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410990', 'tblTempVendorCDR_20' ) start [2025-02-05 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410990', 'tblTempVendorCDR_20' ) end [2025-02-05 23:14:18] Production.INFO: ProcessCDR(1,14410990,1,1,2) [2025-02-05 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410990', 'tblTempUsageDetail_20' ) start [2025-02-05 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410990', 'tblTempUsageDetail_20' ) end [2025-02-05 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:14:21] Production.INFO: ==3628== Releasing lock... [2025-02-05 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:14:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-05 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:15:05 [end_date_ymd] => 2025-02-05 23:15:05 [RateCDR] => 1 ) [2025-02-05 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:15:05' and `end` < '2025-02-05 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:15:18] Production.INFO: count ==981 [2025-02-05 23:15:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:15:05 - End Time 2025-02-05 23:15:05 [2025-02-05 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410995', 'tblTempUsageDetail_20' ) start [2025-02-05 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14410995', 'tblTempUsageDetail_20' ) end [2025-02-05 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410995', 'tblTempVendorCDR_20' ) start [2025-02-05 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14410995', 'tblTempVendorCDR_20' ) end [2025-02-05 23:15:18] Production.INFO: ProcessCDR(1,14410995,1,1,2) [2025-02-05 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14410995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14410995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14410995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14410995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410995', 'tblTempUsageDetail_20' ) start [2025-02-05 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14410995', 'tblTempUsageDetail_20' ) end [2025-02-05 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:15:21] Production.INFO: ==3785== Releasing lock... [2025-02-05 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:15:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-05 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:16:06 [end_date_ymd] => 2025-02-05 23:16:06 [RateCDR] => 1 ) [2025-02-05 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:16:06' and `end` < '2025-02-05 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:16:21] Production.INFO: count ==977 [2025-02-05 23:16:21] Production.ERROR: pbx CDR StartTime 2025-02-05 20:16:06 - End Time 2025-02-05 23:16:06 [2025-02-05 23:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411000', 'tblTempUsageDetail_20' ) start [2025-02-05 23:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411000', 'tblTempUsageDetail_20' ) end [2025-02-05 23:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411000', 'tblTempVendorCDR_20' ) start [2025-02-05 23:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411000', 'tblTempVendorCDR_20' ) end [2025-02-05 23:16:21] Production.INFO: ProcessCDR(1,14411000,1,1,2) [2025-02-05 23:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411000', 'tblTempUsageDetail_20' ) start [2025-02-05 23:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411000', 'tblTempUsageDetail_20' ) end [2025-02-05 23:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:16:24] Production.INFO: ==3861== Releasing lock... [2025-02-05 23:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:16:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-05 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:17:05 [end_date_ymd] => 2025-02-05 23:17:05 [RateCDR] => 1 ) [2025-02-05 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:17:05' and `end` < '2025-02-05 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:17:19] Production.INFO: count ==977 [2025-02-05 23:17:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:17:05 - End Time 2025-02-05 23:17:05 [2025-02-05 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411005', 'tblTempUsageDetail_20' ) start [2025-02-05 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411005', 'tblTempUsageDetail_20' ) end [2025-02-05 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411005', 'tblTempVendorCDR_20' ) start [2025-02-05 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411005', 'tblTempVendorCDR_20' ) end [2025-02-05 23:17:19] Production.INFO: ProcessCDR(1,14411005,1,1,2) [2025-02-05 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411005', 'tblTempUsageDetail_20' ) start [2025-02-05 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411005', 'tblTempUsageDetail_20' ) end [2025-02-05 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:17:23] Production.INFO: ==3931== Releasing lock... [2025-02-05 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:17:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-05 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:18:05 [end_date_ymd] => 2025-02-05 23:18:05 [RateCDR] => 1 ) [2025-02-05 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:18:05' and `end` < '2025-02-05 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:18:19] Production.INFO: count ==979 [2025-02-05 23:18:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:18:05 - End Time 2025-02-05 23:18:05 [2025-02-05 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411010', 'tblTempUsageDetail_20' ) start [2025-02-05 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411010', 'tblTempUsageDetail_20' ) end [2025-02-05 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411010', 'tblTempVendorCDR_20' ) start [2025-02-05 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411010', 'tblTempVendorCDR_20' ) end [2025-02-05 23:18:19] Production.INFO: ProcessCDR(1,14411010,1,1,2) [2025-02-05 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411010', 'tblTempUsageDetail_20' ) start [2025-02-05 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411010', 'tblTempUsageDetail_20' ) end [2025-02-05 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:18:22] Production.INFO: ==4001== Releasing lock... [2025-02-05 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:18:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-05 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:19:05 [end_date_ymd] => 2025-02-05 23:19:05 [RateCDR] => 1 ) [2025-02-05 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:19:05' and `end` < '2025-02-05 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:19:18] Production.INFO: count ==970 [2025-02-05 23:19:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:19:05 - End Time 2025-02-05 23:19:05 [2025-02-05 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411015', 'tblTempUsageDetail_20' ) start [2025-02-05 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411015', 'tblTempUsageDetail_20' ) end [2025-02-05 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411015', 'tblTempVendorCDR_20' ) start [2025-02-05 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411015', 'tblTempVendorCDR_20' ) end [2025-02-05 23:19:18] Production.INFO: ProcessCDR(1,14411015,1,1,2) [2025-02-05 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411015', 'tblTempUsageDetail_20' ) start [2025-02-05 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411015', 'tblTempUsageDetail_20' ) end [2025-02-05 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:19:21] Production.INFO: ==4082== Releasing lock... [2025-02-05 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:19:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-05 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:20:06 [end_date_ymd] => 2025-02-05 23:20:06 [RateCDR] => 1 ) [2025-02-05 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:20:06' and `end` < '2025-02-05 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:20:19] Production.INFO: count ==965 [2025-02-05 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:20:06 - End Time 2025-02-05 23:20:06 [2025-02-05 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411021', 'tblTempUsageDetail_20' ) start [2025-02-05 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411021', 'tblTempUsageDetail_20' ) end [2025-02-05 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411021', 'tblTempVendorCDR_20' ) start [2025-02-05 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411021', 'tblTempVendorCDR_20' ) end [2025-02-05 23:20:19] Production.INFO: ProcessCDR(1,14411021,1,1,2) [2025-02-05 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411021', 'tblTempUsageDetail_20' ) start [2025-02-05 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411021', 'tblTempUsageDetail_20' ) end [2025-02-05 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:20:22] Production.INFO: ==4157== Releasing lock... [2025-02-05 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:20:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-05 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:21:05 [end_date_ymd] => 2025-02-05 23:21:05 [RateCDR] => 1 ) [2025-02-05 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:21:05' and `end` < '2025-02-05 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:21:18] Production.INFO: count ==936 [2025-02-05 23:21:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:21:05 - End Time 2025-02-05 23:21:05 [2025-02-05 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411026', 'tblTempUsageDetail_20' ) start [2025-02-05 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411026', 'tblTempUsageDetail_20' ) end [2025-02-05 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411026', 'tblTempVendorCDR_20' ) start [2025-02-05 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411026', 'tblTempVendorCDR_20' ) end [2025-02-05 23:21:18] Production.INFO: ProcessCDR(1,14411026,1,1,2) [2025-02-05 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411026', 'tblTempUsageDetail_20' ) start [2025-02-05 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411026', 'tblTempUsageDetail_20' ) end [2025-02-05 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:21:22] Production.INFO: ==4234== Releasing lock... [2025-02-05 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:21:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-05 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:22:05 [end_date_ymd] => 2025-02-05 23:22:05 [RateCDR] => 1 ) [2025-02-05 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:22:05' and `end` < '2025-02-05 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:22:21] Production.INFO: count ==934 [2025-02-05 23:22:21] Production.ERROR: pbx CDR StartTime 2025-02-05 20:22:05 - End Time 2025-02-05 23:22:05 [2025-02-05 23:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411031', 'tblTempUsageDetail_20' ) start [2025-02-05 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411031', 'tblTempUsageDetail_20' ) end [2025-02-05 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411031', 'tblTempVendorCDR_20' ) start [2025-02-05 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411031', 'tblTempVendorCDR_20' ) end [2025-02-05 23:22:21] Production.INFO: ProcessCDR(1,14411031,1,1,2) [2025-02-05 23:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411031', 'tblTempUsageDetail_20' ) start [2025-02-05 23:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411031', 'tblTempUsageDetail_20' ) end [2025-02-05 23:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:22:25] Production.INFO: ==4306== Releasing lock... [2025-02-05 23:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:22:25] Production.INFO: 35.25 MB #Memory Used# [2025-02-05 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:23:05 [end_date_ymd] => 2025-02-05 23:23:05 [RateCDR] => 1 ) [2025-02-05 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:23:05' and `end` < '2025-02-05 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:23:18] Production.INFO: count ==932 [2025-02-05 23:23:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:23:05 - End Time 2025-02-05 23:23:05 [2025-02-05 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411036', 'tblTempUsageDetail_20' ) start [2025-02-05 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411036', 'tblTempUsageDetail_20' ) end [2025-02-05 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411036', 'tblTempVendorCDR_20' ) start [2025-02-05 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411036', 'tblTempVendorCDR_20' ) end [2025-02-05 23:23:18] Production.INFO: ProcessCDR(1,14411036,1,1,2) [2025-02-05 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411036', 'tblTempUsageDetail_20' ) start [2025-02-05 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411036', 'tblTempUsageDetail_20' ) end [2025-02-05 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:23:21] Production.INFO: ==4389== Releasing lock... [2025-02-05 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:23:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-05 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:24:06 [end_date_ymd] => 2025-02-05 23:24:06 [RateCDR] => 1 ) [2025-02-05 23:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:24:06' and `end` < '2025-02-05 23:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:24:19] Production.INFO: count ==932 [2025-02-05 23:24:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:24:06 - End Time 2025-02-05 23:24:06 [2025-02-05 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411041', 'tblTempUsageDetail_20' ) start [2025-02-05 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411041', 'tblTempUsageDetail_20' ) end [2025-02-05 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411041', 'tblTempVendorCDR_20' ) start [2025-02-05 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411041', 'tblTempVendorCDR_20' ) end [2025-02-05 23:24:19] Production.INFO: ProcessCDR(1,14411041,1,1,2) [2025-02-05 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411041', 'tblTempUsageDetail_20' ) start [2025-02-05 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411041', 'tblTempUsageDetail_20' ) end [2025-02-05 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:24:22] Production.INFO: ==4468== Releasing lock... [2025-02-05 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:24:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-05 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:25:05 [end_date_ymd] => 2025-02-05 23:25:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 20:25:05' and `end` < '2025-02-05 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-02-05 23:25:18] Production.INFO: count ==930 [2025-02-05 23:25:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:25:05 - End Time 2025-02-05 23:25:05 [2025-02-05 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411046', 'tblTempUsageDetail_20' ) start [2025-02-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411046', 'tblTempUsageDetail_20' ) end [2025-02-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411046', 'tblTempVendorCDR_20' ) start [2025-02-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411046', 'tblTempVendorCDR_20' ) end [2025-02-05 23:25:18] Production.INFO: ProcessCDR(1,14411046,1,1,2) [2025-02-05 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411046', 'tblTempUsageDetail_20' ) start [2025-02-05 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411046', 'tblTempUsageDetail_20' ) end [2025-02-05 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:25:21] Production.INFO: ==4587== Releasing lock... [2025-02-05 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:25:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-05 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:26:05 [end_date_ymd] => 2025-02-05 23:26:05 [RateCDR] => 1 ) [2025-02-05 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:26:05' and `end` < '2025-02-05 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:26:18] Production.INFO: count ==929 [2025-02-05 23:26:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:26:05 - End Time 2025-02-05 23:26:05 [2025-02-05 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411051', 'tblTempUsageDetail_20' ) start [2025-02-05 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411051', 'tblTempUsageDetail_20' ) end [2025-02-05 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411051', 'tblTempVendorCDR_20' ) start [2025-02-05 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411051', 'tblTempVendorCDR_20' ) end [2025-02-05 23:26:18] Production.INFO: ProcessCDR(1,14411051,1,1,2) [2025-02-05 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411051', 'tblTempUsageDetail_20' ) start [2025-02-05 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411051', 'tblTempUsageDetail_20' ) end [2025-02-05 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:26:21] Production.INFO: ==4663== Releasing lock... [2025-02-05 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:26:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:27:05 [end_date_ymd] => 2025-02-05 23:27:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 20:27:05' and `end` < '2025-02-05 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-02-05 23:27:19] Production.INFO: count ==928 [2025-02-05 23:27:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:27:05 - End Time 2025-02-05 23:27:05 [2025-02-05 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411056', 'tblTempUsageDetail_20' ) start [2025-02-05 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411056', 'tblTempUsageDetail_20' ) end [2025-02-05 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411056', 'tblTempVendorCDR_20' ) start [2025-02-05 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411056', 'tblTempVendorCDR_20' ) end [2025-02-05 23:27:19] Production.INFO: ProcessCDR(1,14411056,1,1,2) [2025-02-05 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411056', 'tblTempUsageDetail_20' ) start [2025-02-05 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411056', 'tblTempUsageDetail_20' ) end [2025-02-05 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:27:22] Production.INFO: ==4737== Releasing lock... [2025-02-05 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:27:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:28:05 [end_date_ymd] => 2025-02-05 23:28:05 [RateCDR] => 1 ) [2025-02-05 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:28:05' and `end` < '2025-02-05 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:28:19] Production.INFO: count ==918 [2025-02-05 23:28:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:28:05 - End Time 2025-02-05 23:28:05 [2025-02-05 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411061', 'tblTempUsageDetail_20' ) start [2025-02-05 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411061', 'tblTempUsageDetail_20' ) end [2025-02-05 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411061', 'tblTempVendorCDR_20' ) start [2025-02-05 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411061', 'tblTempVendorCDR_20' ) end [2025-02-05 23:28:19] Production.INFO: ProcessCDR(1,14411061,1,1,2) [2025-02-05 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411061', 'tblTempUsageDetail_20' ) start [2025-02-05 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411061', 'tblTempUsageDetail_20' ) end [2025-02-05 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:28:23] Production.INFO: ==4816== Releasing lock... [2025-02-05 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:28:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:29:05 [end_date_ymd] => 2025-02-05 23:29:05 [RateCDR] => 1 ) [2025-02-05 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:29:05' and `end` < '2025-02-05 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:29:18] Production.INFO: count ==915 [2025-02-05 23:29:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:29:05 - End Time 2025-02-05 23:29:05 [2025-02-05 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411066', 'tblTempUsageDetail_20' ) start [2025-02-05 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411066', 'tblTempUsageDetail_20' ) end [2025-02-05 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411066', 'tblTempVendorCDR_20' ) start [2025-02-05 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411066', 'tblTempVendorCDR_20' ) end [2025-02-05 23:29:18] Production.INFO: ProcessCDR(1,14411066,1,1,2) [2025-02-05 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411066', 'tblTempUsageDetail_20' ) start [2025-02-05 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411066', 'tblTempUsageDetail_20' ) end [2025-02-05 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:29:21] Production.INFO: ==4895== Releasing lock... [2025-02-05 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:29:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:30:06 [end_date_ymd] => 2025-02-05 23:30:06 [RateCDR] => 1 ) [2025-02-05 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-02-05 20:30:06' and `end` < '2025-02-05 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-02-05 23:30:19] Production.INFO: count ==916 [2025-02-05 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:30:06 - End Time 2025-02-05 23:30:06 [2025-02-05 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411072', 'tblTempUsageDetail_20' ) start [2025-02-05 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411072', 'tblTempUsageDetail_20' ) end [2025-02-05 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411072', 'tblTempVendorCDR_20' ) start [2025-02-05 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411072', 'tblTempVendorCDR_20' ) end [2025-02-05 23:30:19] Production.INFO: ProcessCDR(1,14411072,1,1,2) [2025-02-05 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411072', 'tblTempUsageDetail_20' ) start [2025-02-05 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411072', 'tblTempUsageDetail_20' ) end [2025-02-05 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:30:22] Production.INFO: ==4971== Releasing lock... [2025-02-05 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:30:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 23:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:31:06 [end_date_ymd] => 2025-02-05 23:31:06 [RateCDR] => 1 ) [2025-02-05 23:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:31:06' and `end` < '2025-02-05 23:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:31:20] Production.INFO: count ==896 [2025-02-05 23:31:20] Production.ERROR: pbx CDR StartTime 2025-02-05 20:31:06 - End Time 2025-02-05 23:31:06 [2025-02-05 23:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411077', 'tblTempUsageDetail_20' ) start [2025-02-05 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411077', 'tblTempUsageDetail_20' ) end [2025-02-05 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411077', 'tblTempVendorCDR_20' ) start [2025-02-05 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411077', 'tblTempVendorCDR_20' ) end [2025-02-05 23:31:20] Production.INFO: ProcessCDR(1,14411077,1,1,2) [2025-02-05 23:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411077', 'tblTempUsageDetail_20' ) start [2025-02-05 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411077', 'tblTempUsageDetail_20' ) end [2025-02-05 23:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:31:23] Production.INFO: ==5050== Releasing lock... [2025-02-05 23:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:31:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:32:05 [end_date_ymd] => 2025-02-05 23:32:05 [RateCDR] => 1 ) [2025-02-05 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:32:05' and `end` < '2025-02-05 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:32:18] Production.INFO: count ==899 [2025-02-05 23:32:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:32:05 - End Time 2025-02-05 23:32:05 [2025-02-05 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411082', 'tblTempUsageDetail_20' ) start [2025-02-05 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411082', 'tblTempUsageDetail_20' ) end [2025-02-05 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411082', 'tblTempVendorCDR_20' ) start [2025-02-05 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411082', 'tblTempVendorCDR_20' ) end [2025-02-05 23:32:18] Production.INFO: ProcessCDR(1,14411082,1,1,2) [2025-02-05 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411082', 'tblTempUsageDetail_20' ) start [2025-02-05 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411082', 'tblTempUsageDetail_20' ) end [2025-02-05 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:32:21] Production.INFO: ==5122== Releasing lock... [2025-02-05 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:32:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:33:05 [end_date_ymd] => 2025-02-05 23:33:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 20:33:05' and `end` < '2025-02-05 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-02-05 23:33:21] Production.INFO: count ==900 [2025-02-05 23:33:21] Production.ERROR: pbx CDR StartTime 2025-02-05 20:33:05 - End Time 2025-02-05 23:33:05 [2025-02-05 23:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411087', 'tblTempUsageDetail_20' ) start [2025-02-05 23:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411087', 'tblTempUsageDetail_20' ) end [2025-02-05 23:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411087', 'tblTempVendorCDR_20' ) start [2025-02-05 23:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411087', 'tblTempVendorCDR_20' ) end [2025-02-05 23:33:21] Production.INFO: ProcessCDR(1,14411087,1,1,2) [2025-02-05 23:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411087', 'tblTempUsageDetail_20' ) start [2025-02-05 23:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411087', 'tblTempUsageDetail_20' ) end [2025-02-05 23:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:33:26] Production.INFO: ==5199== Releasing lock... [2025-02-05 23:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:33:26] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:34:05 [end_date_ymd] => 2025-02-05 23:34:05 [RateCDR] => 1 ) [2025-02-05 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:34:05' and `end` < '2025-02-05 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:34:18] Production.INFO: count ==900 [2025-02-05 23:34:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:34:05 - End Time 2025-02-05 23:34:05 [2025-02-05 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411092', 'tblTempUsageDetail_20' ) start [2025-02-05 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411092', 'tblTempUsageDetail_20' ) end [2025-02-05 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411092', 'tblTempVendorCDR_20' ) start [2025-02-05 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411092', 'tblTempVendorCDR_20' ) end [2025-02-05 23:34:18] Production.INFO: ProcessCDR(1,14411092,1,1,2) [2025-02-05 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411092', 'tblTempUsageDetail_20' ) start [2025-02-05 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411092', 'tblTempUsageDetail_20' ) end [2025-02-05 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:34:21] Production.INFO: ==5277== Releasing lock... [2025-02-05 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:34:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:35:05 [end_date_ymd] => 2025-02-05 23:35:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 20:35:05' and `end` < '2025-02-05 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-02-05 23:35:18] Production.INFO: count ==900 [2025-02-05 23:35:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:35:05 - End Time 2025-02-05 23:35:05 [2025-02-05 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411097', 'tblTempUsageDetail_20' ) start [2025-02-05 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411097', 'tblTempUsageDetail_20' ) end [2025-02-05 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411097', 'tblTempVendorCDR_20' ) start [2025-02-05 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411097', 'tblTempVendorCDR_20' ) end [2025-02-05 23:35:18] Production.INFO: ProcessCDR(1,14411097,1,1,2) [2025-02-05 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411097', 'tblTempUsageDetail_20' ) start [2025-02-05 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411097', 'tblTempUsageDetail_20' ) end [2025-02-05 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:35:21] Production.INFO: ==5352== Releasing lock... [2025-02-05 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:35:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:36:06 [end_date_ymd] => 2025-02-05 23:36:06 [RateCDR] => 1 ) [2025-02-05 23:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:36:06' and `end` < '2025-02-05 23:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:36:19] Production.INFO: count ==889 [2025-02-05 23:36:20] Production.ERROR: pbx CDR StartTime 2025-02-05 20:36:06 - End Time 2025-02-05 23:36:06 [2025-02-05 23:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411102', 'tblTempUsageDetail_20' ) start [2025-02-05 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411102', 'tblTempUsageDetail_20' ) end [2025-02-05 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411102', 'tblTempVendorCDR_20' ) start [2025-02-05 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411102', 'tblTempVendorCDR_20' ) end [2025-02-05 23:36:20] Production.INFO: ProcessCDR(1,14411102,1,1,2) [2025-02-05 23:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411102', 'tblTempUsageDetail_20' ) start [2025-02-05 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411102', 'tblTempUsageDetail_20' ) end [2025-02-05 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:36:22] Production.INFO: ==5425== Releasing lock... [2025-02-05 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:36:22] Production.INFO: 34 MB #Memory Used# [2025-02-05 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:37:04 [end_date_ymd] => 2025-02-05 23:37:04 [RateCDR] => 1 ) [2025-02-05 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-02-05 20:37:04' and `end` < '2025-02-05 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-02-05 23:37:17] Production.INFO: count ==884 [2025-02-05 23:37:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:37:04 - End Time 2025-02-05 23:37:04 [2025-02-05 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411107', 'tblTempUsageDetail_20' ) start [2025-02-05 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411107', 'tblTempUsageDetail_20' ) end [2025-02-05 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411107', 'tblTempVendorCDR_20' ) start [2025-02-05 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411107', 'tblTempVendorCDR_20' ) end [2025-02-05 23:37:18] Production.INFO: ProcessCDR(1,14411107,1,1,2) [2025-02-05 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411107', 'tblTempUsageDetail_20' ) start [2025-02-05 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411107', 'tblTempUsageDetail_20' ) end [2025-02-05 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:37:21] Production.INFO: ==5497== Releasing lock... [2025-02-05 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:37:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-05 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:38:05 [end_date_ymd] => 2025-02-05 23:38:05 [RateCDR] => 1 ) [2025-02-05 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:38:05' and `end` < '2025-02-05 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:38:18] Production.INFO: count ==879 [2025-02-05 23:38:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:38:05 - End Time 2025-02-05 23:38:05 [2025-02-05 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411112', 'tblTempUsageDetail_20' ) start [2025-02-05 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411112', 'tblTempUsageDetail_20' ) end [2025-02-05 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411112', 'tblTempVendorCDR_20' ) start [2025-02-05 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411112', 'tblTempVendorCDR_20' ) end [2025-02-05 23:38:18] Production.INFO: ProcessCDR(1,14411112,1,1,2) [2025-02-05 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411112', 'tblTempUsageDetail_20' ) start [2025-02-05 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411112', 'tblTempUsageDetail_20' ) end [2025-02-05 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:38:21] Production.INFO: ==5572== Releasing lock... [2025-02-05 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:38:21] Production.INFO: 34 MB #Memory Used# [2025-02-05 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:39:04 [end_date_ymd] => 2025-02-05 23:39:04 [RateCDR] => 1 ) [2025-02-05 23:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:39:04' and `end` < '2025-02-05 23:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:39:17] Production.INFO: count ==866 [2025-02-05 23:39:17] Production.ERROR: pbx CDR StartTime 2025-02-05 20:39:04 - End Time 2025-02-05 23:39:04 [2025-02-05 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411117', 'tblTempUsageDetail_20' ) start [2025-02-05 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411117', 'tblTempUsageDetail_20' ) end [2025-02-05 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411117', 'tblTempVendorCDR_20' ) start [2025-02-05 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411117', 'tblTempVendorCDR_20' ) end [2025-02-05 23:39:17] Production.INFO: ProcessCDR(1,14411117,1,1,2) [2025-02-05 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411117', 'tblTempUsageDetail_20' ) start [2025-02-05 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411117', 'tblTempUsageDetail_20' ) end [2025-02-05 23:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:39:20] Production.INFO: ==5649== Releasing lock... [2025-02-05 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:39:20] Production.INFO: 34 MB #Memory Used# [2025-02-05 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:40:06 [end_date_ymd] => 2025-02-05 23:40:06 [RateCDR] => 1 ) [2025-02-05 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:40:06' and `end` < '2025-02-05 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:40:19] Production.INFO: count ==855 [2025-02-05 23:40:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:40:06 - End Time 2025-02-05 23:40:06 [2025-02-05 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411122', 'tblTempUsageDetail_20' ) start [2025-02-05 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411122', 'tblTempUsageDetail_20' ) end [2025-02-05 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411122', 'tblTempVendorCDR_20' ) start [2025-02-05 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411122', 'tblTempVendorCDR_20' ) end [2025-02-05 23:40:19] Production.INFO: ProcessCDR(1,14411122,1,1,2) [2025-02-05 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411122', 'tblTempUsageDetail_20' ) start [2025-02-05 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411122', 'tblTempUsageDetail_20' ) end [2025-02-05 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:40:22] Production.INFO: ==5722== Releasing lock... [2025-02-05 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:40:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-05 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:41:05 [end_date_ymd] => 2025-02-05 23:41:05 [RateCDR] => 1 ) [2025-02-05 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:41:05' and `end` < '2025-02-05 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:41:18] Production.INFO: count ==801 [2025-02-05 23:41:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:41:05 - End Time 2025-02-05 23:41:05 [2025-02-05 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411128', 'tblTempUsageDetail_20' ) start [2025-02-05 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411128', 'tblTempUsageDetail_20' ) end [2025-02-05 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411128', 'tblTempVendorCDR_20' ) start [2025-02-05 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411128', 'tblTempVendorCDR_20' ) end [2025-02-05 23:41:18] Production.INFO: ProcessCDR(1,14411128,1,1,2) [2025-02-05 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411128', 'tblTempUsageDetail_20' ) start [2025-02-05 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411128', 'tblTempUsageDetail_20' ) end [2025-02-05 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:41:21] Production.INFO: ==5842== Releasing lock... [2025-02-05 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:41:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-05 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:42:05 [end_date_ymd] => 2025-02-05 23:42:05 [RateCDR] => 1 ) [2025-02-05 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-02-05 20:42:05' and `end` < '2025-02-05 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-02-05 23:42:18] Production.INFO: count ==801 [2025-02-05 23:42:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:42:05 - End Time 2025-02-05 23:42:05 [2025-02-05 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411133', 'tblTempUsageDetail_20' ) start [2025-02-05 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411133', 'tblTempUsageDetail_20' ) end [2025-02-05 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411133', 'tblTempVendorCDR_20' ) start [2025-02-05 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411133', 'tblTempVendorCDR_20' ) end [2025-02-05 23:42:18] Production.INFO: ProcessCDR(1,14411133,1,1,2) [2025-02-05 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411133', 'tblTempUsageDetail_20' ) start [2025-02-05 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411133', 'tblTempUsageDetail_20' ) end [2025-02-05 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:42:22] Production.INFO: ==5917== Releasing lock... [2025-02-05 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:42:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-05 23:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:43:06 [end_date_ymd] => 2025-02-05 23:43:06 [RateCDR] => 1 ) [2025-02-05 23:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:43:06' and `end` < '2025-02-05 23:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:43:19] Production.INFO: count ==799 [2025-02-05 23:43:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:43:06 - End Time 2025-02-05 23:43:06 [2025-02-05 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411138', 'tblTempUsageDetail_20' ) start [2025-02-05 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411138', 'tblTempUsageDetail_20' ) end [2025-02-05 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411138', 'tblTempVendorCDR_20' ) start [2025-02-05 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411138', 'tblTempVendorCDR_20' ) end [2025-02-05 23:43:19] Production.INFO: ProcessCDR(1,14411138,1,1,2) [2025-02-05 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411138', 'tblTempUsageDetail_20' ) start [2025-02-05 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411138', 'tblTempUsageDetail_20' ) end [2025-02-05 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:43:22] Production.INFO: ==5997== Releasing lock... [2025-02-05 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-05 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:44:05 [end_date_ymd] => 2025-02-05 23:44:05 [RateCDR] => 1 ) [2025-02-05 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:44:05' and `end` < '2025-02-05 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:44:20] Production.INFO: count ==801 [2025-02-05 23:44:20] Production.ERROR: pbx CDR StartTime 2025-02-05 20:44:05 - End Time 2025-02-05 23:44:05 [2025-02-05 23:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411143', 'tblTempUsageDetail_20' ) start [2025-02-05 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411143', 'tblTempUsageDetail_20' ) end [2025-02-05 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411143', 'tblTempVendorCDR_20' ) start [2025-02-05 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411143', 'tblTempVendorCDR_20' ) end [2025-02-05 23:44:20] Production.INFO: ProcessCDR(1,14411143,1,1,2) [2025-02-05 23:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411143', 'tblTempUsageDetail_20' ) start [2025-02-05 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411143', 'tblTempUsageDetail_20' ) end [2025-02-05 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:44:23] Production.INFO: ==6070== Releasing lock... [2025-02-05 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:44:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-05 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:45:05 [end_date_ymd] => 2025-02-05 23:45:05 [RateCDR] => 1 ) [2025-02-05 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:45:05' and `end` < '2025-02-05 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:45:18] Production.INFO: count ==801 [2025-02-05 23:45:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:45:05 - End Time 2025-02-05 23:45:05 [2025-02-05 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411148', 'tblTempUsageDetail_20' ) start [2025-02-05 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411148', 'tblTempUsageDetail_20' ) end [2025-02-05 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411148', 'tblTempVendorCDR_20' ) start [2025-02-05 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411148', 'tblTempVendorCDR_20' ) end [2025-02-05 23:45:19] Production.INFO: ProcessCDR(1,14411148,1,1,2) [2025-02-05 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411148', 'tblTempUsageDetail_20' ) start [2025-02-05 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411148', 'tblTempUsageDetail_20' ) end [2025-02-05 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:45:22] Production.INFO: ==6144== Releasing lock... [2025-02-05 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:45:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-05 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:46:05 [end_date_ymd] => 2025-02-05 23:46:05 [RateCDR] => 1 ) [2025-02-05 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:46:05' and `end` < '2025-02-05 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:46:18] Production.INFO: count ==801 [2025-02-05 23:46:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:46:05 - End Time 2025-02-05 23:46:05 [2025-02-05 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411153', 'tblTempUsageDetail_20' ) start [2025-02-05 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411153', 'tblTempUsageDetail_20' ) end [2025-02-05 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411153', 'tblTempVendorCDR_20' ) start [2025-02-05 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411153', 'tblTempVendorCDR_20' ) end [2025-02-05 23:46:18] Production.INFO: ProcessCDR(1,14411153,1,1,2) [2025-02-05 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411153', 'tblTempUsageDetail_20' ) start [2025-02-05 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411153', 'tblTempUsageDetail_20' ) end [2025-02-05 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:46:21] Production.INFO: ==6214== Releasing lock... [2025-02-05 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:46:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-05 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:47:05 [end_date_ymd] => 2025-02-05 23:47:05 [RateCDR] => 1 ) [2025-02-05 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:47:05' and `end` < '2025-02-05 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:47:19] Production.INFO: count ==797 [2025-02-05 23:47:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:47:05 - End Time 2025-02-05 23:47:05 [2025-02-05 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411158', 'tblTempUsageDetail_20' ) start [2025-02-05 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411158', 'tblTempUsageDetail_20' ) end [2025-02-05 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411158', 'tblTempVendorCDR_20' ) start [2025-02-05 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411158', 'tblTempVendorCDR_20' ) end [2025-02-05 23:47:19] Production.INFO: ProcessCDR(1,14411158,1,1,2) [2025-02-05 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411158', 'tblTempUsageDetail_20' ) start [2025-02-05 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411158', 'tblTempUsageDetail_20' ) end [2025-02-05 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:47:22] Production.INFO: ==6290== Releasing lock... [2025-02-05 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:47:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:48:05 [end_date_ymd] => 2025-02-05 23:48:05 [RateCDR] => 1 ) [2025-02-05 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:48:05' and `end` < '2025-02-05 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:48:18] Production.INFO: count ==795 [2025-02-05 23:48:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:48:05 - End Time 2025-02-05 23:48:05 [2025-02-05 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411163', 'tblTempUsageDetail_20' ) start [2025-02-05 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411163', 'tblTempUsageDetail_20' ) end [2025-02-05 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411163', 'tblTempVendorCDR_20' ) start [2025-02-05 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411163', 'tblTempVendorCDR_20' ) end [2025-02-05 23:48:18] Production.INFO: ProcessCDR(1,14411163,1,1,2) [2025-02-05 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411163', 'tblTempUsageDetail_20' ) start [2025-02-05 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411163', 'tblTempUsageDetail_20' ) end [2025-02-05 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:48:21] Production.INFO: ==6371== Releasing lock... [2025-02-05 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:49:05 [end_date_ymd] => 2025-02-05 23:49:05 [RateCDR] => 1 ) [2025-02-05 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:49:05' and `end` < '2025-02-05 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:49:18] Production.INFO: count ==795 [2025-02-05 23:49:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:49:05 - End Time 2025-02-05 23:49:05 [2025-02-05 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411168', 'tblTempUsageDetail_20' ) start [2025-02-05 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411168', 'tblTempUsageDetail_20' ) end [2025-02-05 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411168', 'tblTempVendorCDR_20' ) start [2025-02-05 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411168', 'tblTempVendorCDR_20' ) end [2025-02-05 23:49:18] Production.INFO: ProcessCDR(1,14411168,1,1,2) [2025-02-05 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411168', 'tblTempUsageDetail_20' ) start [2025-02-05 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411168', 'tblTempUsageDetail_20' ) end [2025-02-05 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:49:21] Production.INFO: ==6449== Releasing lock... [2025-02-05 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:50:06 [end_date_ymd] => 2025-02-05 23:50:06 [RateCDR] => 1 ) [2025-02-05 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:50:06' and `end` < '2025-02-05 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:50:19] Production.INFO: count ==795 [2025-02-05 23:50:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:50:06 - End Time 2025-02-05 23:50:06 [2025-02-05 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411174', 'tblTempUsageDetail_20' ) start [2025-02-05 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411174', 'tblTempUsageDetail_20' ) end [2025-02-05 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411174', 'tblTempVendorCDR_20' ) start [2025-02-05 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411174', 'tblTempVendorCDR_20' ) end [2025-02-05 23:50:19] Production.INFO: ProcessCDR(1,14411174,1,1,2) [2025-02-05 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411174', 'tblTempUsageDetail_20' ) start [2025-02-05 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411174', 'tblTempUsageDetail_20' ) end [2025-02-05 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:50:22] Production.INFO: ==6529== Releasing lock... [2025-02-05 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:50:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-05 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:51:05 [end_date_ymd] => 2025-02-05 23:51:05 [RateCDR] => 1 ) [2025-02-05 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:51:05' and `end` < '2025-02-05 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:51:18] Production.INFO: count ==785 [2025-02-05 23:51:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:51:05 - End Time 2025-02-05 23:51:05 [2025-02-05 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411179', 'tblTempUsageDetail_20' ) start [2025-02-05 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411179', 'tblTempUsageDetail_20' ) end [2025-02-05 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411179', 'tblTempVendorCDR_20' ) start [2025-02-05 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411179', 'tblTempVendorCDR_20' ) end [2025-02-05 23:51:18] Production.INFO: ProcessCDR(1,14411179,1,1,2) [2025-02-05 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411179', 'tblTempUsageDetail_20' ) start [2025-02-05 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411179', 'tblTempUsageDetail_20' ) end [2025-02-05 23:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:51:23] Production.INFO: ==6608== Releasing lock... [2025-02-05 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:51:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:52:05 [end_date_ymd] => 2025-02-05 23:52:05 [RateCDR] => 1 ) [2025-02-05 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:52:05' and `end` < '2025-02-05 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:52:19] Production.INFO: count ==785 [2025-02-05 23:52:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:52:05 - End Time 2025-02-05 23:52:05 [2025-02-05 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411184', 'tblTempUsageDetail_20' ) start [2025-02-05 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411184', 'tblTempUsageDetail_20' ) end [2025-02-05 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411184', 'tblTempVendorCDR_20' ) start [2025-02-05 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411184', 'tblTempVendorCDR_20' ) end [2025-02-05 23:52:19] Production.INFO: ProcessCDR(1,14411184,1,1,2) [2025-02-05 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411184', 'tblTempUsageDetail_20' ) start [2025-02-05 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411184', 'tblTempUsageDetail_20' ) end [2025-02-05 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:52:22] Production.INFO: ==6681== Releasing lock... [2025-02-05 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:52:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 23:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:53:04 [end_date_ymd] => 2025-02-05 23:53:04 [RateCDR] => 1 ) [2025-02-05 23:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:53:04' and `end` < '2025-02-05 23:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:53:17] Production.INFO: count ==783 [2025-02-05 23:53:17] Production.ERROR: pbx CDR StartTime 2025-02-05 20:53:04 - End Time 2025-02-05 23:53:04 [2025-02-05 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411189', 'tblTempUsageDetail_20' ) start [2025-02-05 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411189', 'tblTempUsageDetail_20' ) end [2025-02-05 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411189', 'tblTempVendorCDR_20' ) start [2025-02-05 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411189', 'tblTempVendorCDR_20' ) end [2025-02-05 23:53:17] Production.INFO: ProcessCDR(1,14411189,1,1,2) [2025-02-05 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411189', 'tblTempUsageDetail_20' ) start [2025-02-05 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411189', 'tblTempUsageDetail_20' ) end [2025-02-05 23:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:53:20] Production.INFO: ==6756== Releasing lock... [2025-02-05 23:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:53:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-05 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:54:05 [end_date_ymd] => 2025-02-05 23:54:05 [RateCDR] => 1 ) [2025-02-05 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:54:05' and `end` < '2025-02-05 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:54:21] Production.INFO: count ==788 [2025-02-05 23:54:21] Production.ERROR: pbx CDR StartTime 2025-02-05 20:54:05 - End Time 2025-02-05 23:54:05 [2025-02-05 23:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411194', 'tblTempUsageDetail_20' ) start [2025-02-05 23:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411194', 'tblTempUsageDetail_20' ) end [2025-02-05 23:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411194', 'tblTempVendorCDR_20' ) start [2025-02-05 23:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411194', 'tblTempVendorCDR_20' ) end [2025-02-05 23:54:21] Production.INFO: ProcessCDR(1,14411194,1,1,2) [2025-02-05 23:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411194', 'tblTempUsageDetail_20' ) start [2025-02-05 23:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411194', 'tblTempUsageDetail_20' ) end [2025-02-05 23:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:54:24] Production.INFO: ==6831== Releasing lock... [2025-02-05 23:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:54:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-05 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:55:05 [end_date_ymd] => 2025-02-05 23:55:05 [RateCDR] => 1 ) [2025-02-05 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:55:05' and `end` < '2025-02-05 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:55:18] Production.INFO: count ==786 [2025-02-05 23:55:18] Production.ERROR: pbx CDR StartTime 2025-02-05 20:55:05 - End Time 2025-02-05 23:55:05 [2025-02-05 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411199', 'tblTempUsageDetail_20' ) start [2025-02-05 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411199', 'tblTempUsageDetail_20' ) end [2025-02-05 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411199', 'tblTempVendorCDR_20' ) start [2025-02-05 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411199', 'tblTempVendorCDR_20' ) end [2025-02-05 23:55:18] Production.INFO: ProcessCDR(1,14411199,1,1,2) [2025-02-05 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411199', 'tblTempUsageDetail_20' ) start [2025-02-05 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411199', 'tblTempUsageDetail_20' ) end [2025-02-05 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:55:21] Production.INFO: ==6903== Releasing lock... [2025-02-05 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:55:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:56:05 [end_date_ymd] => 2025-02-05 23:56:05 [RateCDR] => 1 ) [2025-02-05 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:56:05' and `end` < '2025-02-05 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:56:20] Production.INFO: count ==786 [2025-02-05 23:56:20] Production.ERROR: pbx CDR StartTime 2025-02-05 20:56:05 - End Time 2025-02-05 23:56:05 [2025-02-05 23:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411204', 'tblTempUsageDetail_20' ) start [2025-02-05 23:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411204', 'tblTempUsageDetail_20' ) end [2025-02-05 23:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411204', 'tblTempVendorCDR_20' ) start [2025-02-05 23:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411204', 'tblTempVendorCDR_20' ) end [2025-02-05 23:56:20] Production.INFO: ProcessCDR(1,14411204,1,1,2) [2025-02-05 23:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411204', 'tblTempUsageDetail_20' ) start [2025-02-05 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411204', 'tblTempUsageDetail_20' ) end [2025-02-05 23:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:56:23] Production.INFO: ==7017== Releasing lock... [2025-02-05 23:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:56:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:57:05 [end_date_ymd] => 2025-02-05 23:57:05 [RateCDR] => 1 ) [2025-02-05 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:57:05' and `end` < '2025-02-05 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:57:19] Production.INFO: count ==787 [2025-02-05 23:57:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:57:05 - End Time 2025-02-05 23:57:05 [2025-02-05 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411209', 'tblTempUsageDetail_20' ) start [2025-02-05 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411209', 'tblTempUsageDetail_20' ) end [2025-02-05 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411209', 'tblTempVendorCDR_20' ) start [2025-02-05 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411209', 'tblTempVendorCDR_20' ) end [2025-02-05 23:57:19] Production.INFO: ProcessCDR(1,14411209,1,1,2) [2025-02-05 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411209', 'tblTempUsageDetail_20' ) start [2025-02-05 23:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411209', 'tblTempUsageDetail_20' ) end [2025-02-05 23:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:57:24] Production.INFO: ==7092== Releasing lock... [2025-02-05 23:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:57:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:58:05 [end_date_ymd] => 2025-02-05 23:58:05 [RateCDR] => 1 ) [2025-02-05 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:58:05' and `end` < '2025-02-05 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:58:19] Production.INFO: count ==787 [2025-02-05 23:58:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:58:05 - End Time 2025-02-05 23:58:05 [2025-02-05 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411214', 'tblTempUsageDetail_20' ) start [2025-02-05 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411214', 'tblTempUsageDetail_20' ) end [2025-02-05 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411214', 'tblTempVendorCDR_20' ) start [2025-02-05 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411214', 'tblTempVendorCDR_20' ) end [2025-02-05 23:58:19] Production.INFO: ProcessCDR(1,14411214,1,1,2) [2025-02-05 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411214', 'tblTempUsageDetail_20' ) start [2025-02-05 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411214', 'tblTempUsageDetail_20' ) end [2025-02-05 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:58:22] Production.INFO: ==7174== Releasing lock... [2025-02-05 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:58:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-05 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 20:59:05 [end_date_ymd] => 2025-02-05 23:59:05 [RateCDR] => 1 ) [2025-02-05 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 20:59:05' and `end` < '2025-02-05 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-05 23:59:19] Production.INFO: count ==787 [2025-02-05 23:59:19] Production.ERROR: pbx CDR StartTime 2025-02-05 20:59:05 - End Time 2025-02-05 23:59:05 [2025-02-05 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-05 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411219', 'tblTempUsageDetail_20' ) start [2025-02-05 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411219', 'tblTempUsageDetail_20' ) end [2025-02-05 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411219', 'tblTempVendorCDR_20' ) start [2025-02-05 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411219', 'tblTempVendorCDR_20' ) end [2025-02-05 23:59:19] Production.INFO: ProcessCDR(1,14411219,1,1,2) [2025-02-05 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-05 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-05 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411219', 'tblTempUsageDetail_20' ) start [2025-02-05 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411219', 'tblTempUsageDetail_20' ) end [2025-02-05 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-05 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-05 23:59:22] Production.INFO: ==7265== Releasing lock... [2025-02-05 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-05 23:59:22] Production.INFO: 33.25 MB #Memory Used#